DigitalOcean
App · Cloud Computing · 10 actions
List your Droplets, switch them on or off, reboot and snapshot them, and manage DigitalOcean DNS: add domains, create records, and clean up when you're done.
Actions
| Action | What it does |
|---|---|
| Create DNS record | Create a new DNS record in a domain managed by DigitalOcean. |
| Create domain | Add a domain to DigitalOcean's DNS so you can manage its records. |
| Delete domain | Delete a domain from DigitalOcean's DNS. |
| Get Droplet | Get one Droplet: its name, status (new, active, off or archive), size, region, image and public IP address. |
| List DNS records | List the DNS records for a domain managed by DigitalOcean, with optional filters by record type and name. |
| List Droplets | List the Droplets (virtual machines) in your DigitalOcean account, optionally filtered by tag. |
| Power on Droplet | Switch a Droplet that is off back on. |
| Reboot Droplet | Restart a Droplet, which takes it offline for a short while. |
| Shut down Droplet | Shut a Droplet down, which takes it and everything running on it offline (DigitalOcean still bills a Droplet that is off). |
| Snapshot Droplet | Take a snapshot of a Droplet: a full copy of its disk you can restore or build new Droplets from. |
Create DNS record
Create a new DNS record in a domain managed by DigitalOcean.
Inputs
- Domain name
domain_nametextRequired - The domain to add the record to (for example, example.com)
- Record type
record_typetextRequired - The DNS record type (e.g., A, AAAA, CNAME, TXT, MX, NS)
- Name
nametextRequired - The host name for the record (for example, www, or @ for the root domain)
- Data
datatextRequired - The value for the record (for example, an IP address for an A record, or a hostname for a CNAME)
- Time to live (TTL)
ttlnumber - [Optional] How long DNS servers cache this record, in seconds (DigitalOcean minimum is 30)
- Priority
prioritynumber - [Optional] Priority for the record, required by MX and SRV records (lower is higher priority)
Outputs
datatextidnumbernametextprioritynumberttlnumbertypetext
Example output
{
"data": "192.0.2.10",
"id": 28448429,
"name": "www",
"priority": null,
"ttl": 1800,
"type": "A"
}Create domain
Add a domain to DigitalOcean's DNS so you can manage its records. DigitalOcean DNS hosting is free.
Inputs
- Name
nametextRequired - The domain name to add (for example, example.com)
- IP address
ip_addresstext - [Optional] An IPv4 address. When provided, an A record for the root domain (@) is created pointing to it.
Outputs
nametextttlnumberzone_filetext
Example output
{
"name": "example.com",
"ttl": 1800,
"zone_file": "$ORIGIN example.com.\n"
}Delete domain
Delete a domain from DigitalOcean's DNS. This also removes all of the domain's DNS records and cannot be undone.
Inputs
- Name
nametextRequired - The domain name to delete (for example, example.com)
Outputs
deletedtrue/falsenametext
Example output
{
"deleted": true,
"name": "example.com"
}Get Droplet
Get one Droplet: its name, status (new, active, off or archive), size, region, image and public IP address.
Inputs
- Droplet
droplet_idtextRequired - The Droplet: pick it from the list, or give its id.
Outputs
created_attextdisknumberidnumberimagetextmemorynumbernametextpublic_ipv4textregiontextsizetextstatustextvcpusnumber
Example output
{
"created_at": "2024-01-15T18:37:44Z",
"disk": 25,
"id": 3164444,
"image": "ubuntu-22-04-x64",
"memory": 1024,
"name": "web-01",
"public_ipv4": "192.0.2.10",
"region": "nyc3",
"size": "s-1vcpu-1gb",
"status": "active",
"vcpus": 1
}List DNS records
List the DNS records for a domain managed by DigitalOcean, with optional filters by record type and name.
Inputs
- Domain name
domain_nametextRequired - The domain to list records for (for example, example.com)
- Record type
record_typetext - [Optional] Only return records of this type (e.g., A, CNAME, TXT)
- Name
nametext - [Optional] Only return records with this fully qualified name (e.g., www.example.com)
- Page
pagenumber - [Optional] Which page of results to return (default: 1)
- Per page
per_pagenumber - [Optional] Number of records per page (default: 20)
Outputs
countnumberrecordslist
Example output
{
"count": 1,
"records": [
{
"data": "192.0.2.10",
"id": 28448429,
"name": "www",
"priority": null,
"ttl": 1800,
"type": "A"
}
]
}List Droplets
List the Droplets (virtual machines) in your DigitalOcean account, optionally filtered by tag.
Inputs
- Tag name
tag_nametext - [Optional] Only return Droplets that have this tag
- Page
pagenumber - [Optional] Which page of results to return (default: 1)
- Per page
per_pagenumber - [Optional] Number of Droplets per page (default: 20)
Outputs
countnumberdropletslist
Example output
{
"count": 1,
"droplets": [
{
"created_at": "2024-01-15T18:37:44Z",
"disk": 25,
"id": 3164444,
"image": "ubuntu-22-04-x64",
"memory": 1024,
"name": "web-01",
"public_ipv4": "192.0.2.10",
"region": "nyc3",
"size": "s-1vcpu-1gb",
"status": "active",
"vcpus": 1
}
]
}Power on Droplet
Switch a Droplet that is off back on. DigitalOcean starts it and the step returns at once; it is never repeated if it fails.
Inputs
- Droplet
droplet_idtextRequired - The Droplet: pick it from the list, or give its id.
Outputs
action_idnumber- The id of the action DigitalOcean started.
action_statustext- in-progress, completed or errored.
action_typetext- What was started: power_on, shutdown, power_off, reboot, power_cycle or snapshot.
droplet_idnumber- The Droplet's id.
regiontext- The Droplet's region.
started_attext- When it started.
Example output
{
"action_id": 36804636,
"action_status": "in-progress",
"action_type": "power_on",
"droplet_id": 3164444,
"region": "nyc3",
"started_at": "2026-11-07T12:00:00Z"
}Reboot Droplet
Restart a Droplet, which takes it offline for a short while. With Force, power-cycle it instead. It is never repeated if it fails.
Inputs
- Droplet
droplet_idtextRequired - The Droplet: pick it from the list, or give its id.
- Force
forcetrue/false - Power-cycle the Droplet (like pressing a reset button) instead of asking it to restart. Unsaved data can be lost.Default:
false.
Outputs
action_idnumber- The id of the action DigitalOcean started.
action_statustext- in-progress, completed or errored.
action_typetext- What was started: power_on, shutdown, power_off, reboot, power_cycle or snapshot.
droplet_idnumber- The Droplet's id.
regiontext- The Droplet's region.
started_attext- When it started.
Example output
{
"action_id": 36804636,
"action_status": "in-progress",
"action_type": "reboot",
"droplet_id": 3164444,
"region": "nyc3",
"started_at": "2026-11-07T12:00:00Z"
}Shut down Droplet
Shut a Droplet down, which takes it and everything running on it offline (DigitalOcean still bills a Droplet that is off). With Force, cut its power instead. It is never repeated if it fails.
Inputs
- Droplet
droplet_idtextRequired - The Droplet: pick it from the list, or give its id.
- Force
forcetrue/false - Cut the power instead of asking the Droplet to shut down. Use it only if a normal shut down didn't work: unsaved data can be lost.Default:
false.
Outputs
action_idnumber- The id of the action DigitalOcean started.
action_statustext- in-progress, completed or errored.
action_typetext- What was started: power_on, shutdown, power_off, reboot, power_cycle or snapshot.
droplet_idnumber- The Droplet's id.
regiontext- The Droplet's region.
started_attext- When it started.
Example output
{
"action_id": 36804636,
"action_status": "in-progress",
"action_type": "shutdown",
"droplet_id": 3164444,
"region": "nyc3",
"started_at": "2026-11-07T12:00:00Z"
}Snapshot Droplet
Take a snapshot of a Droplet: a full copy of its disk you can restore or build new Droplets from. Snapshots are billed for the space they use. It is never repeated if it fails.
Inputs
- Droplet
droplet_idtextRequired - The Droplet: pick it from the list, or give its id.
- Snapshot name
nametext - Optional. A name for the snapshot. Leave blank for DigitalOcean's own (the Droplet's name and the time).
Outputs
action_idnumber- The id of the action DigitalOcean started.
action_statustext- in-progress, completed or errored.
action_typetext- What was started: power_on, shutdown, power_off, reboot, power_cycle or snapshot.
droplet_idnumber- The Droplet's id.
regiontext- The Droplet's region.
started_attext- When it started.
Example output
{
"action_id": 36804636,
"action_status": "in-progress",
"action_type": "snapshot",
"droplet_id": 3164444,
"region": "nyc3",
"started_at": "2026-11-07T12:00:00Z"
}