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

ActionWhat it does
Create DNS recordCreate a new DNS record in a domain managed by DigitalOcean.
Create domainAdd a domain to DigitalOcean's DNS so you can manage its records.
Delete domainDelete a domain from DigitalOcean's DNS.
Get DropletGet one Droplet: its name, status (new, active, off or archive), size, region, image and public IP address.
List DNS recordsList the DNS records for a domain managed by DigitalOcean, with optional filters by record type and name.
List DropletsList the Droplets (virtual machines) in your DigitalOcean account, optionally filtered by tag.
Power on DropletSwitch a Droplet that is off back on.
Reboot DropletRestart a Droplet, which takes it offline for a short while.
Shut down DropletShut a Droplet down, which takes it and everything running on it offline (DigitalOcean still bills a Droplet that is off).
Snapshot DropletTake 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 namedomain_nametextRequired
The domain to add the record to (for example, example.com)
Record typerecord_typetextRequired
The DNS record type (e.g., A, AAAA, CNAME, TXT, MX, NS)
NamenametextRequired
The host name for the record (for example, www, or @ for the root domain)
DatadatatextRequired
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)
Priorityprioritynumber
[Optional] Priority for the record, required by MX and SRV records (lower is higher priority)

Outputs

datatext
idnumber
nametext
prioritynumber
ttlnumber
typetext
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

NamenametextRequired
The domain name to add (for example, example.com)
IP addressip_addresstext
[Optional] An IPv4 address. When provided, an A record for the root domain (@) is created pointing to it.

Outputs

nametext
ttlnumber
zone_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

NamenametextRequired
The domain name to delete (for example, example.com)

Outputs

deletedtrue/false
nametext
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

Dropletdroplet_idtextRequired
The Droplet: pick it from the list, or give its id.

Outputs

created_attext
disknumber
idnumber
imagetext
memorynumber
nametext
public_ipv4text
regiontext
sizetext
statustext
vcpusnumber
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 namedomain_nametextRequired
The domain to list records for (for example, example.com)
Record typerecord_typetext
[Optional] Only return records of this type (e.g., A, CNAME, TXT)
Namenametext
[Optional] Only return records with this fully qualified name (e.g., www.example.com)
Pagepagenumber
[Optional] Which page of results to return (default: 1)
Per pageper_pagenumber
[Optional] Number of records per page (default: 20)

Outputs

countnumber
recordslist
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 nametag_nametext
[Optional] Only return Droplets that have this tag
Pagepagenumber
[Optional] Which page of results to return (default: 1)
Per pageper_pagenumber
[Optional] Number of Droplets per page (default: 20)

Outputs

countnumber
dropletslist
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

Dropletdroplet_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

Dropletdroplet_idtextRequired
The Droplet: pick it from the list, or give its id.
Forceforcetrue/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

Dropletdroplet_idtextRequired
The Droplet: pick it from the list, or give its id.
Forceforcetrue/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

Dropletdroplet_idtextRequired
The Droplet: pick it from the list, or give its id.
Snapshot namenametext
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"
}

On this page