Skip to content
  • Auto
  • Light
  • Dark

GPU Droplets

GPU Droplets

Create a New Droplet
client.gpuDroplets.create(GPUDropletCreateParamsbody, RequestOptionsoptions?): GPUDropletCreateResponse
post/v2/droplets
Delete an Existing Droplet
client.gpuDroplets.delete(numberdropletID, RequestOptionsoptions?): void
delete/v2/droplets/{droplet_id}
Deleting Droplets by Tag
client.gpuDroplets.deleteByTag(GPUDropletDeleteByTagParams { tag_name } params, RequestOptionsoptions?): void
delete/v2/droplets
List All Droplets
client.gpuDroplets.list(GPUDropletListParams { name, page, per_page, 2 more } query?, RequestOptionsoptions?): GPUDropletListResponse { meta, droplets, links }
get/v2/droplets
List all Firewalls Applied to a Droplet
client.gpuDroplets.listFirewalls(numberdropletID, GPUDropletListFirewallsParams { page, per_page } query?, RequestOptionsoptions?): GPUDropletListFirewallsResponse { meta, firewalls, links }
get/v2/droplets/{droplet_id}/firewalls
List All Available Kernels for a Droplet
client.gpuDroplets.listKernels(numberdropletID, GPUDropletListKernelsParams { page, per_page } query?, RequestOptionsoptions?): GPUDropletListKernelsResponse { meta, kernels, links }
get/v2/droplets/{droplet_id}/kernels
List Neighbors for a Droplet
client.gpuDroplets.listNeighbors(numberdropletID, RequestOptionsoptions?): GPUDropletListNeighborsResponse { droplets }
get/v2/droplets/{droplet_id}/neighbors
List Snapshots for a Droplet
client.gpuDroplets.listSnapshots(numberdropletID, GPUDropletListSnapshotsParams { page, per_page } query?, RequestOptionsoptions?): GPUDropletListSnapshotsResponse { meta, links, snapshots }
get/v2/droplets/{droplet_id}/snapshots
Retrieve an Existing Droplet
client.gpuDroplets.retrieve(numberdropletID, RequestOptionsoptions?): GPUDropletRetrieveResponse { droplet }
get/v2/droplets/{droplet_id}
ModelsExpand Collapse
DropletBackupPolicy { hour, plan, retention_period_days, 2 more }
hour?: 0 | 4 | 8 | 3 more

The hour of the day that the backup window will start.

Accepts one of the following:
0
4
8
12
16
20
plan?: "daily" | "weekly"

The backup plan used for the Droplet. The plan can be either daily or weekly.

Accepts one of the following:
"daily"
"weekly"
retention_period_days?: number

The number of days the backup will be retained.

weekday?: "SUN" | "MON" | "TUE" | 4 more

The day of the week on which the backup will occur.

Accepts one of the following:
"SUN"
"MON"
"TUE"
"WED"
"THU"
"FRI"
"SAT"
window_length_hours?: number

The length of the backup window starting from hour.

GPU DropletsAccount

GPU DropletsAccountKeys

Create a New SSH Key
client.gpuDroplets.account.keys.create(KeyCreateParams { name, public_key } body, RequestOptionsoptions?): KeyCreateResponse { ssh_key }
post/v2/account/keys
Delete an SSH Key
client.gpuDroplets.account.keys.delete(number | stringsshKeyIdentifier, RequestOptionsoptions?): void
delete/v2/account/keys/{ssh_key_identifier}
List All SSH Keys
client.gpuDroplets.account.keys.list(KeyListParams { page, per_page } query?, RequestOptionsoptions?): KeyListResponse { meta, links, ssh_keys }
get/v2/account/keys
Retrieve an Existing SSH Key
client.gpuDroplets.account.keys.retrieve(number | stringsshKeyIdentifier, RequestOptionsoptions?): KeyRetrieveResponse { ssh_key }
get/v2/account/keys/{ssh_key_identifier}
Update an SSH Key's Name
client.gpuDroplets.account.keys.update(number | stringsshKeyIdentifier, KeyUpdateParams { name } body, RequestOptionsoptions?): KeyUpdateResponse { ssh_key }
put/v2/account/keys/{ssh_key_identifier}
ModelsExpand Collapse
SSHKeys { name, public_key, id, fingerprint }
name: string

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

public_key: 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?: number

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

fingerprint?: string

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.

GPU DropletsActions

Acting on Tagged Droplets
client.gpuDroplets.actions.bulkInitiate(ActionBulkInitiateParamsparams, RequestOptionsoptions?): ActionBulkInitiateResponse { actions }
post/v2/droplets/actions
Initiate a Droplet Action
client.gpuDroplets.actions.initiate(numberdropletID, ActionInitiateParamsbody, RequestOptionsoptions?): ActionInitiateResponse { action }
post/v2/droplets/{droplet_id}/actions
List Actions for a Droplet
client.gpuDroplets.actions.list(numberdropletID, ActionListParams { page, per_page } query?, RequestOptionsoptions?): ActionListResponse { meta, actions, links }
get/v2/droplets/{droplet_id}/actions
Retrieve a Droplet Action
client.gpuDroplets.actions.retrieve(numberactionID, ActionRetrieveParams { droplet_id } params, RequestOptionsoptions?): ActionRetrieveResponse { action }
get/v2/droplets/{droplet_id}/actions/{action_id}

GPU DropletsAutoscale

Create a New Autoscale Pool
client.gpuDroplets.autoscale.create(AutoscaleCreateParams { config, droplet_template, name } body, RequestOptionsoptions?): AutoscaleCreateResponse { autoscale_pool }
post/v2/droplets/autoscale
Delete autoscale pool
client.gpuDroplets.autoscale.delete(stringautoscalePoolID, RequestOptionsoptions?): void
delete/v2/droplets/autoscale/{autoscale_pool_id}
Delete autoscale pool and resources
client.gpuDroplets.autoscale.deleteDangerous(stringautoscalePoolID, AutoscaleDeleteDangerousParams { xDangerous } params, RequestOptionsoptions?): void
delete/v2/droplets/autoscale/{autoscale_pool_id}/dangerous
List All Autoscale Pools
client.gpuDroplets.autoscale.list(AutoscaleListParams { name, page, per_page } query?, RequestOptionsoptions?): AutoscaleListResponse { meta, autoscale_pools, links }
get/v2/droplets/autoscale
List history events
client.gpuDroplets.autoscale.listHistory(stringautoscalePoolID, AutoscaleListHistoryParams { page, per_page } query?, RequestOptionsoptions?): AutoscaleListHistoryResponse { meta, history, links }
get/v2/droplets/autoscale/{autoscale_pool_id}/history
List members
client.gpuDroplets.autoscale.listMembers(stringautoscalePoolID, AutoscaleListMembersParams { page, per_page } query?, RequestOptionsoptions?): AutoscaleListMembersResponse { meta, droplets, links }
get/v2/droplets/autoscale/{autoscale_pool_id}/members
Retrieve an Existing Autoscale Pool
client.gpuDroplets.autoscale.retrieve(stringautoscalePoolID, RequestOptionsoptions?): AutoscaleRetrieveResponse { autoscale_pool }
get/v2/droplets/autoscale/{autoscale_pool_id}
Update Autoscale Pool
client.gpuDroplets.autoscale.update(stringautoscalePoolID, AutoscaleUpdateParams { config, droplet_template, name } body, RequestOptionsoptions?): AutoscaleUpdateResponse { autoscale_pool }
put/v2/droplets/autoscale/{autoscale_pool_id}
ModelsExpand Collapse
AutoscalePool { id, active_resources_count, config, 6 more }
id: string

