Digital Ocean icon

Digital Ocean

Digital Ocean

Actions14

Overview

This node integrates with the Digital Ocean API to perform various operations on Digital Ocean resources. Specifically, for the Account - Get operation, it retrieves information about the authenticated user's Digital Ocean account. This can be useful for scenarios where you want to programmatically access your account details such as email, droplet limits, and other metadata.

Practical examples include:

  • Automatically fetching account info to verify API connectivity.
  • Using account data in workflows that manage droplets or domains based on account quotas or status.
  • Monitoring account details as part of an infrastructure automation pipeline.

Properties

Name Meaning
Authentication Method used to authenticate API requests. Options: "Access Token" or "OAuth2".

Output

The output JSON contains the account information returned by the Digital Ocean API under the account field. This typically includes details such as:

  • Account email
  • Droplet limits and usage
  • Floating IP limits and usage
  • Status and UUID of the account
  • Other metadata related to the Digital Ocean user account

The output is a single JSON object representing the account details.

Dependencies

  • Requires a valid Digital Ocean API authentication credential, either an Access Token or OAuth2 token.
  • The node uses internal helper functions to make HTTP requests to the Digital Ocean API endpoints.
  • No additional external dependencies beyond the Digital Ocean API and n8n's credential management.

Troubleshooting

  • Authentication errors: Ensure the provided API token or OAuth2 credentials are valid and have sufficient permissions.
  • API rate limits: If many requests are made rapidly, the Digital Ocean API may throttle requests; consider adding delays or handling retries.
  • Network issues: Verify network connectivity to the Digital Ocean API endpoint.
  • Unexpected response structure: If the API changes, the node might fail to parse the response correctly; check for updates to the node or API documentation.

Common error messages will relate to failed HTTP requests or invalid parameters. Resolving them usually involves verifying credentials and input parameters.

Links and References

Discussion