Get SSH key

Retrieve details of a specific SSH key.


GET/api/servers/{server}/ssh-keys/{sshKey}

Get an SSH key

This endpoint allows you to retrieve details of a specific SSH key from a server.

Request

GET
/api/servers/{server}/ssh-keys/{sshKey}
curl -G "https://ploi.io/api/servers/{server}/ssh-keys/{sshKey}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 1,
    "status": "active",
    "name": "key",
    "key": "ssh-rsa AAA...",
    "system_user": "ploi"
  }
}