A unique identifier for each autoscale pool instance. This is automatically generated upon autoscale pool creation.

active_resources_count: number

The number of active Droplets in the autoscale pool.

config: AutoscalePoolStaticConfig { target_number_instances } | AutoscalePoolDynamicConfig { max_instances, min_instances, cooldown_minutes, 2 more }

The scaling configuration for an autoscale pool, which is how the pool scales up and down (either by resource utilization or static configuration).

Accepts one of the following:
AutoscalePoolStaticConfig { target_number_instances }
target_number_instances: number

Fixed number of instances in an autoscale pool.

minimum1
maximum1000
AutoscalePoolDynamicConfig { max_instances, min_instances, cooldown_minutes, 2 more }
max_instances: number

The maximum number of Droplets in an autoscale pool.

minimum1
maximum1000
min_instances: number

The minimum number of Droplets in an autoscale pool.

minimum1
maximum500
cooldown_minutes?: number

The number of minutes to wait between scaling events in an autoscale pool. Defaults to 10 minutes.

minimum5
maximum20
target_cpu_utilization?: number

Target CPU utilization as a decimal.

formatfloat
minimum0.05
maximum1
target_memory_utilization?: number

Target memory utilization as a decimal.

formatfloat
minimum0.05
maximum1
created_at: string

A time value given in ISO8601 combined date and time format that represents when the autoscale pool was created.

formatdate-time
droplet_template: AutoscalePoolDropletTemplate { image, region, size, 8 more }
image: string

The Droplet image to be used for all Droplets in the autoscale pool. You may specify the slug or the image ID.

region: "nyc1" | "nyc2" | "nyc3" | 11 more

The datacenter in which all of the Droplets will be created.

Accepts one of the following:
"nyc1"
"nyc2"
"nyc3"
"ams2"
"ams3"
"sfo1"
"sfo2"
"sfo3"
"sgp1"
"lon1"
"fra1"
"tor1"
"blr1"
"syd1"
size: string

The Droplet size to be used for all Droplets in the autoscale pool.

ssh_keys: Array<string>

The SSH keys to be installed on the Droplets in the autoscale pool. You can either specify the key ID or the fingerprint. Requires ssh_key:read scope.

ipv6?: boolean

Assigns a unique IPv6 address to each of the Droplets in the autoscale pool.

name?: string

The name(s) to be applied to all Droplets in the autoscale pool.

project_id?: string

The project that the Droplets in the autoscale pool will belong to. Requires project:read scope.

tags?: Array<string>

The tags to apply to each of the Droplets in the autoscale pool. Requires tag:read scope.

user_data?: string

A string containing user data that cloud-init consumes to configure a Droplet on first boot. User data is often a cloud-config file or Bash script. It must be plain text and may not exceed 64 KiB in size.

vpc_uuid?: string

The VPC where the Droplets in the autoscale pool will be created. The VPC must be in the region where you want to create the Droplets. Requires vpc:read scope.

with_droplet_agent?: boolean

Installs the Droplet agent. This must be set to true to monitor Droplets for resource utilization scaling.

name: string

The human-readable name set for the autoscale pool.

status: "active" | "deleting" | "error"

The current status of the autoscale pool.

Accepts one of the following:
"active"
"deleting"
"error"
updated_at: string

A time value given in ISO8601 combined date and time format that represents when the autoscale pool was last updated.

formatdate-time
current_utilization?: CurrentUtilization { cpu, memory }
cpu?: number

The average CPU utilization of the autoscale pool.

formatfloat
minimum0
maximum1
memory?: number

The average memory utilization of the autoscale pool.

formatfloat
minimum0
maximum1
AutoscalePoolDropletTemplate { image, region, size, 8 more }
image: string

The Droplet image to be used for all Droplets in the autoscale pool. You may specify the slug or the image ID.

region: "nyc1" | "nyc2" | "nyc3" | 11 more

The datacenter in which all of the Droplets will be created.

Accepts one of the following:
"nyc1"
"nyc2"
"nyc3"
"ams2"
"ams3"
"sfo1"
"sfo2"
"sfo3"
"sgp1"
"lon1"
"fra1"
"tor1"
"blr1"
"syd1"
size: string

The Droplet size to be used for all Droplets in the autoscale pool.

ssh_keys: Array<string>

The SSH keys to be installed on the Droplets in the autoscale pool. You can either specify the key ID or the fingerprint. Requires ssh_key:read scope.

ipv6?: boolean

Assigns a unique IPv6 address to each of the Droplets in the autoscale pool.

name?: string

The name(s) to be applied to all Droplets in the autoscale pool.

project_id?: string

The project that the Droplets in the autoscale pool will belong to. Requires project:read scope.

tags?: Array<string>

The tags to apply to each of the Droplets in the autoscale pool. Requires tag:read scope.

user_data?: string

A string containing user data that cloud-init consumes to configure a Droplet on first boot. User data is often a cloud-config file or Bash script. It must be plain text and may not exceed 64 KiB in size.

vpc_uuid?: string

The VPC where the Droplets in the autoscale pool will be created. The VPC must be in the region where you want to create the Droplets. Requires vpc:read scope.

with_droplet_agent?: boolean

Installs the Droplet agent. This must be set to true to monitor Droplets for resource utilization scaling.

AutoscalePoolDynamicConfig { max_instances, min_instances, cooldown_minutes, 2 more }
max_instances: number

The maximum number of Droplets in an autoscale pool.

minimum1
maximum1000
min_instances: number

The minimum number of Droplets in an autoscale pool.

minimum1
maximum500
cooldown_minutes?: number

The number of minutes to wait between scaling events in an autoscale pool. Defaults to 10 minutes.

minimum5
maximum20
target_cpu_utilization?: number

Target CPU utilization as a decimal.

formatfloat
minimum0.05
maximum1
target_memory_utilization?: number

Target memory utilization as a decimal.

formatfloat
minimum0.05
maximum1
AutoscalePoolStaticConfig { target_number_instances }
target_number_instances: number

Fixed number of instances in an autoscale pool.

minimum1
maximum1000
CurrentUtilization { cpu, memory }
cpu?: number

The average CPU utilization of the autoscale pool.

formatfloat
minimum0
maximum1
memory?: number

The average memory utilization of the autoscale pool.

formatfloat
minimum0
maximum1

GPU DropletsBackups

List Backups for a Droplet
client.gpuDroplets.backups.list(numberdropletID, BackupListParams { page, per_page } query?, RequestOptionsoptions?): BackupListResponse { meta, backups, links }
get/v2/droplets/{droplet_id}/backups
List Backup Policies for All Existing Droplets
client.gpuDroplets.backups.listPolicies(BackupListPoliciesParams { page, per_page } query?, RequestOptionsoptions?): BackupListPoliciesResponse { meta, links, policies }
get/v2/droplets/backups/policies
List Supported Droplet Backup Policies
client.gpuDroplets.backups.listSupportedPolicies(RequestOptionsoptions?): BackupListSupportedPoliciesResponse { supported_policies }
get/v2/droplets/backups/supported_policies
Retrieve the Backup Policy for an Existing Droplet
client.gpuDroplets.backups.retrievePolicy(numberdropletID, RequestOptionsoptions?): BackupRetrievePolicyResponse { policy }
get/v2/droplets/{droplet_id}/backups/policy

