Skip to content

Account

AccountKeys

List All SSH Keys
client.GPUDroplets.Account.Keys.List(ctx, query) (*GPUDropletAccountKeyListResponse, error)
get/v2/account/keys
Create a New SSH Key
client.GPUDroplets.Account.Keys.New(ctx, body) (*GPUDropletAccountKeyNewResponse, error)
post/v2/account/keys
Retrieve an Existing SSH Key
client.GPUDroplets.Account.Keys.Get(ctx, sshKeyIdentifier) (*GPUDropletAccountKeyGetResponse, error)
get/v2/account/keys/{ssh_key_identifier}
Update an SSH Key's Name
client.GPUDroplets.Account.Keys.Update(ctx, sshKeyIdentifier, body) (*GPUDropletAccountKeyUpdateResponse, error)
put/v2/account/keys/{ssh_key_identifier}
Delete an SSH Key
client.GPUDroplets.Account.Keys.Delete(ctx, sshKeyIdentifier) error
delete/v2/account/keys/{ssh_key_identifier}
ModelsExpand Collapse
type SSHKeys struct{…}
Name string

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

PublicKey string

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 int64optional

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

Fingerprint stringoptional

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.