Keypairs
Get key pair
Get details of a specific key pair by 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 GET "https://cloud.huddleapis.com/api/v1/keypairs/prod-bastion-key"{
"keypair": {
"id": "kp-f3d1a2b",
"name": "prod-bastion-key",
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBexamplekey user@example.com",
"fingerprint": "3b:16:6a:2e:21:c6:be:3e:54:aa:94:63:34:fc:d1:1a",
"created_at": "2024-03-18T10:20:00Z",
"updated_at": "2024-03-18T10:22:00Z"
}
}{
"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"
}