GPU DropletsDestroy With Associated Resources

Check Status of a Droplet Destroy with Associated Resources Request
client.gpuDroplets.destroyWithAssociatedResources.checkStatus(numberdropletID, RequestOptionsoptions?): DestroyWithAssociatedResourceCheckStatusResponse { completed_at, droplet, failures, resources }
get/v2/droplets/{droplet_id}/destroy_with_associated_resources/status
Destroy a Droplet and All of its Associated Resources (Dangerous)
client.gpuDroplets.destroyWithAssociatedResources.deleteDangerous(numberdropletID, DestroyWithAssociatedResourceDeleteDangerousParams { xDangerous } params, RequestOptionsoptions?): void
delete/v2/droplets/{droplet_id}/destroy_with_associated_resources/dangerous
Selectively Destroy a Droplet and its Associated Resources
client.gpuDroplets.destroyWithAssociatedResources.deleteSelective(numberdropletID, DestroyWithAssociatedResourceDeleteSelectiveParams { floating_ips, reserved_ips, snapshots, 2 more } body?, RequestOptionsoptions?): void
delete/v2/droplets/{droplet_id}/destroy_with_associated_resources/selective
List Associated Resources for a Droplet
client.gpuDroplets.destroyWithAssociatedResources.list(numberdropletID, RequestOptionsoptions?): DestroyWithAssociatedResourceListResponse { floating_ips, reserved_ips, snapshots, 2 more }
get/v2/droplets/{droplet_id}/destroy_with_associated_resources
Retry a Droplet Destroy with Associated Resources Request
client.gpuDroplets.destroyWithAssociatedResources.retry(numberdropletID, RequestOptionsoptions?): void
post/v2/droplets/{droplet_id}/destroy_with_associated_resources/retry
ModelsExpand Collapse
AssociatedResource { id, cost, name }

An objects containing information about a resource associated with a Droplet.

id?: string

The unique identifier for the resource associated with the Droplet.

cost?: string

The cost of the resource in USD per month if the resource is retained after the Droplet is destroyed.

name?: string

The name of the resource associated with the Droplet.

DestroyedAssociatedResource { id, destroyed_at, error_message, name }

An object containing information about a resource scheduled for deletion.

id?: string

The unique identifier for the resource scheduled for deletion.

destroyed_at?: string

A time value given in ISO8601 combined date and time format indicating when the resource was destroyed if the request was successful.

formatdate-time
error_message?: string

A string indicating that the resource was not successfully destroyed and providing additional information.

name?: string

The name of the resource scheduled for deletion.

GPU DropletsFirewalls

Create a New Firewall
client.gpuDroplets.firewalls.create(FirewallCreateParams { body } params?, RequestOptionsoptions?): FirewallCreateResponse { firewall }
post/v2/firewalls
Delete a Firewall
client.gpuDroplets.firewalls.delete(stringfirewallID, RequestOptionsoptions?): void
delete/v2/firewalls/{firewall_id}
List All Firewalls
client.gpuDroplets.firewalls.list(FirewallListParams { page, per_page } query?, RequestOptionsoptions?): FirewallListResponse { meta, firewalls, links }
get/v2/firewalls
Retrieve an Existing Firewall
client.gpuDroplets.firewalls.retrieve(stringfirewallID, RequestOptionsoptions?): FirewallRetrieveResponse { firewall }
get/v2/firewalls/{firewall_id}
Update a Firewall
client.gpuDroplets.firewalls.update(stringfirewallID, FirewallUpdateParams { firewall } params, RequestOptionsoptions?): FirewallUpdateResponse { firewall }
put/v2/firewalls/{firewall_id}
ModelsExpand Collapse
Firewall { id, created_at, droplet_ids, 6 more }
id?: string

A unique ID that can be used to identify and reference a firewall.

created_at?: string

A time value given in ISO8601 combined date and time format that represents when the firewall was created.

formatdate-time
droplet_ids?: Array<number> | null

An array containing the IDs of the Droplets assigned to the firewall.

Requires droplet:read scope.

inbound_rules?: Array<InboundRule> | null
ports: string

The ports on which traffic will be allowed specified as a string containing a single port, a range (e.g. "8000-9000"), or "0" when all ports are open for a protocol. For ICMP rules this parameter will always return "0".

protocol: "tcp" | "udp" | "icmp"

The type of traffic to be allowed. This may be one of tcp, udp, or icmp.

Accepts one of the following:
"tcp"
"udp"
"icmp"
sources: FirewallRuleTarget { addresses, droplet_ids, kubernetes_ids, 2 more }

An object specifying locations from which inbound traffic will be accepted.

addresses?: Array<string>

An array of strings containing the IPv4 addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the firewall will allow traffic.

droplet_ids?: Array<number>

An array containing the IDs of the Droplets to which the firewall will allow traffic.

kubernetes_ids?: Array<string>

An array containing the IDs of the Kubernetes clusters to which the firewall will allow traffic.

load_balancer_uids?: Array<string>

An array containing the IDs of the load balancers to which the firewall will allow traffic.

tags?: Array<string> | null

A flat array of tag names as strings to be applied to the resource. Tag names must exist in order to be referenced in a request.

Requires tag:create and tag:read scopes.

name?: string

A human-readable name for a firewall. The name must begin with an alphanumeric character. Subsequent characters must either be alphanumeric characters, a period (.), or a dash (-).

outbound_rules?: Array<OutboundRule> | null
destinations: FirewallRuleTarget { addresses, droplet_ids, kubernetes_ids, 2 more }

An object specifying locations to which outbound traffic that will be allowed.

addresses?: Array<string>

An array of strings containing the IPv4 addresses, IPv6 addresses, IPv4 CIDRs, and/or IPv6 CIDRs to which the firewall will allow traffic.

droplet_ids?: Array<number>

An array containing the IDs of the Droplets to which the firewall will allow traffic.

kubernetes_ids?: Array<string>

An array containing the IDs of the Kubernetes clusters to which the firewall will allow traffic.

load_balancer_uids?: Array<string>

An array containing the IDs of the load balancers to which the firewall will allow traffic.

tags?: Array<string> | null

A flat array of tag names as strings to be applied to the resource. Tag names must exist in order to be referenced in a request.

Requires tag:create and tag:read scopes.

ports: string

The ports on which traffic will be allowed specified as a string containing a single port, a range (e.g. "8000-9000"), or "0" when all ports are open for a protocol. For ICMP rules this parameter will always return "0".

protocol: "tcp" | "udp" | "icmp"

The type of traffic to be allowed. This may be one of tcp, udp, or icmp.

Accepts one of the following:
"tcp"
"udp"
"icmp"
pending_changes?: Array<PendingChange>

An array of objects each containing the fields "droplet_id", "removing", and "status". It is provided to detail exactly which Droplets are having their security policies updated. When empty, all changes have been successfully applied.

droplet_id?: number
removing?: boolean
status?: string
status?: "waiting" | "succeeded" | "failed"

