Delete a Key Pair Example
DELETE /api/keyPairs/{id} deletes a key pair.
curl Command
The following example command deletes a key pair.
curl –X “Delete” --insecure -H "Accept:application/json" -H "Authorization: Bearer $token" https://$vRA/iaas-proxy-provider/api/keyPairs/26
JSON Output
The output contains an empty HTTP response body and the following status code.
204 No Content
Input
Use the supported input parameters to control the command output.
Input | Description | |
---|---|---|
URL |
https://$vRA/iaas-proxy-provider/api/keyPairs/$id | |
Method |
Delete |
|
$vRA |
Specifies the appliance name and fully qualified domain name, or IP address of the vRealize Automation server. |
|
$token |
Specifies a valid HTTP bearer token with necessary credentials. |
|
$id: | Specifies the unique identifier of 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. |