droplet_autoscale_pool
Generated on 11 Feb 2026
from digitalocean.cloud version
v1.2.1
Synopsis
Create or delete Droplet Autoscale Pools. Droplet Autoscale Pools allow you to automatically scale the number of Droplets in a pool based on resource utilization or scheduled times. View the API documentation at https://docs.digitalocean.com/reference/api/api-reference/#tag/Droplet-Autoscale-Pools.
Requirements
- pydo >= 0.1.3
- azure-core >= 1.26.1
Parameters
| Parameter | Choices / Default | Description |
|---|---|---|
client_override_optionsdict |
Client override options (developer use). For example, can be used to override the DigitalOcean API endpoint for an internal test suite. If provided, these options will knock out existing options. | |
configdict |
Configuration for the autoscale pool. | |
droplet_templatedict |
Template for creating Droplets in the pool. | |
idstr |
The unique identifier of the Droplet Autoscale Pool. Used for lookup when deleting or updating. | |
module_override_optionsdict |
Module override options (developer use). Can be used to override module options to support experimental or future options. If provided, these options will knock out existing options. | |
namestr / required |
The name of the Droplet Autoscale Pool. | |
statestr |
Choices:
|
State of the resource, present to create, absent to destroy. |
timeoutint |
Default: 300 |
Polling timeout in seconds. |
tokenstr |
DigitalOcean API token. There are several environment variables which can be used to provide this value. DIGITALOCEAN_ACCESS_TOKEN, DIGITALOCEAN_TOKEN, DO_API_TOKEN, DO_API_KEY, DO_OAUTH_TOKEN and OAUTH_TOKEN |
Examples
- name: Create Droplet Autoscale Pool
digitalocean.cloud.droplet_autoscale_pool:
token: "{{ token }}"
state: present
name: my-autoscale-pool
config:
min_instances: 1
max_instances: 10
target_cpu_utilization: 0.7
cooldown_minutes: 5
droplet_template:
size: s-1vcpu-1gb
region: nyc1
image: ubuntu-22-04-x64
ssh_keys:
- "{{ ssh_key_id }}"
- name: Delete Droplet Autoscale Pool
digitalocean.cloud.droplet_autoscale_pool:
token: "{{ token }}"
state: absent
name: my-autoscale-poolReturn Values
| Key | Returned | Description |
|---|---|---|
droplet_autoscale_pooldict |
always | Droplet Autoscale Pool information. Sample: |
errordict |
failure | DigitalOcean API error. Sample: |
msgstr |
always | Droplet Autoscale Pool result information. Sample: |