DigitalOcean

App · Cloud Computing · 5 actions

List your Droplets 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.
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.

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"
}

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
    }
  ]
}

On this page