A status string indicating the current state of the firewall. This can be "waiting", "succeeded", or "failed".

Accepts one of the following:
"waiting"
"succeeded"
"failed"
tags?: Array<string> | null

A flat array of tag names as strings to be applied to the resource. Tag names must exist in order to be referenced in a request.

Requires tag:create and tag:read scopes.

GPU DropletsFirewallsDroplets

Add Droplets to a Firewall
client.gpuDroplets.firewalls.droplets.add(stringfirewallID, DropletAddParams { droplet_ids } body, RequestOptionsoptions?): void
post/v2/firewalls/{firewall_id}/droplets
Remove Droplets from a Firewall
client.gpuDroplets.firewalls.droplets.remove(stringfirewallID, DropletRemoveParams { droplet_ids } body, RequestOptionsoptions?): void
delete/v2/firewalls/{firewall_id}/droplets

GPU DropletsFirewallsRules

Add Rules to a Firewall
client.gpuDroplets.firewalls.rules.add(stringfirewallID, RuleAddParams { inbound_rules, outbound_rules } body?, RequestOptionsoptions?): void
post/v2/firewalls/{firewall_id}/rules
Remove Rules from a Firewall
client.gpuDroplets.firewalls.rules.remove(stringfirewallID, RuleRemoveParams { inbound_rules, outbound_rules } body?, RequestOptionsoptions?): void
delete/v2/firewalls/{firewall_id}/rules

GPU DropletsFirewallsTags

Add Tags to a Firewall
client.gpuDroplets.firewalls.tags.add(stringfirewallID, TagAddParams { tags } body, RequestOptionsoptions?): void
post/v2/firewalls/{firewall_id}/tags
Remove Tags from a Firewall
client.gpuDroplets.firewalls.tags.remove(stringfirewallID, TagRemoveParams { tags } body, RequestOptionsoptions?): void
delete/v2/firewalls/{firewall_id}/tags

GPU DropletsFloating IPs

Create a New Floating IP
client.gpuDroplets.floatingIPs.create(FloatingIPCreateParamsbody, RequestOptionsoptions?): FloatingIPCreateResponse { floating_ip, links }
post/v2/floating_ips
Delete a Floating IP
client.gpuDroplets.floatingIPs.delete(stringfloatingIP, RequestOptionsoptions?): void
delete/v2/floating_ips/{floating_ip}
List All Floating IPs
client.gpuDroplets.floatingIPs.list(FloatingIPListParams { page, per_page } query?, RequestOptionsoptions?): FloatingIPListResponse { meta, floating_ips, links }
get/v2/floating_ips
Retrieve an Existing Floating IP
client.gpuDroplets.floatingIPs.retrieve(stringfloatingIP, RequestOptionsoptions?): FloatingIPRetrieveResponse { floating_ip }
get/v2/floating_ips/{floating_ip}
ModelsExpand Collapse
FloatingIP { droplet, ip, locked, 2 more }
droplet?: unknown | Droplet { id, backup_ids, created_at, 20 more }

The Droplet that the floating IP has been assigned to. When you query a floating IP, if it is assigned to a Droplet, the entire Droplet object will be returned. If it is not assigned, the value will be null.

Requires droplet:read scope.

Accepts one of the following:
unknown
Droplet { id, backup_ids, created_at, 20 more }
id: number

A unique identifier for each Droplet instance. This is automatically generated upon Droplet creation.

backup_ids: Array<number>

An array of backup IDs of any backups that have been taken of the Droplet instance. Droplet backups are enabled at the time of the instance creation.
Requires image:read scope.

created_at: string

A time value given in ISO8601 combined date and time format that represents when the Droplet was created.

formatdate-time
disk: number

The size of the Droplet's disk in gigabytes.

features: Array<string>

An array of features enabled on this Droplet.

image: Image { id, created_at, description, 11 more }

The Droplet's image.
Requires image:read scope.

id?: number

A unique number that can be used to identify and reference a specific image.

created_at?: string

A time value given in ISO8601 combined date and time format that represents when the image was created.

formatdate-time
description?: string

An optional free-form text field to describe an image.

distribution?: "Arch Linux" | "CentOS" | "CoreOS" | 10 more

The name of a custom image's distribution. Currently, the valid values are Arch Linux, CentOS, CoreOS, Debian, Fedora, Fedora Atomic, FreeBSD, Gentoo, openSUSE, RancherOS, Rocky Linux, Ubuntu, and Unknown. Any other value will be accepted but ignored, and Unknown will be used in its place.

Accepts one of the following:
"Arch Linux"
"CentOS"
"CoreOS"
"Debian"
"Fedora"
"Fedora Atomic"
"FreeBSD"
"Gentoo"
"openSUSE"
"RancherOS"
"Rocky Linux"
"Ubuntu"
"Unknown"
error_message?: string

A string containing information about errors that may occur when importing a custom image.

min_disk_size?: number | null

The minimum disk size in GB required for a Droplet to use this image.

minimum0
name?: string

The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.

public?: boolean

This is a boolean value that indicates whether the image in question is public or not. An image that is public is available to all accounts. A non-public image is only accessible from your account.

regions?: Array<"ams1" | "ams2" | "ams3" | 12 more>

This attribute is an array of the regions that the image is available in. The regions are represented by their identifying slug values.

Accepts one of the following:
"ams1"
"ams2"
"ams3"
"blr1"
"fra1"
"lon1"
"nyc1"
"nyc2"
"nyc3"
"sfo1"
"sfo2"
"sfo3"
"sgp1"
"tor1"
"syd1"
size_gigabytes?: number | null

The size of the image in gigabytes.

formatfloat
slug?: string | null

A uniquely identifying string that is associated with each of the DigitalOcean-provided public images. These can be used to reference a public image as an alternative to the numeric id.

status?: "NEW" | "available" | "pending" | 2 more

A status string indicating the state of a custom image. This may be NEW, available, pending, deleted, or retired.

Accepts one of the following:
"NEW"
"available"
"pending"
"deleted"
"retired"
tags?: Array<string> | null

A flat array of tag names as strings to be applied to the resource. Tag names may be for either existing or new tags.

Requires tag:create scope.

type?: "base" | "snapshot" | "backup" | 2 more

Describes the kind of image. It may be one of base, snapshot, backup, custom, or admin. Respectively, this specifies whether an image is a DigitalOcean base OS image, user-generated Droplet snapshot, automatically created Droplet backup, user-provided virtual machine image, or an image used for DigitalOcean managed resources (e.g. DOKS worker nodes).

Accepts one of the following:
"base"
"snapshot"
"backup"
"custom"
"admin"
locked: boolean

A boolean value indicating whether the Droplet has been locked, preventing actions by users.

memory: number

Memory of the Droplet in megabytes.

multipleOf8
name: string

The human-readable name set for the Droplet instance.

networks: Networks { v4, v6 }

The details of the network that are configured for the Droplet instance. This is an object that contains keys for IPv4 and IPv6. The value of each of these is an array that contains objects describing an individual IP resource allocated to the Droplet. These will define attributes like the IP address, netmask, and gateway of the specific network depending on the type of network it is.

v4?: Array<NetworkV4 { gateway, ip_address, netmask, type } >
gateway?: string

The gateway of the specified IPv4 network interface.

