Skip to content
  • Auto
  • Light
  • Dark

Autoscale

Autoscale

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