Huddle01 Cloud
Keypairs

Delete key pair

Delete a key pair by name.

DELETE
/keypairs/{name}
x-api-key<token>

In: header

Path Parameters

namestring

Key pair name scoped to the workspace.

Response Body

application/json

application/json

application/json

curl -X DELETE "https://cloud.huddleapis.com/api/v1/keypairs/prod-bastion-key"
{
  "message": "Operation successful"
}
{
  "message": "Resource not found",
  "error": {
    "code": "NOT_FOUND",
    "message": "Instance not found",
    "type": "not_found"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}
{
  "message": "Internal server error",
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Failed to create instance",
    "type": "server"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}