DigitalOcean
List and create droplets on DigitalOcean.
On this page
Connect
Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("digital-ocean", action, input) resolves with the provider's answer and rejects when DigitalOcean isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "digital-ocean"} says whether yours can call it.
// workflows/notify.ts: call DigitalOcean when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellDigitalocean = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when DigitalOcean isn't connected.
const output = await step.run("DigitalOcean", () =>
step.ctx.integrations.invoke("digital-ocean", "create_droplet", {
"creation_mode": "single",
"name": "<droplet name>",
"names": [],
"size": "<size>",
"image": "<image>"
}),
);
step.ctx.log("DigitalOcean answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "digital-ocean",
"piece_action": "create_droplet",
"input": {
"creation_mode": "single",
"name": "<droplet name>",
"names": [],
"size": "<size>",
"image": "<image>"
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/digital-ocean/create_droplet" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"creation_mode":"single","name":"<droplet name>","names":[],"size":"<size>","image":"<image>"}}'Actions
create_droplet
Create Droplet. Create a new Droplet or multiple Droplets.
| Input | Type | Description |
|---|---|---|
creation_moderequired | one of "single" | "multiple" | Create a single Droplet or multiple Droplets at once. |
namerequired | text | Name for the Droplet (e.g., example.com). |
namesrequired | array | Names for multiple Droplets (up to 10). |
regionoptional | id (picked from your account) | Region to deploy the Droplet. |
sizerequired | id (picked from your account) | Droplet size (CPU, RAM, disk). |
imagerequired | id (picked from your account) | Base image for the Droplet. |
ssh_keysoptional | ids (picked from your account) | SSH keys to embed in the Droplet. |
vpc_uuidoptional | id (picked from your account) | VPC network for the Droplet. |
backupsoptional | boolean | Enable automated backups. |
ipv6optional | boolean | Enable IPv6 networking. |
monitoringoptional | boolean | Install the DigitalOcean monitoring agent. |
tagsoptional | array | Tags to apply to the Droplet. |
user_dataoptional | long text | Cloud-init script or user data (max 64 KiB). |
with_droplet_agentoptional | boolean | Install agent for web console access. |
list_droplets
List All Droplets. Retrieve a list of all Droplets in your account.
| Input | Type | Description |
|---|---|---|
per_pageoptional | number | Number of Droplets to return per page (1-200). |
pageoptional | number | Which page of results to return. |
tag_nameoptional | text | Filter Droplets by a specific tag. Cannot be combined with Name or Type. |
nameoptional | text | Filter by exact Droplet name (case-insensitive). Cannot be combined with Tag Name. |
typeoptional | one of "droplets" | "gpus" | Filter by Droplet type. Cannot be combined with Tag Name. |
create_domain
Create Domain. Add a new domain to your DigitalOcean account.
| Input | Type | Description |
|---|---|---|
namerequired | text | The domain name (e.g., example.com). |
ip_addressoptional | text | Optional IP address to create an A record pointing to the apex domain. |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
delete_domain
Delete Domain. Remove a domain from your DigitalOcean account.
| Input | Type | Description |
|---|---|---|
domain_namerequired | text | The domain name to delete (e.g., example.com). |
delete_droplet
Delete Droplet. Delete an existing Droplet.
| Input | Type | Description |
|---|---|---|
droplet_idrequired | id (picked from your account) | Select the Droplet to delete. |
get_domain
Get Domain. Retrieve details about a specific domain.
| Input | Type | Description |
|---|---|---|
domain_namerequired | text | The domain name to retrieve (e.g., example.com). |
get_droplet
Get Droplet. Retrieve details about a specific Droplet.
| Input | Type | Description |
|---|---|---|
droplet_idrequired | id (picked from your account) | Select the Droplet to retrieve. |
list_database_clusters
List Database Clusters. Retrieve a list of all database clusters in your account.
| Input | Type | Description |
|---|---|---|
tag_nameoptional | text | Filter database clusters by a specific tag. |
list_database_events
List Database Events. Retrieve all event logs for a database cluster.
| Input | Type | Description |
|---|---|---|
database_cluster_uuidrequired | id (picked from your account) | Select the database cluster. |
list_domains
List All Domains. Retrieve a list of all domains in your account.
| Input | Type | Description |
|---|---|---|
per_pageoptional | number | Number of domains to return per page (1-200). |
pageoptional | number | Which page of results to return. |
Details
- Id
digital-ocean- Category
- Developer tools
- Tags
- cloud, infrastructure, hosting, droplets, vps
- Package
@activepieces/piece-digital-ocean@0.0.5- Runs
- Through the integration runner