For private interfaces, a gateway is not provided. This is denoted by returning nil as its value.

ip_address?: string

The IP address of the IPv4 network interface.

formatipv4
netmask?: string

The netmask of the IPv4 network interface.

formatipv4
type?: "public" | "private"

The type of the IPv4 network interface.

Accepts one of the following:
"public"
"private"
v6?: Array<NetworkV6 { gateway, ip_address, netmask, type } >
gateway?: string

The gateway of the specified IPv6 network interface.

formatipv6
ip_address?: string

The IP address of the IPv6 network interface.

formatipv6
netmask?: number

The netmask of the IPv6 network interface.

type?: "public"

The type of the IPv6 network interface.

Note: IPv6 private networking is not currently supported.

Accepts one of the following:
"public"
next_backup_window: DropletNextBackupWindow { end, start } | null

The details of the Droplet's backups feature, if backups are configured for the Droplet. This object contains keys for the start and end times of the window during which the backup will start.

end?: string

A time value given in ISO8601 combined date and time format specifying the end of the Droplet's backup window.

formatdate-time
start?: string

A time value given in ISO8601 combined date and time format specifying the start of the Droplet's backup window.

formatdate-time
region: Region { available, features, name, 2 more }
available: boolean

This is a boolean value that represents whether new Droplets can be created in this region.

features: Array<string>

This attribute is set to an array which contains features available in this region

name: string

The display name of the region. This will be a full name that is used in the control panel and other interfaces.

sizes: Array<string>

This attribute is set to an array which contains the identifying slugs for the sizes available in this region. sizes:read is required to view.

slug: string

A human-readable string that is used as a unique identifier for each region.

size: Size { available, description, disk, 9 more }
available: boolean

This is a boolean value that represents whether new Droplets can be created with this size.

description: string

A string describing the class of Droplets created from this size. For example: Basic, General Purpose, CPU-Optimized, Memory-Optimized, or Storage-Optimized.

disk: number

The amount of disk space set aside for Droplets of this size. The value is represented in gigabytes.

memory: number

The amount of RAM allocated to Droplets created of this size. The value is represented in megabytes.

multipleOf8
minimum8
price_hourly: number

This describes the price of the Droplet size as measured hourly. The value is measured in US dollars.

formatfloat
price_monthly: number

This attribute describes the monthly cost of this Droplet size if the Droplet is kept for an entire month. The value is measured in US dollars.

formatfloat
regions: Array<string>

An array containing the region slugs where this size is available for Droplet creates.

slug: string

A human-readable string that is used to uniquely identify each size.

transfer: number

The amount of transfer bandwidth that is available for Droplets created in this size. This only counts traffic on the public interface. The value is given in terabytes.

formatfloat
vcpus: number

The number of CPUs allocated to Droplets of this size.

disk_info?: Array<DiskInfo { size, type } >

An array of objects containing information about the disks available to Droplets created with this size.

size?: Size { amount, unit }
amount?: number

The amount of space allocated to the disk.

unit?: string

The unit of measure for the disk size.

type?: "local" | "scratch"

The type of disk. All Droplets contain a local disk. Additionally, GPU Droplets can also have a scratch disk for non-persistent data.

Accepts one of the following:
"local"
"scratch"
gpu_info?: GPUInfo { count, model, vram }

An object containing information about the GPU capabilities of Droplets created with this size.

count?: number

The number of GPUs allocated to the Droplet.

model?: string

The model of the GPU.

vram?: Vram { amount, unit }
amount?: number

The amount of VRAM allocated to the GPU.

unit?: string

The unit of measure for the VRAM.

size_slug: string

The unique slug identifier for the size of this Droplet.

snapshot_ids: Array<number>

An array of snapshot IDs of any snapshots created from the Droplet instance.
Requires image:read scope.

status: "new" | "active" | "off" | "archive"

A status string indicating the state of the Droplet instance. This may be "new", "active", "off", or "archive".

Accepts one of the following:
"new"
"active"
"off"
"archive"
tags: Array<string>

An array of Tags the Droplet has been tagged with.
Requires tag:read scope.

vcpus: number

The number of virtual CPUs.

volume_ids: Array<string>

A flat array including the unique identifier for each Block Storage volume attached to the Droplet.
Requires block_storage:read scope.

disk_info?: Array<DiskInfo { size, type } >

An array of objects containing information about the disks available to the Droplet.

size?: Size { amount, unit }
amount?: number

The amount of space allocated to the disk.

unit?: string

The unit of measure for the disk size.

type?: "local" | "scratch"

The type of disk. All Droplets contain a local disk. Additionally, GPU Droplets can also have a scratch disk for non-persistent data.

Accepts one of the following:
"local"
"scratch"
gpu_info?: GPUInfo { count, model, vram }

An object containing information about the GPU capabilities of Droplets created with this size.

count?: number

The number of GPUs allocated to the Droplet.

model?: string

The model of the GPU.

vram?: Vram { amount, unit }
amount?: number

The amount of VRAM allocated to the GPU.

unit?: string

The unit of measure for the VRAM.

Deprecatedkernel?: Kernel { id, name, version } | null

Note: All Droplets created after March 2017 use internal kernels by default. These Droplets will have this attribute set to null.

The current kernel for Droplets with externally managed kernels. This will initially be set to the kernel of the base image when the Droplet is created.

id?: number

A unique number used to identify and reference a specific kernel.

name?: string

The display name of the kernel. This is shown in the web UI and is generally a descriptive title for the kernel in question.

version?: string

A standard kernel version string representing the version, patch, and release information.

vpc_uuid?: string

A string specifying the UUID of the VPC to which the Droplet is assigned.
Requires vpc:read scope.

ip?: string

The public IP address of the floating IP. It also serves as its identifier.

formatipv4
locked?: boolean

A boolean value indicating whether or not the floating IP has pending actions preventing new ones from being submitted.

project_id?: string

The UUID of the project to which the reserved IP currently belongs.

Requires project:read scope.

formatuuid
region?: Region

The region that the floating IP is reserved to. When you query a floating IP, the entire region object will be returned.

GPU DropletsFloating IPsActions

Initiate a Floating IP Action
client.gpuDroplets.floatingIPs.actions.create(stringfloatingIP, ActionCreateParamsbody, RequestOptionsoptions?): ActionCreateResponse { action }
post/v2/floating_ips/{floating_ip}/actions
List All Actions for a Floating IP
client.gpuDroplets.floatingIPs.actions.list(stringfloatingIP, RequestOptionsoptions?): ActionListResponse { meta, actions, links }
get/v2/floating_ips/{floating_ip}/actions
Retrieve an Existing Floating IP Action
client.gpuDroplets.floatingIPs.actions.retrieve(numberactionID, ActionRetrieveParams { floating_ip } params, RequestOptionsoptions?): ActionRetrieveResponse { action }
get/v2/floating_ips/{floating_ip}/actions/{action_id}

GPU DropletsImages

