Skip to main content
GET
/
ssh_keys
/
{ssh_key_id}
Get SSH Key by ID
curl --request GET \
  --url https://api.cloud.onidel.com/ssh_keys/{ssh_key_id} \
  --header 'Authorization: <api-key>'
{
  "ssh_key": {
    "id": "a3f2e5d8-1234-4abc-9876-543210fedcba",
    "created": "2024-01-15T10:30:00Z",
    "name": "Production Server Key",
    "ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC... user@hostname"
  }
}

Authorizations

Authorization
string
header
required

Provide the value as: Token <your-api-token>

Path Parameters

ssh_key_id
string<uuid>
required

SSH Key UUID

Query Parameters

team_id
string<uuid>

Team ID to filter SSH keys. Default team will be used if not provided.

Response

Successful operation

ssh_key
object