Digital Ocean icon

Digital Ocean

Digital Ocean

Actions14

Overview

This node integrates with the Digital Ocean API to manage domain resources among other capabilities. Specifically, for the Domain - Create operation, it allows users to create a new domain in their Digital Ocean account by specifying the domain name and its associated IP address.

Common scenarios where this node is beneficial include:

  • Automating domain setup as part of infrastructure provisioning workflows.
  • Managing DNS domains programmatically without manual intervention.
  • Integrating domain creation into CI/CD pipelines or cloud resource orchestration.

For example, you can use this node to automatically create a domain pointing to a newly created droplet's IP address, streamlining deployment processes.

Properties

Name Meaning
Authentication Method used to authenticate with Digital Ocean API. Options: Access Token, OAuth2.
Domain Name The name of the domain to create (e.g., "example.com").
IP Address The IP address that the domain will point to.

Output

The output JSON contains the details of the created domain as returned by the Digital Ocean API. This typically includes fields such as the domain name, TTL, zone file, and other metadata about the domain.

Example structure of the output JSON (simplified):

{
  "name": "example.com",
  "ttl": 1800,
  "zone_file": "...",
  // other domain properties
}

No binary data output is produced by this operation.

Dependencies

  • Requires an active Digital Ocean account.
  • Requires authentication via either an API access token or OAuth2 credentials configured in n8n.
  • The node depends on the Digital Ocean API being accessible and the provided credentials having permissions to create domains.

Troubleshooting

  • Invalid Credentials: If authentication fails, verify that the API key or OAuth2 token is valid and has sufficient permissions.
  • Domain Already Exists: Attempting to create a domain that already exists may result in an error from the API. Ensure the domain name is unique or handle errors gracefully.
  • Invalid IP Address: Providing an invalid IP address format may cause the request to fail. Validate the IP address before execution.
  • API Rate Limits: Hitting Digital Ocean API rate limits can cause requests to be rejected temporarily. Implement retry logic or reduce request frequency if needed.

Common error messages:

  • "Unauthorized": Check your authentication credentials.
  • "Domain already exists": Use a different domain name or delete the existing one first.
  • "Invalid IP address": Confirm the IP address format is correct.

Links and References

Discussion