v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Instances

detach ssh-key

Detaches an SSH key from a specified instance, removing SSH access for that key.

CLI Usage: vastai detach <instance_id> <ssh_key_id>

delete/api/v0/instances/{id}/ssh/{ssh_key_id}/

Path parameters

idinteger required
Example:99999

ID of the instance to detach the SSH key from

ssh_key_idinteger required
Example:12345

Numeric ID of the SSH key to detach. Obtainable via show ssh-keys command

Response

SSH key successfully detached

successboolean
msgstring

Example response

{
  "success": true,
  "msg": "SSH key removed from instance."
}