Virtual Machines
List SSH keys on a server
Changed onThe keys in root's authorized_keys on a running Linux server, read from the server itself through its QEMU guest agent (a few seconds). Each key is named after your saved key with the same fingerprint; a key someone added on the server itself has no saved key. SSH keys are managed on Linux servers only. Needs vm.view.
get/api/v1/vms/{id}/ssh-keys
Request
- Base URLhttps://api.rafftechnologies.com
- URLhttps://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys
- AuthAPI key in header X-API-Key
Path parameters
idstring uuid required
VM ID (UUID)
Response
The server's keys
Example response
{
"data": {
"keys": [
{
"fingerprint": "SHA256:KH7zm92O0/dbuPCSkvuS9zdDvBneuFaHt+qwZbp8OYU",
"type": "ssh-ed25519",
"comment": "you@laptop"
}
]
}
}Changes
- info
endpoint added
- info