7.2

Table Of Contents
+bXZzwgFQ2JE4SYxojNHPYwBjadFm0A2eVPtOivMYYYr8FCUYtfbjjIS1TyJaKIFhhqs6bA6/PH
+NvBmbozpDkH9wg3mQ1SOP5iSMAMue6fx+b/SpOZ5MPnNjRo
+VXG3qFl936AB4F1F2ObD27GyjibeYmhQkITtp/yGYCZ68PhCun0/eiEjmXiOUx/5jYGOUEZ1Ddojhc5M/PClR46vQ/3I
yv5pUGPno
+wkn34lk6s2PO2axrXvQqTwoiYC3f2p1gp0qYidIzKa2KHrUCOF4hnjQ3v3z93ORMCK3wN5uQ3xMFOd7+1XpetxvG9d7L
1lU/sgCVmEhdOSnhLC5Jeq70MVwixPocnJR4nyotPE=="
}
Syntax for Creating a Key Pair
You can use the vRealize Automation REST API to create a key pair.
Input
Use the supported input parameters to control the command output.
Input Description
URL hps://$host/iaas-proxy-provider/api/keyPairs
Method Post
$host Species the host name and fully qualied domain name or
IP address of the vRealize Automation identity server.
$token Species a valid HTTP bearer token with necessary
credentials.
HTTP Body Contains the HTTP body of the target key pair.
n
$id:
Species the unique identier of the key pair.
n
$name:
Species the name of the key pair.
n
$computeResourceId:
Species the compute resource ID that is binded to the
key pair.
n
$secretKey:
Species the secret key for the key pair.
Output
The command output contains property names and values based on the command input parameters.
Parameter Description
status
If the command is successful, the HTTP status is 201
Created.
Header.Location
The hp response should contain a Location aribute that
is formaed as https://$host/iaas-proxy-
provider/api/keyPairs/$keypairID.
$keypairID Species the unique identier of the new key pair.
Example: curl Command
curl --insecure -H "Accept:application/json"
-H "Authorization: Bearer $token"
https://$host/iaas-proxy-provider/api/keyPairs -d
Programming Guide
280 VMware, Inc.