Skip to content
  • Auto
  • Light
  • Dark

Keys

Keys

Create a New SSH Key
gpu_droplets.account.keys.create(KeyCreateParams**kwargs) -> KeyCreateResponse
post/v2/account/keys
Delete an SSH Key
gpu_droplets.account.keys.delete(Union[int, str]ssh_key_identifier)
delete/v2/account/keys/{ssh_key_identifier}
List All SSH Keys
gpu_droplets.account.keys.list(KeyListParams**kwargs) -> KeyListResponse
get/v2/account/keys
Retrieve an Existing SSH Key
gpu_droplets.account.keys.retrieve(Union[int, str]ssh_key_identifier) -> KeyRetrieveResponse
get/v2/account/keys/{ssh_key_identifier}
Update an SSH Key's Name
gpu_droplets.account.keys.update(Union[int, str]ssh_key_identifier, KeyUpdateParams**kwargs) -> KeyUpdateResponse
put/v2/account/keys/{ssh_key_identifier}
ModelsExpand Collapse
class SSHKeys:
name: str

A human-readable display name for this key, used to easily identify the SSH keys when they are displayed.

public_key: str

The entire public key string that was uploaded. Embedded into the root user's authorized_keys file if you include this key during Droplet creation.

id: Optional[int]

A unique identification number for this key. Can be used to embed a specific SSH key into a Droplet.

fingerprint: Optional[str]

A unique identifier that differentiates this key from other keys using a format that SSH recognizes. The fingerprint is created when the key is added to your account.