Create a Custom Image
client.gpuDroplets.images.create(ImageCreateParams { description, distribution, name, 3 more } body, RequestOptionsoptions?): ImageCreateResponse { image }
post/v2/images
Delete an Image
client.gpuDroplets.images.delete(numberimageID, RequestOptionsoptions?): void
delete/v2/images/{image_id}
List All Images
client.gpuDroplets.images.list(ImageListParams { page, per_page, _private, 2 more } query?, RequestOptionsoptions?): ImageListResponse { images, meta, links }
get/v2/images
Retrieve an Existing Image
client.gpuDroplets.images.retrieve(number | stringimageID, RequestOptionsoptions?): ImageRetrieveResponse { image }
get/v2/images/{image_id}
Update an Image
client.gpuDroplets.images.update(numberimageID, ImageUpdateParams { description, distribution, name } body, RequestOptionsoptions?): ImageUpdateResponse { image }
put/v2/images/{image_id}

GPU DropletsImagesActions

Initiate an Image Action
client.gpuDroplets.images.actions.create(numberimageID, ActionCreateParamsbody, RequestOptionsoptions?): Action { id, completed_at, region, 6 more }
post/v2/images/{image_id}/actions
List All Actions for an Image
client.gpuDroplets.images.actions.list(numberimageID, RequestOptionsoptions?): ActionListResponse { meta, actions, links }
get/v2/images/{image_id}/actions
Retrieve an Existing Action
client.gpuDroplets.images.actions.retrieve(numberactionID, ActionRetrieveParams { image_id } params, RequestOptionsoptions?): Action { id, completed_at, region, 6 more }
get/v2/images/{image_id}/actions/{action_id}

GPU DropletsLoad Balancers

Create a New Load Balancer
client.gpuDroplets.loadBalancers.create(LoadBalancerCreateParamsbody, RequestOptionsoptions?): LoadBalancerCreateResponse { load_balancer }
post/v2/load_balancers
Delete a Load Balancer
client.gpuDroplets.loadBalancers.delete(stringlbID, RequestOptionsoptions?): void
delete/v2/load_balancers/{lb_id}
Delete a Global Load Balancer CDN Cache
client.gpuDroplets.loadBalancers.deleteCache(stringlbID, RequestOptionsoptions?): void
delete/v2/load_balancers/{lb_id}/cache
List All Load Balancers
client.gpuDroplets.loadBalancers.list(LoadBalancerListParams { page, per_page } query?, RequestOptionsoptions?): LoadBalancerListResponse { meta, links, load_balancers }
get/v2/load_balancers
Retrieve an Existing Load Balancer
client.gpuDroplets.loadBalancers.retrieve(stringlbID, RequestOptionsoptions?): LoadBalancerRetrieveResponse { load_balancer }
get/v2/load_balancers/{lb_id}
Update a Load Balancer
client.gpuDroplets.loadBalancers.update(stringlbID, LoadBalancerUpdateParamsbody, RequestOptionsoptions?): LoadBalancerUpdateResponse { load_balancer }
put/v2/load_balancers/{lb_id}
ModelsExpand Collapse
Domains { certificate_id, is_managed, name }

An object specifying domain configurations for a Global load balancer.

certificate_id?: string

The ID of the TLS certificate used for SSL termination.

is_managed?: boolean

A boolean value indicating if the domain is already managed by DigitalOcean. If true, all A and AAAA records required to enable Global load balancers will be automatically added.

name?: string

FQDN to associate with a Global load balancer.

ForwardingRule { entry_port, entry_protocol, target_port, 3 more }

An object specifying a forwarding rule for a load balancer.

entry_port: number

An integer representing the port on which the load balancer instance will listen.

entry_protocol: "http" | "https" | "http2" | 3 more

The protocol used for traffic to the load balancer. The possible values are: http, https, http2, http3, tcp, or udp. If you set the entry_protocol to udp, the target_protocol must be set to udp. When using UDP, the load balancer requires that you set up a health check with a port that uses TCP, HTTP, or HTTPS to work properly.

Accepts one of the following:
"http"
"https"
"http2"
"http3"
"tcp"
"udp"
target_port: number

An integer representing the port on the backend Droplets to which the load balancer will send traffic.

target_protocol: "http" | "https" | "http2" | 2 more

The protocol used for traffic from the load balancer to the backend Droplets. The possible values are: http, https, http2, tcp, or udp. If you set the target_protocol to udp, the entry_protocol must be set to udp. When using UDP, the load balancer requires that you set up a health check with a port that uses TCP, HTTP, or HTTPS to work properly.

Accepts one of the following:
"http"
"https"
"http2"
"tcp"
"udp"
certificate_id?: string

The ID of the TLS certificate used for SSL termination if enabled.

tls_passthrough?: boolean

A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets.

GlbSettings { cdn, failover_threshold, region_priorities, 2 more }

An object specifying forwarding configurations for a Global load balancer.

cdn?: Cdn { is_enabled }

An object specifying CDN configurations for a Global load balancer.

is_enabled?: boolean

A boolean flag to enable CDN caching.

failover_threshold?: number

An integer value as a percentage to indicate failure threshold to decide how the regional priorities will take effect. A value of 50 would indicate that the Global load balancer will choose a lower priority region to forward traffic to once this failure threshold has been reached for the higher priority region.

region_priorities?: Record<string, number>

A map of region string to an integer priority value indicating preference for which regional target a Global load balancer will forward traffic to. A lower value indicates a higher priority.

target_port?: number

An integer representing the port on the target backends which the load balancer will forward traffic to.

target_protocol?: "http" | "https" | "http2"

The protocol used for forwarding traffic from the load balancer to the target backends. The possible values are http, https and http2.

Accepts one of the following:
"http"
"https"
"http2"
HealthCheck { check_interval_seconds, healthy_threshold, path, 4 more }

An object specifying health check settings for the load balancer.

check_interval_seconds?: number

The number of seconds between between two consecutive health checks.

healthy_threshold?: number

The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool.

path?: string

The path on the backend Droplets to which the load balancer instance will send a request.

port?: number

An integer representing the port on the backend Droplets on which the health check will attempt a connection.

protocol?: "http" | "https" | "tcp"

The protocol used for health checks sent to the backend Droplets. The possible values are http, https, or tcp.

Accepts one of the following:
"http"
"https"
"tcp"
response_timeout_seconds?: number

The number of seconds the load balancer instance will wait for a response until marking a health check as failed.

unhealthy_threshold?: number

The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool.

LbFirewall { allow, deny }

An object specifying allow and deny rules to control traffic to the load balancer.

allow?: Array<string>

the rules for allowing traffic to the load balancer (in the form 'ip:1.2.3.4' or 'cidr:1.2.0.0/16')

deny?: Array<string>

the rules for denying traffic to the load balancer (in the form 'ip:1.2.3.4' or 'cidr:1.2.0.0/16')

LoadBalancer { forwarding_rules, id, algorithm, 27 more }
forwarding_rules: Array<ForwardingRule { entry_port, entry_protocol, target_port, 3 more } >

An array of objects specifying the forwarding rules for a load balancer.

entry_port: number

An integer representing the port on which the load balancer instance will listen.

entry_protocol: "http" | "https" | "http2" | 3 more

The protocol used for traffic to the load balancer. The possible values are: http, https, http2, http3, tcp, or udp. If you set the entry_protocol to udp, the target_protocol must be set to udp. When using UDP, the load balancer requires that you set up a health check with a port that uses TCP, HTTP, or HTTPS to work properly.

Accepts one of the following:
"http"
"https"
"http2"
"http3"
"tcp"
"udp"
target_port: number

