View an SSH Key's Details

get

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/MySQLCS/instances/{serviceId}/credentials/{credentialName}

Returns detailed information about the SSH key for a MySQL Cloud Service instance.

Request

Path Parameters
Header Parameters

Response

Supported Media Types

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Body ()
The details of one SSH key.
Root Schema : ssh-get-key-details-response
Type: object
The details of one SSH key.
Show Source

Examples

The following example shows how to view detailed information about the public SSH key for a MySQL Cloud Service instance by submitting a GET request on the REST endpoint using cURL

Note: The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the Oracle Public Cloud or Oracle Cloud Machine REST server to contact for your identity domain or tenant name. See Send Requests for the appropriate URL structure to use on Oracle Public Cloud or Oracle Cloud Machine.

cURL Command

curl -i -X GET \
  -u "username:password" \
  -H "X-ID-TENANT-NAME: ExampleIdentityDomain" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/MySQLCS/instances/MyTestInstance/credentials/vmspublickey 

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Wed, 30 Nov 2016 23:22:30 GMT
Transfer-Encoding: chunked
Content-Type: application/json
X-ORACLE-DMS-ECID: 76-ed432b397b1-a636818230e98df0cbc08-3--6017c
X-Frame-Options: DENY
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Access-Control-Allow-Origin: *

Example of Response Body

The following shows an example of the response body in JSON format. In this example, a request was made to change a user's SSH key, and that request is still being processed.

{
    "identityDomain": "ExampleIdentityDomain",
    "serviceType": "MySQLCS",
    "serviceName": "MyTestInstance",
    "credName": "vmspublickey",
    "credType": "SSH",
    "parentType": "SERVICE",
    "lastUpdateTime": "2016-11-30T23:16:04.344+0000",
    "lastUpdateStatus": "INPROGRESS",
    "lastUpdateMessage": "Resetting user ssh public key in progress",
    "osUserName": "opc",
    "computeKeyName": "\/mysql\/foo\/paas.MySQLCS.MyTestInstance.ora_opc__vm_user_ssh_cred_",
    "publicKey": "ssh-rsa AAA...",
    "description": "Service user ssh public key which can be used to access the service VM instances"
}