You can use the REST API to query a key pair that is available for the vRealize Automation tenant administrator.

About this task

Prerequisites

  • Log in to vRealize Automation as a tenant administrator.

  • Verify that the host name and fully qualified domain name of the vRealize Automation instance are available.

  • If you are not using the API Explorer, verify that you have a valid HTTP bearer token that matches your login credentials. See REST API Authentication.

Procedure

Use the following sample command to query a key pair.
curl --insecure -H "Accept:application/json" 
-H "Authorization: Bearer $token" 
https://$host/iaas-proxy-provider/api/keyPairs/26

The following JSON output is returned based on the command input.

{
  "id": 26,
  "name": "TestKeyPair",
  "computeResourceId": "ca4dcca0-85ce-49dd-8371-4ce7c8e2d5e6",
  "secretKey": ""
}