View the SSH Key Description

get

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

Returns the credential description for the given credential name.

Note: vmspublickey is the only supported credential name.

Request

Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.

The response body contains information about the SSH key, including its description.

See Status Codes for information about other possible HTTP status codes.

Body ()
Root Schema : sshkeydesc-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to view information about the SSH public key for the given credential name by submitting a GET request on the REST resource using cURL.

Note:
  • Currently, the only supported credential name is vmspublickey.

  • The command in this example uses the URL structure https://rest_server_url/resource-path, where rest_server_url is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.

cURL Command

curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/credentials/crednames/vmspublickey

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Tue, 19 Apr 2016 21:38:40 GMT
Transfer-Encoding: chunked
Content-Type: application/json

Example of Response Body

The following example shows the response returned in JSON format.

{
   "identityDomain":"ExampleIdentityDomain",
   "serviceType":"jaas",
   "serviceName":"ExampleInstance",
   "credName":"vmspublickey",
   "credType":"SSH",
   "description":"Service user ssh public key which can be used to access the service VM instances",
   "canonicalUrl":"https:\/\/rest_server_url\/paas\/api\/v1.1\/instancemgmt\/ExampleIdentityDomain\/service\/jaas\/instances\/ExampleInstance\/credentials\/crednames\/vmspublickey"
}
Back to Top