An integer representing the port on the backend Droplets to which the load balancer will send traffic.

target_protocol: "http" | "https" | "http2" | 2 more

The protocol used for traffic from the load balancer to the backend Droplets. The possible values are: http, https, http2, tcp, or udp. If you set the target_protocol to udp, the entry_protocol must be set to udp. When using UDP, the load balancer requires that you set up a health check with a port that uses TCP, HTTP, or HTTPS to work properly.

Accepts one of the following:
"http"
"https"
"http2"
"tcp"
"udp"
certificate_id?: string

The ID of the TLS certificate used for SSL termination if enabled.

tls_passthrough?: boolean

A boolean value indicating whether SSL encrypted traffic will be passed through to the backend Droplets.

id?: string

A unique ID that can be used to identify and reference a load balancer.

formatuuid
Deprecatedalgorithm?: "round_robin" | "least_connections"

This field has been deprecated. You can no longer specify an algorithm for load balancers.

Accepts one of the following:
"round_robin"
"least_connections"
created_at?: string

A time value given in ISO8601 combined date and time format that represents when the load balancer was created.

formatdate-time
disable_lets_encrypt_dns_records?: boolean

A boolean value indicating whether to disable automatic DNS record creation for Let's Encrypt certificates that are added to the load balancer.

domains?: Array<Domains { certificate_id, is_managed, name } >

An array of objects specifying the domain configurations for a Global load balancer.

certificate_id?: string

The ID of the TLS certificate used for SSL termination.

is_managed?: boolean

A boolean value indicating if the domain is already managed by DigitalOcean. If true, all A and AAAA records required to enable Global load balancers will be automatically added.

name?: string

FQDN to associate with a Global load balancer.

droplet_ids?: Array<number>

An array containing the IDs of the Droplets assigned to the load balancer.

enable_backend_keepalive?: boolean

A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets.

enable_proxy_protocol?: boolean

A boolean value indicating whether PROXY Protocol is in use.

firewall?: LbFirewall { allow, deny }

An object specifying allow and deny rules to control traffic to the load balancer.

allow?: Array<string>

the rules for allowing traffic to the load balancer (in the form 'ip:1.2.3.4' or 'cidr:1.2.0.0/16')

deny?: Array<string>

the rules for denying traffic to the load balancer (in the form 'ip:1.2.3.4' or 'cidr:1.2.0.0/16')

glb_settings?: GlbSettings { cdn, failover_threshold, region_priorities, 2 more }

An object specifying forwarding configurations for a Global load balancer.

cdn?: Cdn { is_enabled }

An object specifying CDN configurations for a Global load balancer.

is_enabled?: boolean

A boolean flag to enable CDN caching.

failover_threshold?: number

An integer value as a percentage to indicate failure threshold to decide how the regional priorities will take effect. A value of 50 would indicate that the Global load balancer will choose a lower priority region to forward traffic to once this failure threshold has been reached for the higher priority region.

region_priorities?: Record<string, number>

A map of region string to an integer priority value indicating preference for which regional target a Global load balancer will forward traffic to. A lower value indicates a higher priority.

target_port?: number

An integer representing the port on the target backends which the load balancer will forward traffic to.

target_protocol?: "http" | "https" | "http2"

The protocol used for forwarding traffic from the load balancer to the target backends. The possible values are http, https and http2.

Accepts one of the following:
"http"
"https"
"http2"
health_check?: HealthCheck { check_interval_seconds, healthy_threshold, path, 4 more }

An object specifying health check settings for the load balancer.

check_interval_seconds?: number

The number of seconds between between two consecutive health checks.

healthy_threshold?: number

The number of times a health check must pass for a backend Droplet to be marked "healthy" and be re-added to the pool.

path?: string

The path on the backend Droplets to which the load balancer instance will send a request.

port?: number

An integer representing the port on the backend Droplets on which the health check will attempt a connection.

protocol?: "http" | "https" | "tcp"

The protocol used for health checks sent to the backend Droplets. The possible values are http, https, or tcp.

Accepts one of the following:
"http"
"https"
"tcp"
response_timeout_seconds?: number

The number of seconds the load balancer instance will wait for a response until marking a health check as failed.

unhealthy_threshold?: number

The number of times a health check must fail for a backend Droplet to be marked "unhealthy" and be removed from the pool.

http_idle_timeout_seconds?: number

An integer value which configures the idle timeout for HTTP requests to the target droplets.

minimum30
maximum600
ip?: string

An attribute containing the public-facing IP address of the load balancer.

ipv6?: string

An attribute containing the public-facing IPv6 address of the load balancer.

name?: string

A human-readable name for a load balancer instance.

network?: "EXTERNAL" | "INTERNAL"

A string indicating whether the load balancer should be external or internal. Internal load balancers have no public IPs and are only accessible to resources on the same VPC network. This property cannot be updated after creating the load balancer.

Accepts one of the following:
"EXTERNAL"
"INTERNAL"
network_stack?: "IPV4" | "DUALSTACK"

A string indicating whether the load balancer will support IPv4 or both IPv4 and IPv6 networking. This property cannot be updated after creating the load balancer.

Accepts one of the following:
"IPV4"
"DUALSTACK"
project_id?: string

The ID of the project that the load balancer is associated with. If no ID is provided at creation, the load balancer associates with the user's default project. If an invalid project ID is provided, the load balancer will not be created.

redirect_http_to_https?: boolean

A boolean value indicating whether HTTP requests to the load balancer on port 80 will be redirected to HTTPS on port 443.

region?: Region { available, features, name, 2 more }

The region where the load balancer instance is located. When setting a region, the value should be the slug identifier for the region. When you query a load balancer, an entire region object will be returned.

available: boolean

This is a boolean value that represents whether new Droplets can be created in this region.

features: Array<string>

This attribute is set to an array which contains features available in this region

name: string

The display name of the region. This will be a full name that is used in the control panel and other interfaces.

sizes: Array<string>

This attribute is set to an array which contains the identifying slugs for the sizes available in this region. sizes:read is required to view.

slug: string

A human-readable string that is used as a unique identifier for each region.

Deprecatedsize?: "lb-small" | "lb-medium" | "lb-large"

This field has been replaced by the size_unit field for all regions except in AMS2, NYC2, and SFO1. Each available load balancer size now equates to the load balancer having a set number of nodes.

  • lb-small = 1 node
  • lb-medium = 3 nodes
  • lb-large = 6 nodes

You can resize load balancers after creation up to once per hour. You cannot resize a load balancer within the first hour of its creation.

Accepts one of the following:
"lb-small"
"lb-medium"
"lb-large"
size_unit?: number

How many nodes the load balancer contains. Each additional node increases the load balancer's ability to manage more connections. Load balancers can be scaled up or down, and you can change the number of nodes after creation up to once per hour. This field is currently not available in the AMS2, NYC2, or SFO1 regions. Use the size field to scale load balancers that reside in these regions.

minimum1
maximum100
status?: "new" | "active" | "errored"

A status string indicating the current state of the load balancer. This can be new, active, or errored.

Accepts one of the following:
"new"
"active"
"errored"
sticky_sessions?: StickySessions { cookie_name, cookie_ttl_seconds, type }

An object specifying sticky sessions settings for the load balancer.

The name of the cookie sent to the client. This attribute is only returned when using cookies for the sticky sessions type.

