Skip to main content
Detach an SSH key from an instance.

Signature

VastAI.detach_ssh(
    instance_id: int,
    ssh_key_id: str
) -> dict

Parameters

instance_id
int
required
id of the instance
ssh_key_id
str
required
id of the key to detach from the instance

Returns

dict

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.detach_ssh(instance_id=12345, ssh_key_id="value")
print(result)