7.0

Table Of Contents
Syntax for Updating a Key Pair
You can update an existing key pair by using the vRealize Automation REST API.
Input
Use the supported input parameters to control the command output.
Parameter Description
URL https://$host/iaas-proxy-provider/api/keyPairs/$id
Method Put
$host Specifies the host name and fully qualified domain name or IP
address of the vRealize Automation identity server.
$token Specifies a valid HTTP bearer token with necessary credentials.
HTTP Body Contains the HTTP body that describes the key pair to update
and what to update in the identified key pair.
n
$id:
Specifies the unique identifier of the key pair.
n
$name:
Specifies the name of the key pair.
n
$computeResourceId:
Specifies the compute resource ID that is binded to the key
pair.
n
$secretKey:
Specifies the secret key for the key pair.
Output
The command output contains a status statement.
Parameter Description
status If the command is not successful, the HTTP status is 204 No
Content.
Example: curl Command
curl –X PUT --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/iaas-proxy-provider/api/keyPairs/26 -d “
{
"id": 26,
"name": "TestKeyPair",
"computeResourceId": "ca4dcca0-85ce-49dd-8371-4ce7c8e2d5e6",
"secretKey":
"jmfhkPFLe1xF4LsgxyYDlBH65IjiKsNH3xgeUhNt6AyIcSA2eZsxH9FNFcDst1cRLQUmLYLUCN6ZlrVtD3C5CYAOEE9UplO
+YKnAcqUSyXB6PQ3I/NuebdtGrx38fkTJsEpRqxLppWPJpVlHYRO2O7GhhWnE6F3bPwwg3dWwymqWHxBZlCcuEcztovbhN8r7/hKsXK
bNSJz
Programming Guide
VMware, Inc. 300