The number of seconds until the cookie set by the load balancer expires. This attribute is only returned when using cookies for the sticky sessions type.

type?: "cookies" | "none"

An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are cookies or none.

Accepts one of the following:
"cookies"
"none"
tag?: string

The name of a Droplet tag corresponding to Droplets assigned to the load balancer.

target_load_balancer_ids?: Array<string>

An array containing the UUIDs of the Regional load balancers to be used as target backends for a Global load balancer.

tls_cipher_policy?: "DEFAULT" | "STRONG"

A string indicating the policy for the TLS cipher suites used by the load balancer. The possible values are DEFAULT or STRONG. The default value is DEFAULT.

Accepts one of the following:
"DEFAULT"
"STRONG"
type?: "REGIONAL" | "REGIONAL_NETWORK" | "GLOBAL"

A string indicating whether the load balancer should be a standard regional HTTP load balancer, a regional network load balancer that routes traffic at the TCP/UDP transport layer, or a global load balancer.

Accepts one of the following:
"REGIONAL"
"REGIONAL_NETWORK"
"GLOBAL"
vpc_uuid?: string

A string specifying the UUID of the VPC to which the load balancer is assigned.

formatuuid
StickySessions { cookie_name, cookie_ttl_seconds, type }

An object specifying sticky sessions settings for the load balancer.

The name of the cookie sent to the client. This attribute is only returned when using cookies for the sticky sessions type.

The number of seconds until the cookie set by the load balancer expires. This attribute is only returned when using cookies for the sticky sessions type.

type?: "cookies" | "none"

An attribute indicating how and if requests from a client will be persistently served by the same backend Droplet. The possible values are cookies or none.

Accepts one of the following:
"cookies"
"none"

GPU DropletsLoad BalancersDroplets

Add Droplets to a Load Balancer
client.gpuDroplets.loadBalancers.droplets.add(stringlbID, DropletAddParams { droplet_ids } body, RequestOptionsoptions?): void
post/v2/load_balancers/{lb_id}/droplets
Remove Droplets from a Load Balancer
client.gpuDroplets.loadBalancers.droplets.remove(stringlbID, DropletRemoveParams { droplet_ids } body, RequestOptionsoptions?): void
delete/v2/load_balancers/{lb_id}/droplets

GPU DropletsLoad BalancersForwarding Rules

Add Forwarding Rules to a Load Balancer
client.gpuDroplets.loadBalancers.forwardingRules.add(stringlbID, ForwardingRuleAddParams { forwarding_rules } body, RequestOptionsoptions?): void
post/v2/load_balancers/{lb_id}/forwarding_rules
Remove Forwarding Rules from a Load Balancer
client.gpuDroplets.loadBalancers.forwardingRules.remove(stringlbID, ForwardingRuleRemoveParams { forwarding_rules } body, RequestOptionsoptions?): void
delete/v2/load_balancers/{lb_id}/forwarding_rules

GPU DropletsSizes

List All Droplet Sizes
client.gpuDroplets.sizes.list(SizeListParams { page, per_page } query?, RequestOptionsoptions?): SizeListResponse { meta, sizes, links }
get/v2/sizes

GPU DropletsSnapshots

Delete a Snapshot
client.gpuDroplets.snapshots.delete(number | stringsnapshotID, RequestOptionsoptions?): void
delete/v2/snapshots/{snapshot_id}
List All Snapshots
client.gpuDroplets.snapshots.list(SnapshotListParams { page, per_page, resource_type } query?, RequestOptionsoptions?): SnapshotListResponse { meta, links, snapshots }
get/v2/snapshots
Retrieve an Existing Snapshot
client.gpuDroplets.snapshots.retrieve(number | stringsnapshotID, RequestOptionsoptions?): SnapshotRetrieveResponse { snapshot }
get/v2/snapshots/{snapshot_id}

GPU DropletsVolumes

Create a New Block Storage Volume
client.gpuDroplets.volumes.create(VolumeCreateParamsbody, RequestOptionsoptions?): VolumeCreateResponse { volume }
post/v2/volumes
Delete a Block Storage Volume
client.gpuDroplets.volumes.delete(stringvolumeID, RequestOptionsoptions?): void
delete/v2/volumes/{volume_id}
Delete a Block Storage Volume by Name
client.gpuDroplets.volumes.deleteByName(VolumeDeleteByNameParams { name, region } params?, RequestOptionsoptions?): void
delete/v2/volumes
List All Block Storage Volumes
client.gpuDroplets.volumes.list(VolumeListParams { name, page, per_page, region } query?, RequestOptionsoptions?): VolumeListResponse { meta, volumes, links }
get/v2/volumes
Retrieve an Existing Block Storage Volume
client.gpuDroplets.volumes.retrieve(stringvolumeID, RequestOptionsoptions?): VolumeRetrieveResponse { volume }
get/v2/volumes/{volume_id}

GPU DropletsVolumesActions

Initiate A Block Storage Action By Volume Id
client.gpuDroplets.volumes.actions.initiateByID(stringvolumeID, ActionInitiateByIDParamsparams, RequestOptionsoptions?): ActionInitiateByIDResponse { action }
post/v2/volumes/{volume_id}/actions
Initiate A Block Storage Action By Volume Name
client.gpuDroplets.volumes.actions.initiateByName(ActionInitiateByNameParamsparams, RequestOptionsoptions?): ActionInitiateByNameResponse { action }
post/v2/volumes/actions
List All Actions for a Volume
client.gpuDroplets.volumes.actions.list(stringvolumeID, ActionListParams { page, per_page } query?, RequestOptionsoptions?): ActionListResponse { meta, actions, links }
get/v2/volumes/{volume_id}/actions
Retrieve an Existing Volume Action
client.gpuDroplets.volumes.actions.retrieve(numberactionID, ActionRetrieveParams { volume_id, page, per_page } params, RequestOptionsoptions?): ActionRetrieveResponse { action }
get/v2/volumes/{volume_id}/actions/{action_id}
ModelsExpand Collapse
VolumeAction extends Action { id, completed_at, region, 6 more } { resource_id, type }
resource_id?: number | null
type?: string

This is the type of action that the object represents. For example, this could be "attach_volume" to represent the state of a volume attach action.

GPU DropletsVolumesSnapshots

Create Snapshot from a Volume
client.gpuDroplets.volumes.snapshots.create(stringvolumeID, SnapshotCreateParams { name, tags } body, RequestOptionsoptions?): SnapshotCreateResponse { snapshot }
post/v2/volumes/{volume_id}/snapshots
Delete a Volume Snapshot
client.gpuDroplets.volumes.snapshots.delete(stringsnapshotID, RequestOptionsoptions?): void
delete/v2/volumes/snapshots/{snapshot_id}
List Snapshots for a Volume
client.gpuDroplets.volumes.snapshots.list(stringvolumeID, SnapshotListParams { page, per_page } query?, RequestOptionsoptions?): SnapshotListResponse { meta, links, snapshots }
get/v2/volumes/{volume_id}/snapshots
Retrieve an Existing Volume Snapshot
client.gpuDroplets.volumes.snapshots.retrieve(stringsnapshotID, RequestOptionsoptions?): SnapshotRetrieveResponse { snapshot }
get/v2/volumes/snapshots/{snapshot_id}