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