Delete Key Pair
DELETE https://infrahub-api.nexgencloud.com/v1/core/keypair/{id}
Permanently deletes a specified key pair. Include the key pair ID in the request path to remove the key pair.
Path parameters
id integer
Required
The unique identifier of the key pair to be deleted.
Attributes
status boolean
Indicates the success or failure of the operation. true
, indicates success, while false
indicates error.
message string
A message confirming the status of the request to delete the specified key pair.
Example request
curl -X DELETE "https://infrahub-api.nexgencloud.com/v1/core/keypair/{id}" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "string"
}
Returns
Returns the status of the request to delete a key pair. A true
status indicates successful deletion, otherwise an error has occurred.