Open Connector
All tools

DigitalOcean logoDigitalOcean

Programmatically manage Droplets and other DigitalOcean resources using conventional HTTP requests.

digitaloceanvcatalog-v1649 tools

Authentication

MethodKindStatusDetails
DigitalOcean OAuth APIoauth2available
Personal Access Tokenapi_keyavailable

Call a tool

import { createClient } from "@open-connector/sdk";const oc = createClient({  baseUrl: "https://api.openconnector.dev",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({  slug: "DIGITALOCEAN_ACCOUNT_GET",  connectedAccountId: "conn_...",  arguments: { /* match this tool's input schema */ },});
import Composio from "@composio/client";const composio = new Composio({  baseURL: "https://api.openconnector.dev/composio",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("DIGITALOCEAN_ACCOUNT_GET", {  connected_account_id: "conn_...",  arguments: { /* match this tool's input schema */ },});
oc tools execute DIGITALOCEAN_ACCOUNT_GET --data '{ }'

Tool catalog

Available tools

649 callable operations

Get User InformationDIGITALOCEAN_ACCOUNT_GETTo show information about the current user account, send a GET request to `/v2/account`.

To show information about the current user account, send a GET request to `/v2/account`.

Authentication

Connected account required

Scopes

account:read

Tags

Account
Retrieve an Existing ActionDIGITALOCEAN_ACTIONS_GETTo retrieve a specific action object, send a GET request to `/v2/actions/$ACTION_ID`.

To retrieve a specific action object, send a GET request to `/v2/actions/$ACTION_ID`.

Authentication

Connected account required

Scopes

actions:read

Tags

Actions
List All ActionsDIGITALOCEAN_ACTIONS_LISTThis will be the entire list of actions taken on your account, so it will be quite large. As with any large collection returned by the API, the results will be paginated with only 20 on each page by default.

This will be the entire list of actions taken on your account, so it will be quite large. As with any large collection returned by the API, the results will be paginated with only 20 on each page by default.

Authentication

Connected account required

Scopes

actions:read

Tags

Actions
Create/Provision a New Add-on ResourceDIGITALOCEAN_ADDONS_CREATETo create an add-on resource, send a POST request to `/v2/add-ons/saas` with required parameters. Some add-ons require additional metadata to be provided in the request body. To find out what metadata is required for a specific add-on, send a GET request to `/v2/add-ons/apps/{app_slug}/metadata`.

To create an add-on resource, send a POST request to `/v2/add-ons/saas` with required parameters. Some add-ons require additional metadata to be provided in the request body. To find out what metadata is required for a specific add-on, send a GET request to `/v2/add-ons/apps/{app_slug}/metadata`.

Authentication

Connected account required

Scopes

addon:create

Tags

Add-Ons
Delete/Deprovision an Add-on ResourceDIGITALOCEAN_ADDONS_DELETETo delete an add-on resource, send a DELETE request to `/v2/add-ons/saas/{resource_uuid}` with the UUID of the resource to delete. You cannot retrieve the resource after it has been deleted. The response indicates a request was sent to the 3rd party add-on provider to delete the resource. You will no longer be billed for this resource.

To delete an add-on resource, send a DELETE request to `/v2/add-ons/saas/{resource_uuid}` with the UUID of the resource to delete. You cannot retrieve the resource after it has been deleted. The response indicates a request was sent to the 3rd party add-on provider to delete the resource. You will no longer be billed for this resource.

Authentication

Connected account required

Scopes

addon:delete

Tags

Add-Ons
Get details on an Add-On ResourceDIGITALOCEAN_ADDONS_GETTo fetch details of a specific Add-On Resource, send a GET request to `/v2/add-ons/saas/{resource_uuid}`. Replace `{resource_uuid}` with the UUID of the resource you want to retrieve.

To fetch details of a specific Add-On Resource, send a GET request to `/v2/add-ons/saas/{resource_uuid}`. Replace `{resource_uuid}` with the UUID of the resource you want to retrieve.

Authentication

Connected account required

Scopes

addon:read

Tags

Add-Ons
List Available Add-On ApplicationsDIGITALOCEAN_ADDONS_GET_APPTo fetch details of all available Add-On Applications, send a GET request to `/v2/add-ons/apps`.

To fetch details of all available Add-On Applications, send a GET request to `/v2/add-ons/apps`.

Authentication

Connected account required

Tags

Add-Ons
Get Metadata for an Add-On ApplicationDIGITALOCEAN_ADDONS_GET_APP_METADATATo find out what metadata is required for a specific add-on, send a GET request to `/v2/add-ons/apps/{app_slug}/metadata`. Metadata varies by application.

To find out what metadata is required for a specific add-on, send a GET request to `/v2/add-ons/apps/{app_slug}/metadata`. Metadata varies by application.

Authentication

Connected account required

Tags

Add-Ons
List all Add-On ResourcesDIGITALOCEAN_ADDONS_LISTTo fetch all Add-On Resources under your team, send a GET request to `/v2/add-ons/saas`.

To fetch all Add-On Resources under your team, send a GET request to `/v2/add-ons/saas`.

Authentication

Connected account required

Scopes

addon:read

Tags

Add-Ons
Update the name for an Add-On ResourceDIGITALOCEAN_ADDONS_PATCHTo change the name of an Add-On Resource, send a PATCH request to `/v2/add-ons/saas/{resource_uuid}`. Replace `{resource_uuid}` with the UUID of the resource for which you want to change the name.

To change the name of an Add-On Resource, send a PATCH request to `/v2/add-ons/saas/{resource_uuid}`. Replace `{resource_uuid}` with the UUID of the resource for which you want to change the name.

Authentication

Connected account required

Scopes

addon:update

Tags

Add-Ons
Update the plan for an Add-On ResourceDIGITALOCEAN_ADDONS_PATCH_PLANTo change the plan associated with an Add-On Resource, send a PATCH request to `/v2/add-ons/saas/{resource_uuid}/plan`. Replace `{resource_uuid}` with the UUID of the resource for which you want to change the plan.

To change the plan associated with an Add-On Resource, send a PATCH request to `/v2/add-ons/saas/{resource_uuid}/plan`. Replace `{resource_uuid}` with the UUID of the resource for which you want to change the plan.

Authentication

Connected account required

Scopes

addon:update

Tags

Add-Ons
Update destinations for alertsDIGITALOCEAN_APPS_ASSIGN_ALERT_DESTINATIONSUpdates the emails and slack webhook destinations for app alerts. Emails must be associated to a user with access to the app.

Updates the emails and slack webhook destinations for app alerts. Emails must be associated to a user with access to the app.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Cancel a DeploymentDIGITALOCEAN_APPS_CANCEL_DEPLOYMENTImmediately cancel an in-progress deployment.

Immediately cancel an in-progress deployment.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Cancel an EventDIGITALOCEAN_APPS_CANCEL_EVENTCancel an in-progress autoscaling event.

Cancel an in-progress autoscaling event.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Cancel Job InvocationDIGITALOCEAN_APPS_CANCEL_JOB_INVOCATIONCancel a specific job invocation for an app.

Cancel a specific job invocation for an app.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Commit App RollbackDIGITALOCEAN_APPS_COMMIT_ROLLBACKCommit an app rollback. This action permanently applies the rollback and unpins the app to resume new deployments.

Commit an app rollback. This action permanently applies the rollback and unpins the app to resume new deployments.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Create a New AppDIGITALOCEAN_APPS_CREATECreate a new app by submitting an app specification. For documentation on app specifications (`AppSpec` objects), please refer to [the product documentation](https://docs.digitalocean.com/products/app-platform/reference/app-spec/).

Create a new app by submitting an app specification. For documentation on app specifications (`AppSpec` objects), please refer to [the product documentation](https://docs.digitalocean.com/products/app-platform/reference/app-spec/).

Authentication

Connected account required

Scopes

app:create

Tags

Apps
Create an App DeploymentDIGITALOCEAN_APPS_CREATE_DEPLOYMENTCreating an app deployment will pull the latest changes from your repository and schedule a new deployment for your app.

Creating an app deployment will pull the latest changes from your repository and schedule a new deployment for your app.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Rollback AppDIGITALOCEAN_APPS_CREATE_ROLLBACKRollback an app to a previous deployment. A new deployment will be created to perform the rollback. The app will be pinned to the rollback deployment preventing any new deployments from being created, either manually or through Auto Deploy on Push webhooks. To resume deployments, the rollback must be either committed or reverted. It is recommended to use the Validate App Rollback endpoint to double check if the rollback is valid and if there are any warnings.

Rollback an app to a previous deployment. A new deployment will be created to perform the rollback. The app will be pinned to the rollback deployment preventing any new deployments from being created, either manually or through Auto Deploy on Push webhooks. To resume deployments, the rollback must be either committed or reverted. It is recommended to use the Validate App Rollback endpoint to double check if the rollback is valid and if there are any warnings.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Delete an AppDIGITALOCEAN_APPS_DELETEDelete an existing app. Once deleted, all active deployments will be permanently shut down and the app deleted. If needed, be sure to back up your app specification so that you may re-create it at a later time.

Delete an existing app. Once deleted, all active deployments will be permanently shut down and the app deleted. If needed, be sure to back up your app specification so that you may re-create it at a later time.

Authentication

Connected account required

Scopes

app:delete

Tags

Apps
Retrieve an Existing AppDIGITALOCEAN_APPS_GETRetrieve details about an existing app by either its ID or name. To retrieve an app by its name, do not include an ID in the request path. Information about the current active deployment as well as any in progress ones will also be included in the response.

Retrieve details about an existing app by either its ID or name. To retrieve an app by its name, do not include an ID in the request path. Information about the current active deployment as well as any in progress ones will also be included in the response.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve an App DeploymentDIGITALOCEAN_APPS_GET_DEPLOYMENTRetrieve information about an app deployment.

Retrieve information about an app deployment.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Get an EventDIGITALOCEAN_APPS_GET_EVENTGet a single event for an app.

Get a single event for an app.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve Event LogsDIGITALOCEAN_APPS_GET_EVENT_LOGSRetrieve the logs of an autoscaling event for an app.

Retrieve the logs of an autoscaling event for an app.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve Exec URL for DeploymentDIGITALOCEAN_APPS_GET_EXECReturns a websocket URL that allows sending/receiving console input and output to a component of the specified deployment if one exists. Optionally, the instance_name parameter can be provided to retrieve the exec URL for a specific instance. Note that instances are ephemeral; therefore, we recommended to avoid making persistent changes or such scripting around them.

Returns a websocket URL that allows sending/receiving console input and output to a component of the specified deployment if one exists. Optionally, the instance_name parameter can be provided to retrieve the exec URL for a specific instance. Note that instances are ephemeral; therefore, we recommended to avoid making persistent changes or such scripting around them.

Authentication

Connected account required

Scopes

app:access_console

Tags

Apps
Retrieve Exec URLDIGITALOCEAN_APPS_GET_EXEC_ACTIVE_DEPLOYMENTReturns a websocket URL that allows sending/receiving console input and output to a component of the active deployment if one exists.

Returns a websocket URL that allows sending/receiving console input and output to a component of the active deployment if one exists.

Authentication

Connected account required

Scopes

app:access_console

Tags

Apps
Retrieve App HealthDIGITALOCEAN_APPS_GET_HEALTHRetrieve information like health status, cpu and memory utilization of app components.

Retrieve information like health status, cpu and memory utilization of app components.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve an Instance SizeDIGITALOCEAN_APPS_GET_INSTANCE_SIZERetrieve information about a specific instance size for `service`, `worker`, and `job` components.

Retrieve information about a specific instance size for `service`, `worker`, and `job` components.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve App InstancesDIGITALOCEAN_APPS_GET_INSTANCESRetrieve the list of running instances for a given application, including instance names and component types. Please note that these instances are ephemeral and may change over time. It is recommended not to make persistent changes or develop scripts that rely on their persistence.

Retrieve the list of running instances for a given application, including instance names and component types. Please note that these instances are ephemeral and may change over time. It is recommended not to make persistent changes or develop scripts that rely on their persistence.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Get Job InvocationsDIGITALOCEAN_APPS_GET_JOB_INVOCATIONGet a specific job invocation for an app.

Get a specific job invocation for an app.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve Job Invocation LogsDIGITALOCEAN_APPS_GET_JOB_INVOCATION_LOGSRetrieve the logs of a past, in-progress, or active deployment. If a component name is specified, the logs will be limited to only that component. If deployment is omitted the active deployment will be selected (if available). The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.

Retrieve the logs of a past, in-progress, or active deployment. If a component name is specified, the logs will be limited to only that component. If deployment is omitted the active deployment will be selected (if available). The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve Deployment LogsDIGITALOCEAN_APPS_GET_LOGSRetrieve the logs of a past, in-progress, or active deployment. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.

Retrieve the logs of a past, in-progress, or active deployment. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve Active Deployment LogsDIGITALOCEAN_APPS_GET_LOGS_ACTIVE_DEPLOYMENTRetrieve the logs of the active deployment if one exists. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment. Note log_type=BUILD logs will return logs associated with the current active deployment (being served). To view build logs associated with in-progress build, the query must explicitly reference the deployment id.

Retrieve the logs of the active deployment if one exists. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment. Note log_type=BUILD logs will return logs associated with the current active deployment (being served). To view build logs associated with in-progress build, the query must explicitly reference the deployment id.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve Active Deployment Aggregate LogsDIGITALOCEAN_APPS_GET_LOGS_ACTIVE_DEPLOYMENT_AGGREGATERetrieve the logs of the active deployment if one exists. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment. Note log_type=BUILD logs will return logs associated with the current active deployment (being served). To view build logs associated with in-progress build, the query must explicitly reference the deployment id.

Retrieve the logs of the active deployment if one exists. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment. Note log_type=BUILD logs will return logs associated with the current active deployment (being served). To view build logs associated with in-progress build, the query must explicitly reference the deployment id.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve Aggregate Deployment LogsDIGITALOCEAN_APPS_GET_LOGS_AGGREGATERetrieve the logs of a past, in-progress, or active deployment. If a component name is specified, the logs will be limited to only that component. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.

Retrieve the logs of a past, in-progress, or active deployment. If a component name is specified, the logs will be limited to only that component. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve App Daily Bandwidth MetricsDIGITALOCEAN_APPS_GET_METRICS_BANDWIDTH_DAILYRetrieve daily bandwidth usage metrics for a single app.

Retrieve daily bandwidth usage metrics for a single app.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
List All AppsDIGITALOCEAN_APPS_LISTList all apps on your account. Information about the current active deployment as well as any in progress ones will also be included for each app.

List all apps on your account. Information about the current active deployment as well as any in progress ones will also be included for each app.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
List all app alertsDIGITALOCEAN_APPS_LIST_ALERTSList alerts associated to the app and any components. This includes configuration information about the alerts including emails, slack webhooks, and triggering events or conditions.

List alerts associated to the app and any components. This includes configuration information about the alerts including emails, slack webhooks, and triggering events or conditions.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
List App DeploymentsDIGITALOCEAN_APPS_LIST_DEPLOYMENTSList all deployments of an app.

List all deployments of an app.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
List App EventsDIGITALOCEAN_APPS_LIST_EVENTSList all events for an app, including deployments and autoscaling events.

List all events for an app, including deployments and autoscaling events.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
List Instance SizesDIGITALOCEAN_APPS_LIST_INSTANCE_SIZESList all instance sizes for `service`, `worker`, and `job` components.

List all instance sizes for `service`, `worker`, and `job` components.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
List Job InvocationsDIGITALOCEAN_APPS_LIST_JOB_INVOCATIONSList all job invocations for an app.

List all job invocations for an app.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Retrieve Multiple Apps' Daily Bandwidth MetricsDIGITALOCEAN_APPS_LIST_METRICS_BANDWIDTH_DAILYRetrieve daily bandwidth usage metrics for multiple apps.

Retrieve daily bandwidth usage metrics for multiple apps.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
List App RegionsDIGITALOCEAN_APPS_LIST_REGIONSList all regions supported by App Platform.

List all regions supported by App Platform.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Restart an AppDIGITALOCEAN_APPS_RESTARTPerform a rolling restart of all or specific components in an app.

Perform a rolling restart of all or specific components in an app.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Revert App RollbackDIGITALOCEAN_APPS_REVERT_ROLLBACKRevert an app rollback. This action reverts the active rollback by creating a new deployment from the latest app spec prior to the rollback and unpins the app to resume new deployments.

Revert an app rollback. This action reverts the active rollback by creating a new deployment from the latest app spec prior to the rollback and unpins the app to resume new deployments.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Update an AppDIGITALOCEAN_APPS_UPDATEUpdate an existing app by submitting a new app specification. For documentation on app specifications (`AppSpec` objects), please refer to [the product documentation](https://docs.digitalocean.com/products/app-platform/reference/app-spec/).

Update an existing app by submitting a new app specification. For documentation on app specifications (`AppSpec` objects), please refer to [the product documentation](https://docs.digitalocean.com/products/app-platform/reference/app-spec/).

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Propose an App SpecDIGITALOCEAN_APPS_VALIDATE_APP_SPECTo propose and validate a spec for a new or existing app, send a POST request to the `/v2/apps/propose` endpoint. The request returns some information about the proposed app, including app cost and upgrade cost. If an existing app ID is specified, the app spec is treated as a proposed update to the existing app.

To propose and validate a spec for a new or existing app, send a POST request to the `/v2/apps/propose` endpoint. The request returns some information about the proposed app, including app cost and upgrade cost. If an existing app ID is specified, the app spec is treated as a proposed update to the existing app.

Authentication

Connected account required

Scopes

app:read

Tags

Apps
Validate App RollbackDIGITALOCEAN_APPS_VALIDATE_ROLLBACKCheck whether an app can be rolled back to a specific deployment. This endpoint can also be used to check if there are any warnings or validation conditions that will cause the rollback to proceed under unideal circumstances. For example, if a component must be rebuilt as part of the rollback causing it to take longer than usual.

Check whether an app can be rolled back to a specific deployment. This endpoint can also be used to check if there are any warnings or validation conditions that will cause the rollback to proceed under unideal circumstances. For example, if a component must be rebuilt as part of the rollback causing it to take longer than usual.

Authentication

Connected account required

Scopes

app:update

Tags

Apps
Create a New Autoscale PoolDIGITALOCEAN_AUTOSCALEPOOLS_CREATETo create a new autoscale pool, send a POST request to `/v2/droplets/autoscale` setting the required attributes. The response body will contain a JSON object with a key called `autoscale_pool` containing the standard attributes for the new autoscale pool.

To create a new autoscale pool, send a POST request to `/v2/droplets/autoscale` setting the required attributes. The response body will contain a JSON object with a key called `autoscale_pool` containing the standard attributes for the new autoscale pool.

Authentication

Connected account required

Scopes

droplet:create

Tags

Droplet Autoscale Pools
Delete autoscale poolDIGITALOCEAN_AUTOSCALEPOOLS_DELETETo destroy an autoscale pool, send a DELETE request to the `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID` endpoint. A successful response will include a 202 response code and no content.

To destroy an autoscale pool, send a DELETE request to the `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID` endpoint. A successful response will include a 202 response code and no content.

Authentication

Connected account required

Scopes

droplet:delete

Tags

Droplet Autoscale Pools
Delete autoscale pool and resourcesDIGITALOCEAN_AUTOSCALEPOOLS_DELETE_DANGEROUSTo destroy an autoscale pool and its associated resources (Droplets), send a DELETE request to the `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/dangerous` endpoint.

To destroy an autoscale pool and its associated resources (Droplets), send a DELETE request to the `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/dangerous` endpoint.

Authentication

Connected account required

Scopes

droplet:delete

Tags

Droplet Autoscale Pools
Retrieve an Existing Autoscale PoolDIGITALOCEAN_AUTOSCALEPOOLS_GETTo show information about an individual autoscale pool, send a GET request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`.

To show information about an individual autoscale pool, send a GET request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplet Autoscale Pools
List All Autoscale PoolsDIGITALOCEAN_AUTOSCALEPOOLS_LISTTo list all autoscale pools in your team, send a GET request to `/v2/droplets/autoscale`. The response body will be a JSON object with a key of `autoscale_pools` containing an array of autoscale pool objects. These each contain the standard autoscale pool attributes.

To list all autoscale pools in your team, send a GET request to `/v2/droplets/autoscale`. The response body will be a JSON object with a key of `autoscale_pools` containing an array of autoscale pool objects. These each contain the standard autoscale pool attributes.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplet Autoscale Pools
List history eventsDIGITALOCEAN_AUTOSCALEPOOLS_LIST_HISTORYTo list all of the scaling history events of an autoscale pool, send a GET request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/history`. The response body will be a JSON object with a key of `history`. This will be set to an array containing objects each representing a history event.

To list all of the scaling history events of an autoscale pool, send a GET request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/history`. The response body will be a JSON object with a key of `history`. This will be set to an array containing objects each representing a history event.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplet Autoscale Pools
List membersDIGITALOCEAN_AUTOSCALEPOOLS_LIST_MEMBERSTo list the Droplets in an autoscale pool, send a GET request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/members`. The response body will be a JSON object with a key of `droplets`. This will be set to an array containing information about each of the Droplets in the autoscale pool.

To list the Droplets in an autoscale pool, send a GET request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/members`. The response body will be a JSON object with a key of `droplets`. This will be set to an array containing information about each of the Droplets in the autoscale pool.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplet Autoscale Pools
Update Autoscale PoolDIGITALOCEAN_AUTOSCALEPOOLS_UPDATETo update the configuration of an existing autoscale pool, send a PUT request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`. The request must contain a full representation of the autoscale pool including existing attributes.

To update the configuration of an existing autoscale pool, send a PUT request to `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`. The request must contain a full representation of the autoscale pool including existing attributes.

Authentication

Connected account required

Scopes

droplet:create

Tags

Droplet Autoscale Pools
Get Customer BalanceDIGITALOCEAN_BALANCE_GETTo retrieve the balances on a customer's account, send a GET request to `/v2/customers/my/balance`.

To retrieve the balances on a customer's account, send a GET request to `/v2/customers/my/balance`.

Authentication

Connected account required

Scopes

billing:read

Tags

Billing
List Billing HistoryDIGITALOCEAN_BILLING_HISTORY_LISTTo retrieve a list of all billing history entries, send a GET request to `/v2/customers/my/billing_history`.

To retrieve a list of all billing history entries, send a GET request to `/v2/customers/my/billing_history`.

Authentication

Connected account required

Scopes

billing:read

Tags

Billing
List Billing InsightsDIGITALOCEAN_BILLING_INSIGHTS_LISTThis endpoint returns day-over-day changes in billing resource usage based on nightly invoice items, including total amount, region, SKU, and description for a specified date range. It is important to note that the daily resource usage may not reflect month-end billing totals when totaled for a given month as nightly invoice item estimates do not necessarily encompass all invoicing factors for the entire month.

This endpoint returns day-over-day changes in billing resource usage based on nightly invoice items, including total amount, region, SKU, and description for a specified date range. It is important to note that the daily resource usage may not reflect month-end billing totals when totaled for a given month as nightly invoice item estimates do not necessarily encompass all invoicing factors for the entire month.

Authentication

Connected account required

Scopes

billing:read

Tags

Billing
Create a BYOIP PrefixDIGITALOCEAN_BYOIP_PREFIXES_CREATETo create a BYOIP prefix, send a POST request to `/v2/byoip_prefixes`. A successful request will initiate the process of bringing your BYOIP Prefix into your account. The response will include the details of the created prefix, including its UUID and status.

To create a BYOIP prefix, send a POST request to `/v2/byoip_prefixes`. A successful request will initiate the process of bringing your BYOIP Prefix into your account. The response will include the details of the created prefix, including its UUID and status.

Authentication

Connected account required

Scopes

byoip_prefix:create

Tags

BYOIP Prefixes
Delete a BYOIP PrefixDIGITALOCEAN_BYOIP_PREFIXES_DELETETo delete a BYOIP prefix and remove it from your account, send a DELETE request to `/v2/byoip_prefixes/$byoip_prefix_uuid`. A successful request will receive a 202 status code with no body in response. This indicates that the request was accepted and the prefix is being deleted.

To delete a BYOIP prefix and remove it from your account, send a DELETE request to `/v2/byoip_prefixes/$byoip_prefix_uuid`. A successful request will receive a 202 status code with no body in response. This indicates that the request was accepted and the prefix is being deleted.

Authentication

Connected account required

Scopes

byoip_prefix:delete

Tags

BYOIP Prefixes
Get a BYOIP PrefixDIGITALOCEAN_BYOIP_PREFIXES_GETTo get a BYOIP prefix, send a GET request to `/v2/byoip_prefixes/$byoip_prefix_uuid`. A successful response will return the details of the specified BYOIP prefix.

To get a BYOIP prefix, send a GET request to `/v2/byoip_prefixes/$byoip_prefix_uuid`. A successful response will return the details of the specified BYOIP prefix.

Authentication

Connected account required

Scopes

byoip_prefix:read

Tags

BYOIP Prefixes
List BYOIP PrefixesDIGITALOCEAN_BYOIP_PREFIXES_LISTTo list all BYOIP prefixes, send a GET request to `/v2/byoip_prefixes`. A successful response will return a list of all BYOIP prefixes associated with the account.

To list all BYOIP prefixes, send a GET request to `/v2/byoip_prefixes`. A successful response will return a list of all BYOIP prefixes associated with the account.

Authentication

Connected account required

Scopes

byoip_prefix:read

Tags

BYOIP Prefixes
List BYOIP Prefix ResourcesDIGITALOCEAN_BYOIP_PREFIXES_LIST_RESOURCESTo list resources associated with BYOIP prefixes, send a GET request to `/v2/byoip_prefixes/{byoip_prefix_uuid}/ips`. A successful response will return a list of resources associated with the specified BYOIP prefix.

To list resources associated with BYOIP prefixes, send a GET request to `/v2/byoip_prefixes/{byoip_prefix_uuid}/ips`. A successful response will return a list of resources associated with the specified BYOIP prefix.

Authentication

Connected account required

Scopes

byoip_prefix:read

Tags

BYOIP Prefixes
Update a BYOIP PrefixDIGITALOCEAN_BYOIP_PREFIXES_PATCHTo update a BYOIP prefix, send a PATCH request to `/v2/byoip_prefixes/$byoip_prefix_uuid`. Currently, you can update the advertisement status of the prefix. The response will include the updated details of the prefix.

To update a BYOIP prefix, send a PATCH request to `/v2/byoip_prefixes/$byoip_prefix_uuid`. Currently, you can update the advertisement status of the prefix. The response will include the updated details of the prefix.

Authentication

Connected account required

Scopes

byoip_prefix:write

Tags

BYOIP Prefixes
Create a New CDN EndpointDIGITALOCEAN_CDN_CREATE_ENDPOINTTo create a new CDN endpoint, send a POST request to `/v2/cdn/endpoints`. The origin attribute must be set to the fully qualified domain name (FQDN) of a DigitalOcean Space. Optionally, the TTL may be configured by setting the `ttl` attribute. A custom subdomain may be configured by specifying the `custom_domain` and `certificate_id` attributes.

To create a new CDN endpoint, send a POST request to `/v2/cdn/endpoints`. The origin attribute must be set to the fully qualified domain name (FQDN) of a DigitalOcean Space. Optionally, the TTL may be configured by setting the `ttl` attribute. A custom subdomain may be configured by specifying the `custom_domain` and `certificate_id` attributes.

Authentication

Connected account required

Scopes

cdn:create

Tags

CDN Endpoints
Delete a CDN EndpointDIGITALOCEAN_CDN_DELETE_ENDPOINTTo delete a specific CDN endpoint, send a DELETE request to `/v2/cdn/endpoints/$ENDPOINT_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To delete a specific CDN endpoint, send a DELETE request to `/v2/cdn/endpoints/$ENDPOINT_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

cdn:delete

Tags

CDN Endpoints
Retrieve an Existing CDN EndpointDIGITALOCEAN_CDN_GET_ENDPOINTTo show information about an existing CDN endpoint, send a GET request to `/v2/cdn/endpoints/$ENDPOINT_ID`.

To show information about an existing CDN endpoint, send a GET request to `/v2/cdn/endpoints/$ENDPOINT_ID`.

Authentication

Connected account required

Scopes

cdn:read

Tags

CDN Endpoints
List All CDN EndpointsDIGITALOCEAN_CDN_LIST_ENDPOINTSTo list all of the CDN endpoints available on your account, send a GET request to `/v2/cdn/endpoints`.

To list all of the CDN endpoints available on your account, send a GET request to `/v2/cdn/endpoints`.

Authentication

Connected account required

Scopes

cdn:read

Tags

CDN Endpoints
Purge the Cache for an Existing CDN EndpointDIGITALOCEAN_CDN_PURGE_CACHETo purge cached content from a CDN endpoint, send a DELETE request to `/v2/cdn/endpoints/$ENDPOINT_ID/cache`. The body of the request should include a `files` attribute containing a list of cached file paths to be purged. A path may be for a single file or may contain a wildcard (`*`) to recursively purge all files under a directory. When only a wildcard is provided, all cached files will be purged. There is a rate limit of 50 files per 20 seconds that can be purged. CDN endpoints have a rate limit of 5 requests per 10 seconds. Purging files using a wildcard path counts as a single request against the API's rate limit. Two identical purge requests cannot be sent at the same time.

To purge cached content from a CDN endpoint, send a DELETE request to `/v2/cdn/endpoints/$ENDPOINT_ID/cache`. The body of the request should include a `files` attribute containing a list of cached file paths to be purged. A path may be for a single file or may contain a wildcard (`*`) to recursively purge all files under a directory. When only a wildcard is provided, all cached files will be purged. There is a rate limit of 50 files per 20 seconds that can be purged. CDN endpoints have a rate limit of 5 requests per 10 seconds. Purging files using a wildcard path counts as a single request against the API's rate limit. Two identical purge requests cannot be sent at the same time.

Authentication

Connected account required

Scopes

cdn:delete

Tags

CDN Endpoints
Update a CDN EndpointDIGITALOCEAN_CDN_UPDATE_ENDPOINTSTo update the TTL, certificate ID, or the FQDN of the custom subdomain for an existing CDN endpoint, send a PUT request to `/v2/cdn/endpoints/$ENDPOINT_ID`.

To update the TTL, certificate ID, or the FQDN of the custom subdomain for an existing CDN endpoint, send a PUT request to `/v2/cdn/endpoints/$ENDPOINT_ID`.

Authentication

Connected account required

Scopes

cdn:update

Tags

CDN Endpoints
Create a New CertificateDIGITALOCEAN_CERTIFICATES_CREATETo upload new SSL certificate which you have previously generated, send a POST request to `/v2/certificates`. When uploading a user-generated certificate, the `private_key`, `leaf_certificate`, and optionally the `certificate_chain` attributes should be provided. The type must be set to `custom`. When using Let's Encrypt to create a certificate, the `dns_names` attribute must be provided, and the type must be set to `lets_encrypt`.

To upload new SSL certificate which you have previously generated, send a POST request to `/v2/certificates`. When uploading a user-generated certificate, the `private_key`, `leaf_certificate`, and optionally the `certificate_chain` attributes should be provided. The type must be set to `custom`. When using Let's Encrypt to create a certificate, the `dns_names` attribute must be provided, and the type must be set to `lets_encrypt`.

Authentication

Connected account required

Scopes

certificate:create

Tags

Certificates
Delete a CertificateDIGITALOCEAN_CERTIFICATES_DELETETo delete a specific certificate, send a DELETE request to `/v2/certificates/$CERTIFICATE_ID`.

To delete a specific certificate, send a DELETE request to `/v2/certificates/$CERTIFICATE_ID`.

Authentication

Connected account required

Scopes

certificate:delete

Tags

Certificates
Retrieve an Existing CertificateDIGITALOCEAN_CERTIFICATES_GETTo show information about an existing certificate, send a GET request to `/v2/certificates/$CERTIFICATE_ID`.

To show information about an existing certificate, send a GET request to `/v2/certificates/$CERTIFICATE_ID`.

Authentication

Connected account required

Scopes

certificate:read

Tags

Certificates
List All CertificatesDIGITALOCEAN_CERTIFICATES_LISTTo list all of the certificates available on your account, send a GET request to `/v2/certificates`.

To list all of the certificates available on your account, send a GET request to `/v2/certificates`.

Authentication

Connected account required

Scopes

certificate:read

Tags

Certificates
Add a New DatabaseDIGITALOCEAN_DATABASES_ADDTo add a new database to an existing cluster, send a POST request to `/v2/databases/$DATABASE_ID/dbs`. Note: Database management is not supported for Caching or Valkey clusters. The response will be a JSON object with a key called `db`. The value of this will be an object that contains the standard attributes associated with a database.

To add a new database to an existing cluster, send a POST request to `/v2/databases/$DATABASE_ID/dbs`. Note: Database management is not supported for Caching or Valkey clusters. The response will be a JSON object with a key called `db`. The value of this will be an object that contains the standard attributes associated with a database.

Authentication

Connected account required

Scopes

database:create

Tags

Databases
Add a New Connection Pool (PostgreSQL)DIGITALOCEAN_DATABASES_ADD_CONNECTION_POOLFor PostgreSQL database clusters, connection pools can be used to allow a database to share its idle connections. The popular PostgreSQL connection pooling utility PgBouncer is used to provide this service. [See here for more information](https://docs.digitalocean.com/products/databases/postgresql/how-to/manage-connection-pools/) about how and why to use PgBouncer connection pooling including details about the available transaction modes. To add a new connection pool to a PostgreSQL database cluster, send a POST request to `/v2/databases/$DATABASE_ID/pools` specifying a name for the pool, the user to connect with, the database to connect to, as well as its desired size and transaction mode.

For PostgreSQL database clusters, connection pools can be used to allow a database to share its idle connections. The popular PostgreSQL connection pooling utility PgBouncer is used to provide this service. [See here for more information](https://docs.digitalocean.com/products/databases/postgresql/how-to/manage-connection-pools/) about how and why to use PgBouncer connection pooling including details about the available transaction modes. To add a new connection pool to a PostgreSQL database cluster, send a POST request to `/v2/databases/$DATABASE_ID/pools` specifying a name for the pool, the user to connect with, the database to connect to, as well as its desired size and transaction mode.

Authentication

Connected account required

Scopes

database:create

Tags

Databases
Add a Database UserDIGITALOCEAN_DATABASES_ADD_USERTo add a new database user, send a POST request to `/v2/databases/$DATABASE_ID/users` with the desired username. Note: User management is not supported for Caching or Valkey clusters. When adding a user to a MySQL cluster, additional options can be configured in the `mysql_settings` object. When adding a user to a PostgreSQL cluster, additional options can be configured in the `settings` object (for example, `pg_allow_replication`). When `pg_allow_replication` is omitted, it defaults to `false`. When adding a user to a Kafka cluster, additional options can be configured in the `settings` object. When adding a user to a MongoDB cluster, additional options can be configured in the `settings.mongo_user_settings` object. The response will be a JSON object with a key called `user`. The value of this will be an object that contains the standard attributes associated with a database user including its randomly generated password.

To add a new database user, send a POST request to `/v2/databases/$DATABASE_ID/users` with the desired username. Note: User management is not supported for Caching or Valkey clusters. When adding a user to a MySQL cluster, additional options can be configured in the `mysql_settings` object. When adding a user to a PostgreSQL cluster, additional options can be configured in the `settings` object (for example, `pg_allow_replication`). When `pg_allow_replication` is omitted, it defaults to `false`. When adding a user to a Kafka cluster, additional options can be configured in the `settings` object. When adding a user to a MongoDB cluster, additional options can be configured in the `settings.mongo_user_settings` object. The response will be a JSON object with a key called `user`. The value of this will be an object that contains the standard attributes associated with a database user including its randomly generated password.

Authentication

Connected account required

Scopes

database:create

Tags

Databases
Create a New Database ClusterDIGITALOCEAN_DATABASES_CREATE_CLUSTERTo create a database cluster, send a POST request to `/v2/databases`. To see a list of options for each engine, such as available regions, size slugs, and versions, send a GET request to the `/v2/databases/options` endpoint. The available sizes for the `storage_size_mib` field depends on the cluster's size. To see a list of available sizes, see [Managed Database Pricing](https://www.digitalocean.com/pricing/managed-databases). The create response returns a JSON object with a key called `database`. The value of this is an object that contains the standard attributes associated with a database cluster. The initial value of the database cluster's `status` attribute is `creating`. When the cluster is ready to receive traffic, this changes to `online`. The embedded `connection` and `private_connection` objects contains the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects contain the information needed to connect to the cluster's standby node(s). DigitalOcean managed PostgreSQL and MySQL database clusters take automated daily backups. To create a new database cluster based on a backup of an existing cluster, send a POST request to `/v2/databases`. In addition to the standard database cluster attributes, the JSON body must include a key named `backup_restore` with the name of the original database cluster and the timestamp of the backup to be restored. Creating a database from a backup is the same as forking a database in the control panel. PostgreSQL and MySQL Advanced Edition clusters can be provisioned by setting `engine` to `advanced_pg` or `advanced_mysql`. Advanced Edition clusters are currently in public preview and target highly available workloads. `advanced_pg` supports 1-, 2-, and 3-node deployments; `advanced_mysql` only supports 1- and 3-node deployments. See the [PostgreSQL Advanced Edition](https://docs.digitalocean.com/products/databases/postgresql/how-to/use-advanced-edition-clusters/) and [MySQL Advanced Edition](https://docs.digitalocean.com/products/databases/mysql/how-to/use-advanced-edition-clusters/) documentation for the feature differences vs. Standard Edition and current preview limitations. Note: Caching cluster creates are no longer supported as of 2025-04-30T00:00:00Z. Backups are also not supported for Caching or Valkey clusters.

To create a database cluster, send a POST request to `/v2/databases`. To see a list of options for each engine, such as available regions, size slugs, and versions, send a GET request to the `/v2/databases/options` endpoint. The available sizes for the `storage_size_mib` field depends on the cluster's size. To see a list of available sizes, see [Managed Database Pricing](https://www.digitalocean.com/pricing/managed-databases). The create response returns a JSON object with a key called `database`. The value of this is an object that contains the standard attributes associated with a database cluster. The initial value of the database cluster's `status` attribute is `creating`. When the cluster is ready to receive traffic, this changes to `online`. The embedded `connection` and `private_connection` objects contains the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects contain the information needed to connect to the cluster's standby node(s). DigitalOcean managed PostgreSQL and MySQL database clusters take automated daily backups. To create a new database cluster based on a backup of an existing cluster, send a POST request to `/v2/databases`. In addition to the standard database cluster attributes, the JSON body must include a key named `backup_restore` with the name of the original database cluster and the timestamp of the backup to be restored. Creating a database from a backup is the same as forking a database in the control panel. PostgreSQL and MySQL Advanced Edition clusters can be provisioned by setting `engine` to `advanced_pg` or `advanced_mysql`. Advanced Edition clusters are currently in public preview and target highly available workloads. `advanced_pg` supports 1-, 2-, and 3-node deployments; `advanced_mysql` only supports 1- and 3-node deployments. See the [PostgreSQL Advanced Edition](https://docs.digitalocean.com/products/databases/postgresql/how-to/use-advanced-edition-clusters/) and [MySQL Advanced Edition](https://docs.digitalocean.com/products/databases/mysql/how-to/use-advanced-edition-clusters/) documentation for the feature differences vs. Standard Edition and current preview limitations. Note: Caching cluster creates are no longer supported as of 2025-04-30T00:00:00Z. Backups are also not supported for Caching or Valkey clusters.

Authentication

Connected account required

Scopes

database:create

Tags

Databases
Create Schema Registry for Kafka ClusterDIGITALOCEAN_DATABASES_CREATE_KAFKA_SCHEMATo create a Kafka schema for a database cluster, send a POST request to `/v2/databases/$DATABASE_ID/schema-registry`.

To create a Kafka schema for a database cluster, send a POST request to `/v2/databases/$DATABASE_ID/schema-registry`.

Authentication

Connected account required

Scopes

database:create

Tags

Databases
Create Topic for a Kafka ClusterDIGITALOCEAN_DATABASES_CREATE_KAFKA_TOPICTo create a topic attached to a Kafka cluster, send a POST request to `/v2/databases/$DATABASE_ID/topics`. The result will be a JSON object with a `topic` key.

To create a topic attached to a Kafka cluster, send a POST request to `/v2/databases/$DATABASE_ID/topics`. The result will be a JSON object with a `topic` key.

Authentication

Connected account required

Scopes

database:create

Tags

Databases
Create Logsink for a Database ClusterDIGITALOCEAN_DATABASES_CREATE_LOGSINKTo create logsink for a database cluster, send a POST request to `/v2/databases/$DATABASE_ID/logsink`.

To create logsink for a database cluster, send a POST request to `/v2/databases/$DATABASE_ID/logsink`.

Authentication

Connected account required

Scopes

database:create

Tags

Databases
Create a Read-only ReplicaDIGITALOCEAN_DATABASES_CREATE_REPLICATo create a read-only replica for a PostgreSQL or MySQL database cluster, send a POST request to `/v2/databases/$DATABASE_ID/replicas` specifying the name it should be given, the size of the node to be used, and the region where it will be located. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. The response will be a JSON object with a key called `replica`. The value of this will be an object that contains the standard attributes associated with a database replica. The initial value of the read-only replica's `status` attribute will be `forking`. When the replica is ready to receive traffic, this will transition to `active`.

To create a read-only replica for a PostgreSQL or MySQL database cluster, send a POST request to `/v2/databases/$DATABASE_ID/replicas` specifying the name it should be given, the size of the node to be used, and the region where it will be located. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. The response will be a JSON object with a key called `replica`. The value of this will be an object that contains the standard attributes associated with a database replica. The initial value of the read-only replica's `status` attribute will be `forking`. When the replica is ready to receive traffic, this will transition to `active`.

Authentication

Connected account required

Scopes

database:create

Tags

Databases
Delete a DatabaseDIGITALOCEAN_DATABASES_DELETETo delete a specific database, send a DELETE request to `/v2/databases/$DATABASE_ID/dbs/$DB_NAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed. Note: Database management is not supported for Caching or Valkey clusters.

To delete a specific database, send a DELETE request to `/v2/databases/$DATABASE_ID/dbs/$DB_NAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed. Note: Database management is not supported for Caching or Valkey clusters.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Delete a Connection Pool (PostgreSQL)DIGITALOCEAN_DATABASES_DELETE_CONNECTION_POOLTo delete a specific connection pool for a PostgreSQL database cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To delete a specific connection pool for a PostgreSQL database cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Delete a Kafka Schema by Subject NameDIGITALOCEAN_DATABASES_DELETE_KAFKA_SCHEMATo delete a specific schema by subject name for a Kafka cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME`.

To delete a specific schema by subject name for a Kafka cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME`.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Delete Topic for a Kafka ClusterDIGITALOCEAN_DATABASES_DELETE_KAFKA_TOPICTo delete a single topic within a Kafka cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To delete a single topic within a Kafka cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Delete Logsink for a Database ClusterDIGITALOCEAN_DATABASES_DELETE_LOGSINKTo delete a logsink for a database cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.

To delete a logsink for a database cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Stop an Online MigrationDIGITALOCEAN_DATABASES_DELETE_ONLINE_MIGRATIONTo stop an online migration, send a DELETE request to `/v2/databases/$DATABASE_ID/online-migration/$MIGRATION_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To stop an online migration, send a DELETE request to `/v2/databases/$DATABASE_ID/online-migration/$MIGRATION_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Delete Index for OpenSearch ClusterDIGITALOCEAN_DATABASES_DELETE_OPENSEARCH_INDEXTo delete a single index within OpenSearch cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/indexes/$INDEX_NAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To delete a single index within OpenSearch cluster, send a DELETE request to `/v2/databases/$DATABASE_ID/indexes/$INDEX_NAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Remove a Database UserDIGITALOCEAN_DATABASES_DELETE_USERTo remove a specific database user, send a DELETE request to `/v2/databases/$DATABASE_ID/users/$USERNAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed. Note: User management is not supported for Caching or Valkey clusters.

To remove a specific database user, send a DELETE request to `/v2/databases/$DATABASE_ID/users/$USERNAME`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed. Note: User management is not supported for Caching or Valkey clusters.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Destroy a Database ClusterDIGITALOCEAN_DATABASES_DESTROY_CLUSTERTo destroy a specific database, send a DELETE request to `/v2/databases/$DATABASE_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To destroy a specific database, send a DELETE request to `/v2/databases/$DATABASE_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Destroy a Read-only ReplicaDIGITALOCEAN_DATABASES_DESTROY_REPLICATo destroy a specific read-only replica, send a DELETE request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME`. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To destroy a specific read-only replica, send a DELETE request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME`. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

database:delete

Tags

Databases
Retrieve an Existing DatabaseDIGITALOCEAN_DATABASES_GETTo show information about an existing database cluster, send a GET request to `/v2/databases/$DATABASE_ID/dbs/$DB_NAME`. Note: Database management is not supported for Caching or Valkey clusters. The response will be a JSON object with a `db` key. This will be set to an object containing the standard database attributes.

To show information about an existing database cluster, send a GET request to `/v2/databases/$DATABASE_ID/dbs/$DB_NAME`. Note: Database management is not supported for Caching or Valkey clusters. The response will be a JSON object with a `db` key. This will be set to an object containing the standard database attributes.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve Autoscale Configuration for a Database ClusterDIGITALOCEAN_DATABASES_GET_AUTOSCALETo retrieve the autoscale configuration for an existing database cluster, send a GET request to `/v2/databases/$DATABASE_ID/autoscale`. The response will be a JSON object with autoscaling configuration details.

To retrieve the autoscale configuration for an existing database cluster, send a GET request to `/v2/databases/$DATABASE_ID/autoscale`. The response will be a JSON object with autoscaling configuration details.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve the Public CertificateDIGITALOCEAN_DATABASES_GET_CATo retrieve the public certificate used to secure the connection to the database cluster send a GET request to `/v2/databases/$DATABASE_ID/ca`. The response will be a JSON object with a `ca` key. This will be set to an object containing the base64 encoding of the public key certificate.

To retrieve the public certificate used to secure the connection to the database cluster send a GET request to `/v2/databases/$DATABASE_ID/ca`. The response will be a JSON object with a `ca` key. This will be set to an object containing the base64 encoding of the public key certificate.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve an Existing Database ClusterDIGITALOCEAN_DATABASES_GET_CLUSTERTo show information about an existing database cluster, send a GET request to `/v2/databases/$DATABASE_ID`. The response will be a JSON object with a database key. This will be set to an object containing the standard database cluster attributes. The embedded `connection` and `private_connection` objects will contain the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects contain the information needed to connect to the cluster's standby node(s). The embedded maintenance_window object will contain information about any scheduled maintenance for the database cluster.

To show information about an existing database cluster, send a GET request to `/v2/databases/$DATABASE_ID`. The response will be a JSON object with a database key. This will be set to an object containing the standard database cluster attributes. The embedded `connection` and `private_connection` objects will contain the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects contain the information needed to connect to the cluster's standby node(s). The embedded maintenance_window object will contain information about any scheduled maintenance for the database cluster.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve Database Clusters' Metrics Endpoint CredentialsDIGITALOCEAN_DATABASES_GET_CLUSTER_METRICS_CREDENTIALSTo show the credentials for all database clusters' metrics endpoints, send a GET request to `/v2/databases/metrics/credentials`. The result will be a JSON object with a `credentials` key.

To show the credentials for all database clusters' metrics endpoints, send a GET request to `/v2/databases/metrics/credentials`. The result will be a JSON object with a `credentials` key.

Authentication

Connected account required

Scopes

database:updatedatabase:view_credentials

Tags

Databases
Retrieve an Existing Database Cluster ConfigurationDIGITALOCEAN_DATABASES_GET_CONFIGShows configuration parameters for an existing database cluster by sending a GET request to `/v2/databases/$DATABASE_ID/config`. The response is a JSON object with a `config` key, which is set to an object containing any database configuration parameters.

Shows configuration parameters for an existing database cluster by sending a GET request to `/v2/databases/$DATABASE_ID/config`. The response is a JSON object with a `config` key, which is set to an object containing any database configuration parameters.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve Existing Connection Pool (PostgreSQL)DIGITALOCEAN_DATABASES_GET_CONNECTION_POOLTo show information about an existing connection pool for a PostgreSQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`. The response will be a JSON object with a `pool` key.

To show information about an existing connection pool for a PostgreSQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`. The response will be a JSON object with a `pool` key.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve DO Settings for a Database ClusterDIGITALOCEAN_DATABASES_GET_DO_SETTINGSTo retrieve the DigitalOcean-specific settings for a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/do_settings`. The response will include the current `service_cnames` configuration.

To retrieve the DigitalOcean-specific settings for a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/do_settings`. The response will include the current `service_cnames` configuration.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve the Eviction Policy for a Caching or Valkey ClusterDIGITALOCEAN_DATABASES_GET_EVICTION_POLICYTo retrieve the configured eviction policy for an existing Caching or Valkey cluster, send a GET request to `/v2/databases/$DATABASE_ID/eviction_policy`. The response will be a JSON object with an `eviction_policy` key. This will be set to a string representing the eviction policy.

To retrieve the configured eviction policy for an existing Caching or Valkey cluster, send a GET request to `/v2/databases/$DATABASE_ID/eviction_policy`. The response will be a JSON object with an `eviction_policy` key. This will be set to a string representing the eviction policy.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Get a Kafka Schema by Subject NameDIGITALOCEAN_DATABASES_GET_KAFKA_SCHEMATo get a specific schema by subject name for a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME`.

To get a specific schema by subject name for a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME`.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve Schema Registry Configuration for a kafka ClusterDIGITALOCEAN_DATABASES_GET_KAFKA_SCHEMA_CONFIGTo retrieve the Schema Registry configuration for a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry/config`. The response is a JSON object with a `compatibility_level` key, which is set to an object containing any database configuration parameters.

To retrieve the Schema Registry configuration for a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry/config`. The response is a JSON object with a `compatibility_level` key, which is set to an object containing any database configuration parameters.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve Schema Registry Configuration for a Subject of kafka ClusterDIGITALOCEAN_DATABASES_GET_KAFKA_SCHEMA_SUBJECT_CONFIGTo retrieve the Schema Registry configuration for a Subject of a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry/config/$SUBJECT_NAME`. The response is a JSON object with a `compatibility_level` key, which is set to an object containing any database configuration parameters.

To retrieve the Schema Registry configuration for a Subject of a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry/config/$SUBJECT_NAME`. The response is a JSON object with a `compatibility_level` key, which is set to an object containing any database configuration parameters.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Get Kafka Schema by Subject VersionDIGITALOCEAN_DATABASES_GET_KAFKA_SCHEMA_VERSIONTo get a specific schema by subject name for a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME/versions/$VERSION`.

To get a specific schema by subject name for a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry/$SUBJECT_NAME/versions/$VERSION`.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Get Topic for a Kafka ClusterDIGITALOCEAN_DATABASES_GET_KAFKA_TOPICTo retrieve a given topic by name from the set of a Kafka cluster's topics, send a GET request to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`. The result will be a JSON object with a `topic` key.

To retrieve a given topic by name from the set of a Kafka cluster's topics, send a GET request to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`. The result will be a JSON object with a `topic` key.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Get Logsink for a Database ClusterDIGITALOCEAN_DATABASES_GET_LOGSINKTo get a logsink for a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.

To get a logsink for a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve the Status of an Online MigrationDIGITALOCEAN_DATABASES_GET_MIGRATION_STATUSTo retrieve the status of the most recent online migration, send a GET request to `/v2/databases/$DATABASE_ID/online-migration`.

To retrieve the status of the most recent online migration, send a GET request to `/v2/databases/$DATABASE_ID/online-migration`.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve an Existing Read-only ReplicaDIGITALOCEAN_DATABASES_GET_REPLICATo show information about an existing database replica, send a GET request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME`. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. The response will be a JSON object with a `replica key`. This will be set to an object containing the standard database replica attributes.

To show information about an existing database replica, send a GET request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME`. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. The response will be a JSON object with a `replica key`. This will be set to an object containing the standard database replica attributes.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve the SQL Modes for a MySQL ClusterDIGITALOCEAN_DATABASES_GET_SQL_MODETo retrieve the configured SQL modes for an existing MySQL cluster, send a GET request to `/v2/databases/$DATABASE_ID/sql_mode`. The response will be a JSON object with a `sql_mode` key. This will be set to a string representing the configured SQL modes.

To retrieve the configured SQL modes for an existing MySQL cluster, send a GET request to `/v2/databases/$DATABASE_ID/sql_mode`. The response will be a JSON object with a `sql_mode` key. This will be set to a string representing the configured SQL modes.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Retrieve an Existing Database UserDIGITALOCEAN_DATABASES_GET_USERTo show information about an existing database user, send a GET request to `/v2/databases/$DATABASE_ID/users/$USERNAME`. Note: User management is not supported for Caching or Valkey clusters. The response will be a JSON object with a `user` key. This will be set to an object containing the standard database user attributes. The user's password will not show up unless the `database:view_credentials` scope is present. For MySQL clusters, additional options will be contained in the `mysql_settings` object. For PostgreSQL clusters, additional options will be contained in the `settings` object (for example, `pg_allow_replication`). For Kafka clusters, additional options will be contained in the `settings` object. For MongoDB clusters, additional information will be contained in the mongo_user_settings object

To show information about an existing database user, send a GET request to `/v2/databases/$DATABASE_ID/users/$USERNAME`. Note: User management is not supported for Caching or Valkey clusters. The response will be a JSON object with a `user` key. This will be set to an object containing the standard database user attributes. The user's password will not show up unless the `database:view_credentials` scope is present. For MySQL clusters, additional options will be contained in the `mysql_settings` object. For PostgreSQL clusters, additional options will be contained in the `settings` object (for example, `pg_allow_replication`). For Kafka clusters, additional options will be contained in the `settings` object. For MongoDB clusters, additional information will be contained in the mongo_user_settings object

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Start Database MaintenanceDIGITALOCEAN_DATABASES_INSTALL_UPDATETo start the installation of updates for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/install_update`. A successful request will receive a 204 No Content status code with no body in response.

To start the installation of updates for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/install_update`. A successful request will receive a 204 No Content status code with no body in response.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
List All DatabasesDIGITALOCEAN_DATABASES_LISTTo list all of the databases in a clusters, send a GET request to `/v2/databases/$DATABASE_ID/dbs`. The result will be a JSON object with a `dbs` key. This will be set to an array of database objects, each of which will contain the standard database attributes. Note: Database management is not supported for Caching or Valkey clusters.

To list all of the databases in a clusters, send a GET request to `/v2/databases/$DATABASE_ID/dbs`. The result will be a JSON object with a `dbs` key. This will be set to an array of database objects, each of which will contain the standard database attributes. Note: Database management is not supported for Caching or Valkey clusters.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List Backups for a Database ClusterDIGITALOCEAN_DATABASES_LIST_BACKUPSTo list all of the available backups of a PostgreSQL or MySQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/backups`. **Note**: Backups are not supported for Caching or Valkey clusters. The result will be a JSON object with a `backups key`. This will be set to an array of backup objects, each of which will contain the size of the backup and the timestamp at which it was created.

To list all of the available backups of a PostgreSQL or MySQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/backups`. **Note**: Backups are not supported for Caching or Valkey clusters. The result will be a JSON object with a `backups key`. This will be set to an array of backup objects, each of which will contain the size of the backup and the timestamp at which it was created.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List All Database ClustersDIGITALOCEAN_DATABASES_LIST_CLUSTERSTo list all of the database clusters available on your account, send a GET request to `/v2/databases`. To limit the results to database clusters with a specific tag, include the `tag_name` query parameter set to the name of the tag. For example, `/v2/databases?tag_name=$TAG_NAME`. The result will be a JSON object with a `databases` key. This will be set to an array of database objects, each of which will contain the standard database attributes. The embedded `connection` and `private_connection` objects will contain the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects will contain the information needed to connect to the cluster's standby node(s). The embedded `maintenance_window` object will contain information about any scheduled maintenance for the database cluster.

To list all of the database clusters available on your account, send a GET request to `/v2/databases`. To limit the results to database clusters with a specific tag, include the `tag_name` query parameter set to the name of the tag. For example, `/v2/databases?tag_name=$TAG_NAME`. The result will be a JSON object with a `databases` key. This will be set to an array of database objects, each of which will contain the standard database attributes. The embedded `connection` and `private_connection` objects will contain the information needed to access the database cluster. For multi-node clusters, the `standby_connection` and `standby_private_connection` objects will contain the information needed to connect to the cluster's standby node(s). The embedded `maintenance_window` object will contain information about any scheduled maintenance for the database cluster.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List Connection Pools (PostgreSQL)DIGITALOCEAN_DATABASES_LIST_CONNECTION_POOLSTo list all of the connection pools available to a PostgreSQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/pools`. The result will be a JSON object with a `pools` key. This will be set to an array of connection pool objects.

To list all of the connection pools available to a PostgreSQL database cluster, send a GET request to `/v2/databases/$DATABASE_ID/pools`. The result will be a JSON object with a `pools` key. This will be set to an array of connection pool objects.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List all Events LogsDIGITALOCEAN_DATABASES_LIST_EVENTS_LOGSTo list all of the cluster events, send a GET request to `/v2/databases/$DATABASE_ID/events`. The result will be a JSON object with a `events` key.

To list all of the cluster events, send a GET request to `/v2/databases/$DATABASE_ID/events`. The result will be a JSON object with a `events` key.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List Firewall Rules (Trusted Sources) for a Database ClusterDIGITALOCEAN_DATABASES_LIST_FIREWALL_RULESTo list all of a database cluster's firewall rules (known as "trusted sources" in the control panel), send a GET request to `/v2/databases/$DATABASE_ID/firewall`. The result will be a JSON object with a `rules` key.

To list all of a database cluster's firewall rules (known as "trusted sources" in the control panel), send a GET request to `/v2/databases/$DATABASE_ID/firewall`. The result will be a JSON object with a `rules` key.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List Schemas for Kafka ClusterDIGITALOCEAN_DATABASES_LIST_KAFKA_SCHEMASTo list all schemas for a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry`.

To list all schemas for a Kafka cluster, send a GET request to `/v2/databases/$DATABASE_ID/schema-registry`.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List Topics for a Kafka ClusterDIGITALOCEAN_DATABASES_LIST_KAFKA_TOPICSTo list all of a Kafka cluster's topics, send a GET request to `/v2/databases/$DATABASE_ID/topics`. The result will be a JSON object with a `topics` key.

To list all of a Kafka cluster's topics, send a GET request to `/v2/databases/$DATABASE_ID/topics`. The result will be a JSON object with a `topics` key.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List Logsinks for a Database ClusterDIGITALOCEAN_DATABASES_LIST_LOGSINKTo list logsinks for a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/logsink`.

To list logsinks for a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/logsink`.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List Indexes for a OpenSearch ClusterDIGITALOCEAN_DATABASES_LIST_OPEASEARCH_INDEXESTo list all of a OpenSearch cluster's indexes, send a GET request to `/v2/databases/$DATABASE_ID/indexes`. The result will be a JSON object with a `indexes` key.

To list all of a OpenSearch cluster's indexes, send a GET request to `/v2/databases/$DATABASE_ID/indexes`. The result will be a JSON object with a `indexes` key.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List Database OptionsDIGITALOCEAN_DATABASES_LIST_OPTIONSTo list all of the options available for the offered database engines, send a GET request to `/v2/databases/options`. The result will be a JSON object with an `options` key.

To list all of the options available for the offered database engines, send a GET request to `/v2/databases/options`. The result will be a JSON object with an `options` key.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List All Read-only ReplicasDIGITALOCEAN_DATABASES_LIST_REPLICASTo list all of the read-only replicas associated with a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/replicas`. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. The result will be a JSON object with a `replicas` key. This will be set to an array of database replica objects, each of which will contain the standard database replica attributes.

To list all of the read-only replicas associated with a database cluster, send a GET request to `/v2/databases/$DATABASE_ID/replicas`. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. The result will be a JSON object with a `replicas` key. This will be set to an array of database replica objects, each of which will contain the standard database replica attributes.

Authentication

Connected account required

Scopes

database:read

Tags

Databases
List all Database UsersDIGITALOCEAN_DATABASES_LIST_USERSTo list all of the users for your database cluster, send a GET request to `/v2/databases/$DATABASE_ID/users`. Note: User management is not supported for Caching or Valkey clusters. The result will be a JSON object with a `users` key. This will be set to an array of database user objects, each of which will contain the standard database user attributes. User passwords will not show without the `database:view_credentials` scope. For MySQL clusters, additional options will be contained in the mysql_settings object. For PostgreSQL clusters, additional options will be contained in the `settings` object (for example, `pg_allow_replication`). For Kafka clusters, additional options will be contained in the `settings` object. For MongoDB clusters, additional information will be contained in the mongo_user_settings object

To list all of the users for your database cluster, send a GET request to `/v2/databases/$DATABASE_ID/users`. Note: User management is not supported for Caching or Valkey clusters. The result will be a JSON object with a `users` key. This will be set to an array of database user objects, each of which will contain the standard database user attributes. User passwords will not show without the `database:view_credentials` scope. For MySQL clusters, additional options will be contained in the mysql_settings object. For PostgreSQL clusters, additional options will be contained in the `settings` object (for example, `pg_allow_replication`). For Kafka clusters, additional options will be contained in the `settings` object. For MongoDB clusters, additional information will be contained in the mongo_user_settings object

Authentication

Connected account required

Scopes

database:read

Tags

Databases
Update the Database Configuration for an Existing DatabaseDIGITALOCEAN_DATABASES_PATCH_CONFIGTo update the configuration for an existing database cluster, send a PATCH request to `/v2/databases/$DATABASE_ID/config`.

To update the configuration for an existing database cluster, send a PATCH request to `/v2/databases/$DATABASE_ID/config`.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Promote a Read-only Replica to become a Primary ClusterDIGITALOCEAN_DATABASES_PROMOTE_REPLICATo promote a specific read-only replica, send a PUT request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME/promote`. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To promote a specific read-only replica, send a PUT request to `/v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME/promote`. **Note**: Read-only replicas are not supported for Caching or Valkey clusters. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Reset a Database User's Password or Authentication MethodDIGITALOCEAN_DATABASES_RESET_AUTHTo reset the password for a database user, send a POST request to `/v2/databases/$DATABASE_ID/users/$USERNAME/reset_auth`. For `mysql` databases, the authentication method can be specifying by including a key in the JSON body called `mysql_settings` with the `auth_plugin` value specified. The response will be a JSON object with a `user` key. This will be set to an object containing the standard database user attributes.

To reset the password for a database user, send a POST request to `/v2/databases/$DATABASE_ID/users/$USERNAME/reset_auth`. For `mysql` databases, the authentication method can be specifying by including a key in the JSON body called `mysql_settings` with the `auth_plugin` value specified. The response will be a JSON object with a `user` key. This will be set to an object containing the standard database user attributes.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Configure Autoscale Settings for a Database ClusterDIGITALOCEAN_DATABASES_UPDATE_AUTOSCALETo configure autoscale settings for an existing database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/autoscale`, specifying the autoscale configuration. A successful request will receive a 204 No Content status code with no body in response.

To configure autoscale settings for an existing database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/autoscale`, specifying the autoscale configuration. A successful request will receive a 204 No Content status code with no body in response.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Update Database Clusters' Metrics Endpoint CredentialsDIGITALOCEAN_DATABASES_UPDATE_CLUSTER_METRICS_CREDENTIALSTo update the credentials for all database clusters' metrics endpoints, send a PUT request to `/v2/databases/metrics/credentials`. A successful request will receive a 204 No Content status code with no body in response.

To update the credentials for all database clusters' metrics endpoints, send a PUT request to `/v2/databases/metrics/credentials`. A successful request will receive a 204 No Content status code with no body in response.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Resize a Database ClusterDIGITALOCEAN_DATABASES_UPDATE_CLUSTER_SIZETo resize a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/resize`. The body of the request must specify both the size and num_nodes attributes. A successful request will receive a 202 Accepted status code with no body in response. Querying the database cluster will show that its status attribute will now be set to resizing. This will transition back to online when the resize operation has completed.

To resize a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/resize`. The body of the request must specify both the size and num_nodes attributes. A successful request will receive a 202 Accepted status code with no body in response. Querying the database cluster will show that its status attribute will now be set to resizing. This will transition back to online when the resize operation has completed.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Update Connection Pools (PostgreSQL)DIGITALOCEAN_DATABASES_UPDATE_CONNECTION_POOLTo update a connection pool for a PostgreSQL database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`.

To update a connection pool for a PostgreSQL database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/pools/$POOL_NAME`.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Update DO Settings for a Database ClusterDIGITALOCEAN_DATABASES_UPDATE_DO_SETTINGSTo update the DigitalOcean-specific settings for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/do_settings`. Currently, the only supported setting is `service_cnames`, which allows you to specify custom DNS names (CNAMEs) to be included in the TLS certificate Subject Alternative Names (SANs) for the database cluster nodes. This enables TLS verification when connecting via a custom hostname. After updating, the database nodes will be replaced to apply the new certificate. This process is performed as a rolling replacement and does not cause downtime. To clear all custom CNAMEs, send an empty array or omit the field.

To update the DigitalOcean-specific settings for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/do_settings`. Currently, the only supported setting is `service_cnames`, which allows you to specify custom DNS names (CNAMEs) to be included in the TLS certificate Subject Alternative Names (SANs) for the database cluster nodes. This enables TLS verification when connecting via a custom hostname. After updating, the database nodes will be replaced to apply the new certificate. This process is performed as a rolling replacement and does not cause downtime. To clear all custom CNAMEs, send an empty array or omit the field.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Configure the Eviction Policy for a Caching or Valkey ClusterDIGITALOCEAN_DATABASES_UPDATE_EVICTION_POLICYTo configure an eviction policy for an existing Caching or Valkey cluster, send a PUT request to `/v2/databases/$DATABASE_ID/eviction_policy` specifying the desired policy.

To configure an eviction policy for an existing Caching or Valkey cluster, send a PUT request to `/v2/databases/$DATABASE_ID/eviction_policy` specifying the desired policy.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Update Firewall Rules (Trusted Sources) for a DatabaseDIGITALOCEAN_DATABASES_UPDATE_FIREWALL_RULESTo update a database cluster's firewall rules (known as "trusted sources" in the control panel), send a PUT request to `/v2/databases/$DATABASE_ID/firewall` specifying which resources should be able to open connections to the database. You may limit connections to specific Droplets, Kubernetes clusters, or IP addresses. When a tag is provided, any Droplet or Kubernetes node with that tag applied to it will have access. The firewall is limited to 100 rules (or trusted sources). You cannot add IPv6 addresses as trusted sources. For additional limits, see your database engine's limits page. When possible, we recommend [placing your databases into a VPC network](https://docs.digitalocean.com/products/networking/vpc/) to limit access to them instead of using a firewall. A successful request returns a 204 status code with no content.

To update a database cluster's firewall rules (known as "trusted sources" in the control panel), send a PUT request to `/v2/databases/$DATABASE_ID/firewall` specifying which resources should be able to open connections to the database. You may limit connections to specific Droplets, Kubernetes clusters, or IP addresses. When a tag is provided, any Droplet or Kubernetes node with that tag applied to it will have access. The firewall is limited to 100 rules (or trusted sources). You cannot add IPv6 addresses as trusted sources. For additional limits, see your database engine's limits page. When possible, we recommend [placing your databases into a VPC network](https://docs.digitalocean.com/products/networking/vpc/) to limit access to them instead of using a firewall. A successful request returns a 204 status code with no content.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Update Schema Registry Configuration for a kafka ClusterDIGITALOCEAN_DATABASES_UPDATE_KAFKA_SCHEMA_CONFIGTo update the Schema Registry configuration for a Kafka cluster, send a PUT request to `/v2/databases/$DATABASE_ID/schema-registry/config`. The response is a JSON object with a `compatibility_level` key, which is set to an object containing any database configuration parameters.

To update the Schema Registry configuration for a Kafka cluster, send a PUT request to `/v2/databases/$DATABASE_ID/schema-registry/config`. The response is a JSON object with a `compatibility_level` key, which is set to an object containing any database configuration parameters.

Authentication

Connected account required

Scopes

database:write

Tags

Databases
Update Schema Registry Configuration for a Subject of kafka ClusterDIGITALOCEAN_DATABASES_UPDATE_KAFKA_SCHEMA_SUBJECT_CONFIGTo update the Schema Registry configuration for a Subject of a Kafka cluster, send a PUT request to `/v2/databases/$DATABASE_ID/schema-registry/config/$SUBJECT_NAME`. The response is a JSON object with a `compatibility_level` key, which is set to an object containing any database configuration parameters.

To update the Schema Registry configuration for a Subject of a Kafka cluster, send a PUT request to `/v2/databases/$DATABASE_ID/schema-registry/config/$SUBJECT_NAME`. The response is a JSON object with a `compatibility_level` key, which is set to an object containing any database configuration parameters.

Authentication

Connected account required

Scopes

database:write

Tags

Databases
Update Topic for a Kafka ClusterDIGITALOCEAN_DATABASES_UPDATE_KAFKA_TOPICTo update a topic attached to a Kafka cluster, send a PUT request to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`. The result will be a JSON object with a `topic` key.

To update a topic attached to a Kafka cluster, send a PUT request to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`. The result will be a JSON object with a `topic` key.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Update Logsink for a Database ClusterDIGITALOCEAN_DATABASES_UPDATE_LOGSINKTo update a logsink for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.

To update a logsink for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Configure a Database Cluster's Maintenance WindowDIGITALOCEAN_DATABASES_UPDATE_MAINTENANCE_WINDOWTo configure the window when automatic maintenance should be performed for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/maintenance`. A successful request will receive a 204 No Content status code with no body in response.

To configure the window when automatic maintenance should be performed for a database cluster, send a PUT request to `/v2/databases/$DATABASE_ID/maintenance`. A successful request will receive a 204 No Content status code with no body in response.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Upgrade Major Version for a DatabaseDIGITALOCEAN_DATABASES_UPDATE_MAJOR_VERSIONTo upgrade the major version of a database, send a PUT request to `/v2/databases/$DATABASE_ID/upgrade`, specifying the target version. A successful request will receive a 204 No Content status code with no body in response.

To upgrade the major version of a database, send a PUT request to `/v2/databases/$DATABASE_ID/upgrade`, specifying the target version. A successful request will receive a 204 No Content status code with no body in response.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Start an Online MigrationDIGITALOCEAN_DATABASES_UPDATE_ONLINE_MIGRATIONTo start an online migration, send a PUT request to `/v2/databases/$DATABASE_ID/online-migration` endpoint. Migrating a cluster establishes a connection with an existing cluster and replicates its contents to the target cluster. Online migration is only available for MySQL, PostgreSQL, Caching, and Valkey clusters. If the existing database is continuously being written to, the migration process will continue for up to two weeks unless it is manually stopped. Online migration is only available for [MySQL](https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration), [PostgreSQL](https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/), [Caching](https://docs.digitalocean.com/products/databases/redis/how-to/migrate/), and [Valkey](https://docs.digitalocean.com/products/databases/valkey/how-to/migrate/) clusters.

To start an online migration, send a PUT request to `/v2/databases/$DATABASE_ID/online-migration` endpoint. Migrating a cluster establishes a connection with an existing cluster and replicates its contents to the target cluster. Online migration is only available for MySQL, PostgreSQL, Caching, and Valkey clusters. If the existing database is continuously being written to, the migration process will continue for up to two weeks unless it is manually stopped. Online migration is only available for [MySQL](https://docs.digitalocean.com/products/databases/mysql/how-to/migrate/#:~:text=To%20migrate%20a%20MySQL%20database,then%20select%20Set%20Up%20Migration), [PostgreSQL](https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/), [Caching](https://docs.digitalocean.com/products/databases/redis/how-to/migrate/), and [Valkey](https://docs.digitalocean.com/products/databases/valkey/how-to/migrate/) clusters.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Migrate a Database Cluster to a New RegionDIGITALOCEAN_DATABASES_UPDATE_REGIONTo migrate a database cluster to a new region, send a `PUT` request to `/v2/databases/$DATABASE_ID/migrate`. The body of the request must specify a `region` attribute. A successful request will receive a 202 Accepted status code with no body in response. Querying the database cluster will show that its `status` attribute will now be set to `migrating`. This will transition back to `online` when the migration has completed.

To migrate a database cluster to a new region, send a `PUT` request to `/v2/databases/$DATABASE_ID/migrate`. The body of the request must specify a `region` attribute. A successful request will receive a 202 Accepted status code with no body in response. Querying the database cluster will show that its `status` attribute will now be set to `migrating`. This will transition back to `online` when the migration has completed.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Update SQL Mode for a ClusterDIGITALOCEAN_DATABASES_UPDATE_SQL_MODETo configure the SQL modes for an existing MySQL cluster, send a PUT request to `/v2/databases/$DATABASE_ID/sql_mode` specifying the desired modes. See the official MySQL 8 documentation for a [full list of supported SQL modes](https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sql-mode-full). A successful request will receive a 204 No Content status code with no body in response.

To configure the SQL modes for an existing MySQL cluster, send a PUT request to `/v2/databases/$DATABASE_ID/sql_mode` specifying the desired modes. See the official MySQL 8 documentation for a [full list of supported SQL modes](https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sql-mode-full). A successful request will receive a 204 No Content status code with no body in response.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Update a Database UserDIGITALOCEAN_DATABASES_UPDATE_USERTo update an existing database user, send a PUT request to `/v2/databases/$DATABASE_ID/users/$USERNAME` with the desired settings. **Note**: only `settings` can be updated via this type of request. If you wish to change the name of a user, you must recreate a new user. For PostgreSQL clusters, you can update `settings.pg_allow_replication` to enable or disable replication privileges for the user. When omitted, the value defaults to `false`. For Kafka and OpenSearch clusters, additional options can be configured in the `settings` object (for example, topic or index ACLs). The response will be a JSON object with a key called `user`. The value of this will be an object that contains the name of the updated database user, along with the `settings` object that has been updated.

To update an existing database user, send a PUT request to `/v2/databases/$DATABASE_ID/users/$USERNAME` with the desired settings. **Note**: only `settings` can be updated via this type of request. If you wish to change the name of a user, you must recreate a new user. For PostgreSQL clusters, you can update `settings.pg_allow_replication` to enable or disable replication privileges for the user. When omitted, the value defaults to `false`. For Kafka and OpenSearch clusters, additional options can be configured in the `settings` object (for example, topic or index ACLs). The response will be a JSON object with a key called `user`. The value of this will be an object that contains the name of the updated database user, along with the `settings` object that has been updated.

Authentication

Connected account required

Scopes

database:update

Tags

Databases
Create a Dedicated InferenceDIGITALOCEAN_DEDICATED_INFERENCES_CREATECreate a new Dedicated Inference for your team. Send a POST request to `/v2/dedicated-inferences` with a `spec` object (version, name, region, vpc, enable_public_endpoint, model_deployments) and optional `access_tokens` (e.g. hugging_face_token for gated models). The response code 202 Accepted indicates the request was accepted for processing; it does not indicate success or failure. The token value is returned only on create; store it securely.

Create a new Dedicated Inference for your team. Send a POST request to `/v2/dedicated-inferences` with a `spec` object (version, name, region, vpc, enable_public_endpoint, model_deployments) and optional `access_tokens` (e.g. hugging_face_token for gated models). The response code 202 Accepted indicates the request was accepted for processing; it does not indicate success or failure. The token value is returned only on create; store it securely.

Authentication

Connected account required

Scopes

dedicated_inference:create

Tags

Dedicated Inference
Create a Dedicated Inference TokenDIGITALOCEAN_DEDICATED_INFERENCES_CREATE_TOKENSCreate a new access token for a Dedicated Inference instance. Send a POST request to `/v2/dedicated-inferences/{dedicated_inference_id}/tokens` with a `name`. The token value is returned only once in the response; store it securely.

Create a new access token for a Dedicated Inference instance. Send a POST request to `/v2/dedicated-inferences/{dedicated_inference_id}/tokens` with a `name`. The token value is returned only once in the response; store it securely.

Authentication

Connected account required

Scopes

dedicated_inference_tokens:create

Tags

Dedicated Inference
Delete a Dedicated InferenceDIGITALOCEAN_DEDICATED_INFERENCES_DELETEDelete an existing Dedicated Inference. Send a DELETE request to `/v2/dedicated-inferences/{dedicated_inference_id}`. The response 202 Accepted indicates the request was accepted for processing.

Delete an existing Dedicated Inference. Send a DELETE request to `/v2/dedicated-inferences/{dedicated_inference_id}`. The response 202 Accepted indicates the request was accepted for processing.

Authentication

Connected account required

Scopes

dedicated_inference:delete

Tags

Dedicated Inference
Revoke a Dedicated Inference TokenDIGITALOCEAN_DEDICATED_INFERENCES_DELETE_TOKENSRevoke (delete) an access token for a Dedicated Inference instance. Send a DELETE request to `/v2/dedicated-inferences/{dedicated_inference_id}/tokens/{token_id}`.

Revoke (delete) an access token for a Dedicated Inference instance. Send a DELETE request to `/v2/dedicated-inferences/{dedicated_inference_id}/tokens/{token_id}`.

Authentication

Connected account required

Scopes

dedicated_inference_tokens:delete

Tags

Dedicated Inference
Get a Dedicated InferenceDIGITALOCEAN_DEDICATED_INFERENCES_GETRetrieve an existing Dedicated Inference by ID. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}`. The status in the response is one of active, new, provisioning, updating, deleting, or error.

Retrieve an existing Dedicated Inference by ID. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}`. The status in the response is one of active, new, provisioning, updating, deleting, or error.

Authentication

Connected account required

Scopes

dedicated_inference:read

Tags

Dedicated Inference
Get a Dedicated Inference AcceleratorDIGITALOCEAN_DEDICATED_INFERENCES_GET_ACCELERATORRetrieve a single accelerator by ID for a Dedicated Inference instance. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/accelerators/{accelerator_id}`.

Retrieve a single accelerator by ID for a Dedicated Inference instance. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/accelerators/{accelerator_id}`.

Authentication

Connected account required

Scopes

dedicated_inference:read

Tags

Dedicated Inference
Get Dedicated Inference CA CertificateDIGITALOCEAN_DEDICATED_INFERENCES_GET_CAGet the CA certificate for a Dedicated Inference instance (base64-encoded). Required for private endpoint connectivity. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/ca`.

Get the CA certificate for a Dedicated Inference instance (base64-encoded). Required for private endpoint connectivity. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/ca`.

Authentication

Connected account required

Scopes

dedicated_inference:read

Tags

Dedicated Inference
Get Dedicated Inference GPU Model ConfigDIGITALOCEAN_DEDICATED_INFERENCES_GET_GPU_MODEL_CONFIGGet supported GPU and model configurations for Dedicated Inference. Use this to discover supported GPU slugs and model slugs (e.g. Hugging Face). Send a GET request to `/v2/dedicated-inferences/gpu-model-config`.

Get supported GPU and model configurations for Dedicated Inference. Use this to discover supported GPU slugs and model slugs (e.g. Hugging Face). Send a GET request to `/v2/dedicated-inferences/gpu-model-config`.

Authentication

Connected account required

Scopes

dedicated_inference:read

Tags

Dedicated Inference
List Dedicated InferencesDIGITALOCEAN_DEDICATED_INFERENCES_LISTList all Dedicated Inference instances for your team. Send a GET request to `/v2/dedicated-inferences`. You may filter by region and use page and per_page for pagination.

List all Dedicated Inference instances for your team. Send a GET request to `/v2/dedicated-inferences`. You may filter by region and use page and per_page for pagination.

Authentication

Connected account required

Scopes

dedicated_inference:read

Tags

Dedicated Inference
List Dedicated Inference AcceleratorsDIGITALOCEAN_DEDICATED_INFERENCES_LIST_ACCELERATORSList all accelerators (GPUs) in use by a Dedicated Inference instance. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/accelerators`. Optionally filter by slug and use page/per_page for pagination.

List all accelerators (GPUs) in use by a Dedicated Inference instance. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/accelerators`. Optionally filter by slug and use page/per_page for pagination.

Authentication

Connected account required

Scopes

dedicated_inference:read

Tags

Dedicated Inference
List Dedicated Inference SizesDIGITALOCEAN_DEDICATED_INFERENCES_LIST_SIZESGet available Dedicated Inference sizes and pricing for supported GPUs. Send a GET request to `/v2/dedicated-inferences/sizes`.

Get available Dedicated Inference sizes and pricing for supported GPUs. Send a GET request to `/v2/dedicated-inferences/sizes`.

Authentication

Connected account required

Scopes

dedicated_inference:read

Tags

Dedicated Inference
List Dedicated Inference TokensDIGITALOCEAN_DEDICATED_INFERENCES_LIST_TOKENSList all access tokens for a Dedicated Inference instance. Token values are not returned; only id, name, created_at, and is_managed. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/tokens`.

List all access tokens for a Dedicated Inference instance. Token values are not returned; only id, name, created_at, and is_managed. Send a GET request to `/v2/dedicated-inferences/{dedicated_inference_id}/tokens`.

Authentication

Connected account required

Scopes

dedicated_inference_tokens:read

Tags

Dedicated Inference
Update a Dedicated InferenceDIGITALOCEAN_DEDICATED_INFERENCES_PATCHUpdate an existing Dedicated Inference. Send a PATCH request to `/v2/dedicated-inferences/{dedicated_inference_id}` with updated `spec` and/or `access_tokens`. Status will move to updating and return to active when done.

Update an existing Dedicated Inference. Send a PATCH request to `/v2/dedicated-inferences/{dedicated_inference_id}` with updated `spec` and/or `access_tokens`. Status will move to updating and return to active when done.

Authentication

Connected account required

Scopes

dedicated_inference:update

Tags

Dedicated Inference
Create a New DomainDIGITALOCEAN_DOMAINS_CREATETo create a new domain, send a POST request to `/v2/domains`. Set the "name" attribute to the domain name you are adding. Optionally, you may set the "ip_address" attribute, and an A record will be automatically created pointing to the apex domain.

To create a new domain, send a POST request to `/v2/domains`. Set the "name" attribute to the domain name you are adding. Optionally, you may set the "ip_address" attribute, and an A record will be automatically created pointing to the apex domain.

Authentication

Connected account required

Scopes

domain:create

Tags

Domains
Create a New Domain RecordDIGITALOCEAN_DOMAINS_CREATE_RECORDTo create a new record to a domain, send a POST request to `/v2/domains/$DOMAIN_NAME/records`. The request must include all of the required fields for the domain record type being added. See the [attribute table](#tag/Domain-Records) for details regarding record types and their respective required attributes.

To create a new record to a domain, send a POST request to `/v2/domains/$DOMAIN_NAME/records`. The request must include all of the required fields for the domain record type being added. See the [attribute table](#tag/Domain-Records) for details regarding record types and their respective required attributes.

Authentication

Connected account required

Scopes

domain:createdomain:update

Tags

Domain Records
Delete a DomainDIGITALOCEAN_DOMAINS_DELETETo delete a domain, send a DELETE request to `/v2/domains/$DOMAIN_NAME`.

To delete a domain, send a DELETE request to `/v2/domains/$DOMAIN_NAME`.

Authentication

Connected account required

Scopes

domain:delete

Tags

Domains
Delete a Domain RecordDIGITALOCEAN_DOMAINS_DELETE_RECORDTo delete a record for a domain, send a DELETE request to `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`. The record will be deleted and the response status will be a 204. This indicates a successful request with no body returned.

To delete a record for a domain, send a DELETE request to `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`. The record will be deleted and the response status will be a 204. This indicates a successful request with no body returned.

Authentication

Connected account required

Scopes

domain:deletedomain:update

Tags

Domain Records
Retrieve an Existing DomainDIGITALOCEAN_DOMAINS_GETTo get details about a specific domain, send a GET request to `/v2/domains/$DOMAIN_NAME`.

To get details about a specific domain, send a GET request to `/v2/domains/$DOMAIN_NAME`.

Authentication

Connected account required

Scopes

domain:read

Tags

Domains
Retrieve an Existing Domain RecordDIGITALOCEAN_DOMAINS_GET_RECORDTo retrieve a specific domain record, send a GET request to `/v2/domains/$DOMAIN_NAME/records/$RECORD_ID`.

To retrieve a specific domain record, send a GET request to `/v2/domains/$DOMAIN_NAME/records/$RECORD_ID`.

Authentication

Connected account required

Scopes

domain:read

Tags

Domain Records
List All DomainsDIGITALOCEAN_DOMAINS_LISTTo retrieve a list of all of the domains in your account, send a GET request to `/v2/domains`.

To retrieve a list of all of the domains in your account, send a GET request to `/v2/domains`.

Authentication

Connected account required

Scopes

domain:read

Tags

Domains
List All Domain RecordsDIGITALOCEAN_DOMAINS_LIST_RECORDSTo get a listing of all records configured for a domain, send a GET request to `/v2/domains/$DOMAIN_NAME/records`. The list of records returned can be filtered by using the `name` and `type` query parameters. For example, to only include A records for a domain, send a GET request to `/v2/domains/$DOMAIN_NAME/records?type=A`. `name` must be a fully qualified record name. For example, to only include records matching `sub.example.com`, send a GET request to `/v2/domains/$DOMAIN_NAME/records?name=sub.example.com`. Both name and type may be used together.

To get a listing of all records configured for a domain, send a GET request to `/v2/domains/$DOMAIN_NAME/records`. The list of records returned can be filtered by using the `name` and `type` query parameters. For example, to only include A records for a domain, send a GET request to `/v2/domains/$DOMAIN_NAME/records?type=A`. `name` must be a fully qualified record name. For example, to only include records matching `sub.example.com`, send a GET request to `/v2/domains/$DOMAIN_NAME/records?name=sub.example.com`. Both name and type may be used together.

Authentication

Connected account required

Scopes

domain:read

Tags

Domain Records
Update a Domain RecordDIGITALOCEAN_DOMAINS_PATCH_RECORDTo update an existing record, send a PATCH request to `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`. Any attribute valid for the record type can be set to a new value for the record. See the [attribute table](#tag/Domain-Records) for details regarding record types and their respective attributes.

To update an existing record, send a PATCH request to `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`. Any attribute valid for the record type can be set to a new value for the record. See the [attribute table](#tag/Domain-Records) for details regarding record types and their respective attributes.

Authentication

Connected account required

Scopes

domain:update

Tags

Domain Records
Update a Domain RecordDIGITALOCEAN_DOMAINS_UPDATE_RECORDTo update an existing record, send a PUT request to `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`. Any attribute valid for the record type can be set to a new value for the record. See the [attribute table](#tag/Domain-Records) for details regarding record types and their respective attributes.

To update an existing record, send a PUT request to `/v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID`. Any attribute valid for the record type can be set to a new value for the record. See the [attribute table](#tag/Domain-Records) for details regarding record types and their respective attributes.

Authentication

Connected account required

Scopes

domain:update

Tags

Domain Records
Retrieve a Droplet ActionDIGITALOCEAN_DROPLET_ACTIONS_GETTo retrieve a Droplet action, send a GET request to `/v2/droplets/$DROPLET_ID/actions/$ACTION_ID`. The response will be a JSON object with a key called `action`. The value will be a Droplet action object.

To retrieve a Droplet action, send a GET request to `/v2/droplets/$DROPLET_ID/actions/$ACTION_ID`. The response will be a JSON object with a key called `action`. The value will be a Droplet action object.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplet Actions
List Actions for a DropletDIGITALOCEAN_DROPLET_ACTIONS_LISTTo retrieve a list of all actions that have been executed for a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/actions`. The results will be returned as a JSON object with an `actions` key. This will be set to an array filled with `action` objects containing the standard `action` attributes.

To retrieve a list of all actions that have been executed for a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/actions`. The results will be returned as a JSON object with an `actions` key. This will be set to an array filled with `action` objects containing the standard `action` attributes.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplet Actions
Initiate a Droplet ActionDIGITALOCEAN_DROPLET_ACTIONS_POSTTo initiate an action on a Droplet send a POST request to `/v2/droplets/$DROPLET_ID/actions`. In the JSON body to the request, set the `type` attribute to one of the supported action types: | Action | Details | Required Permissions | | ---------------------------------------- | ----------- | ----------- | | <nobr>`enable_backups`</nobr> | Enables backups for a Droplet | <nobr>`droplet:update`</nobr> | | <nobr>`disable_backups`</nobr> | Disables backups for a Droplet | <nobr>`droplet:update`</nobr> | | <nobr>`change_backup_policy`</nobr> | Update the backup policy for a Droplet | <nobr>`droplet:update`</nobr> | | <nobr>`reboot`</nobr> | Reboots a Droplet. A `reboot` action is an attempt to reboot the Droplet in a graceful way, similar to using the `reboot` command from the console. | <nobr>`droplet:update`</nobr> | | <nobr>`power_cycle`</nobr> | Power cycles a Droplet. A `powercycle` action is similar to pushing the reset button on a physical machine, it's similar to booting from scratch. | <nobr>`droplet:update`</nobr> | | <nobr>`shutdown`</nobr> | Shuts down a Droplet. A shutdown action is an attempt to shutdown the Droplet in a graceful way, similar to using the `shutdown` command from the console. Since a `shutdown` command can fail, this action guarantees that the command is issued, not that it succeeds. The preferred way to turn off a Droplet is to attempt a shutdown, with a reasonable timeout, followed by a `power_off` action to ensure the Droplet is off. | <nobr>`droplet:update`</nobr> | | <nobr>`power_off`</nobr> | Powers off a Droplet. A `power_off` event is a hard shutdown and should only be used if the `shutdown` action is not successful. It is similar to cutting the power on a server and could lead to complications. | <nobr>`droplet:update`</nobr> | | <nobr>`power_on`</nobr> | Powers on a Droplet. | <nobr>`droplet:update`</nobr> | | <nobr>`restore`</nobr> | Restore a Droplet using a backup image. The image ID that is passed in must be a backup of the current Droplet instance. The operation will leave any embedded SSH keys intact. | <nobr>`droplet:update`</nobr><br><nobr>`droplet:admin`</nobr> | | <nobr>`password_reset`</nobr> | Resets the root password for a Droplet. A new password will be provided via email. It must be changed after first use. | <nobr>`droplet:update`</nobr><br><nobr>`droplet:admin`</nobr> | | <nobr>`resize`</nobr> | Resizes a Droplet. Set the `size` attribute to a size slug. If a permanent resize with disk changes included is desired, set the `disk` attribute to `true`. | <nobr>`droplet:update`</nobr><br><nobr>`droplet:create`</nobr> | | <nobr>`rebuild`</nobr> | Rebuilds a Droplet from a new base image. Set the `image` attribute to an image ID or slug. | <nobr>`droplet:update`</nobr><br><nobr>`droplet:admin`</nobr> | | <nobr>`rename`</nobr> | Renames a Droplet. | <nobr>`droplet:update`</nobr> | | <nobr>`change_kernel`</nobr> | Changes a Droplet's kernel. Only applies to Droplets with externally managed kernels. All Droplets created after March 2017 use internal kernels by default. | <nobr>`droplet:update`</nobr> | | <nobr>`enable_ipv6`</nobr> | Enables IPv6 for a Droplet. Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on an existing Droplet, [additional OS-level configuration](https://docs.digitalocean.com/products/networking/ipv6/how-to/enable/#on-existing-droplets) is required. | <nobr>`droplet:update`</nobr> | | <nobr>`snapshot`</nobr> | Takes a snapshot of a Droplet. | <nobr>`droplet:update`</nobr><br><nobr>`image:create`</nobr> |

To initiate an action on a Droplet send a POST request to `/v2/droplets/$DROPLET_ID/actions`. In the JSON body to the request, set the `type` attribute to one of the supported action types: | Action | Details | Required Permissions | | ---------------------------------------- | ----------- | ----------- | | <nobr>`enable_backups`</nobr> | Enables backups for a Droplet | <nobr>`droplet:update`</nobr> | | <nobr>`disable_backups`</nobr> | Disables backups for a Droplet | <nobr>`droplet:update`</nobr> | | <nobr>`change_backup_policy`</nobr> | Update the backup policy for a Droplet | <nobr>`droplet:update`</nobr> | | <nobr>`reboot`</nobr> | Reboots a Droplet. A `reboot` action is an attempt to reboot the Droplet in a graceful way, similar to using the `reboot` command from the console. | <nobr>`droplet:update`</nobr> | | <nobr>`power_cycle`</nobr> | Power cycles a Droplet. A `powercycle` action is similar to pushing the reset button on a physical machine, it's similar to booting from scratch. | <nobr>`droplet:update`</nobr> | | <nobr>`shutdown`</nobr> | Shuts down a Droplet. A shutdown action is an attempt to shutdown the Droplet in a graceful way, similar to using the `shutdown` command from the console. Since a `shutdown` command can fail, this action guarantees that the command is issued, not that it succeeds. The preferred way to turn off a Droplet is to attempt a shutdown, with a reasonable timeout, followed by a `power_off` action to ensure the Droplet is off. | <nobr>`droplet:update`</nobr> | | <nobr>`power_off`</nobr> | Powers off a Droplet. A `power_off` event is a hard shutdown and should only be used if the `shutdown` action is not successful. It is similar to cutting the power on a server and could lead to complications. | <nobr>`droplet:update`</nobr> | | <nobr>`power_on`</nobr> | Powers on a Droplet. | <nobr>`droplet:update`</nobr> | | <nobr>`restore`</nobr> | Restore a Droplet using a backup image. The image ID that is passed in must be a backup of the current Droplet instance. The operation will leave any embedded SSH keys intact. | <nobr>`droplet:update`</nobr><br><nobr>`droplet:admin`</nobr> | | <nobr>`password_reset`</nobr> | Resets the root password for a Droplet. A new password will be provided via email. It must be changed after first use. | <nobr>`droplet:update`</nobr><br><nobr>`droplet:admin`</nobr> | | <nobr>`resize`</nobr> | Resizes a Droplet. Set the `size` attribute to a size slug. If a permanent resize with disk changes included is desired, set the `disk` attribute to `true`. | <nobr>`droplet:update`</nobr><br><nobr>`droplet:create`</nobr> | | <nobr>`rebuild`</nobr> | Rebuilds a Droplet from a new base image. Set the `image` attribute to an image ID or slug. | <nobr>`droplet:update`</nobr><br><nobr>`droplet:admin`</nobr> | | <nobr>`rename`</nobr> | Renames a Droplet. | <nobr>`droplet:update`</nobr> | | <nobr>`change_kernel`</nobr> | Changes a Droplet's kernel. Only applies to Droplets with externally managed kernels. All Droplets created after March 2017 use internal kernels by default. | <nobr>`droplet:update`</nobr> | | <nobr>`enable_ipv6`</nobr> | Enables IPv6 for a Droplet. Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on an existing Droplet, [additional OS-level configuration](https://docs.digitalocean.com/products/networking/ipv6/how-to/enable/#on-existing-droplets) is required. | <nobr>`droplet:update`</nobr> | | <nobr>`snapshot`</nobr> | Takes a snapshot of a Droplet. | <nobr>`droplet:update`</nobr><br><nobr>`image:create`</nobr> |

Authentication

Connected account required

Scopes

droplet:update

Tags

Droplet Actions
Acting on Tagged DropletsDIGITALOCEAN_DROPLET_ACTIONS_POST_BY_TAGSome actions can be performed in bulk on tagged Droplets. The actions can be initiated by sending a POST to `/v2/droplets/actions?tag_name=$TAG_NAME` with the action arguments. Only a sub-set of action types are supported: - `power_cycle` - `power_on` - `power_off` - `shutdown` - `enable_ipv6` - `enable_backups` - `disable_backups` - `snapshot` (also requires `image:create` permission)

Some actions can be performed in bulk on tagged Droplets. The actions can be initiated by sending a POST to `/v2/droplets/actions?tag_name=$TAG_NAME` with the action arguments. Only a sub-set of action types are supported: - `power_cycle` - `power_on` - `power_off` - `shutdown` - `enable_ipv6` - `enable_backups` - `disable_backups` - `snapshot` (also requires `image:create` permission)

Authentication

Connected account required

Scopes

droplet:update

Tags

Droplet Actions
Create a New DropletDIGITALOCEAN_DROPLETS_CREATETo create a new Droplet, send a POST request to `/v2/droplets` setting the required attributes. A Droplet will be created using the provided information. The response body will contain a JSON object with a key called `droplet`. The value will be an object containing the standard attributes for your new Droplet. The response code, 202 Accepted, does not indicate the success or failure of the operation, just that the request has been accepted for processing. The `actions` returned as part of the response's `links` object can be used to check the status of the Droplet create event. ### Create Multiple Droplets Creating multiple Droplets is very similar to creating a single Droplet. Instead of sending `name` as a string, send `names` as an array of strings. A Droplet will be created for each name you send using the associated information. Up to ten Droplets may be created this way at a time. Rather than returning a single Droplet, the response body will contain a JSON array with a key called `droplets`. This will be set to an array of JSON objects, each of which will contain the standard Droplet attributes. The response code, 202 Accepted, does not indicate the success or failure of any operation, just that the request has been accepted for processing. The array of `actions` returned as part of the response's `links` object can be used to check the status of each individual Droplet create event.

To create a new Droplet, send a POST request to `/v2/droplets` setting the required attributes. A Droplet will be created using the provided information. The response body will contain a JSON object with a key called `droplet`. The value will be an object containing the standard attributes for your new Droplet. The response code, 202 Accepted, does not indicate the success or failure of the operation, just that the request has been accepted for processing. The `actions` returned as part of the response's `links` object can be used to check the status of the Droplet create event. ### Create Multiple Droplets Creating multiple Droplets is very similar to creating a single Droplet. Instead of sending `name` as a string, send `names` as an array of strings. A Droplet will be created for each name you send using the associated information. Up to ten Droplets may be created this way at a time. Rather than returning a single Droplet, the response body will contain a JSON array with a key called `droplets`. This will be set to an array of JSON objects, each of which will contain the standard Droplet attributes. The response code, 202 Accepted, does not indicate the success or failure of any operation, just that the request has been accepted for processing. The array of `actions` returned as part of the response's `links` object can be used to check the status of each individual Droplet create event.

Authentication

Connected account required

Scopes

droplet:create

Tags

Droplets
Delete an Existing DropletDIGITALOCEAN_DROPLETS_DESTROYTo delete a Droplet, send a DELETE request to `/v2/droplets/$DROPLET_ID`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete a Droplet, send a DELETE request to `/v2/droplets/$DROPLET_ID`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

droplet:delete

Tags

Droplets
Deleting Droplets by TagDIGITALOCEAN_DROPLETS_DESTROY_BY_TAGTo delete **all** Droplets assigned to a specific tag, include the `tag_name` query parameter set to the name of the tag in your DELETE request. For example, `/v2/droplets?tag_name=$TAG_NAME`. This endpoint requires `tag:read` scope. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete **all** Droplets assigned to a specific tag, include the `tag_name` query parameter set to the name of the tag in your DELETE request. For example, `/v2/droplets?tag_name=$TAG_NAME`. This endpoint requires `tag:read` scope. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

droplet:delete

Tags

Droplets
Retry a Droplet Destroy with Associated Resources RequestDIGITALOCEAN_DROPLETS_DESTROY_RETRY_WITH_ASSOCIATED_RESOURCESIf the status of a request to destroy a Droplet with its associated resources reported any errors, it can be retried by sending a POST request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/retry` endpoint. Only one destroy can be active at a time per Droplet. If a retry is issued while another destroy is in progress for the Droplet a 409 status code will be returned. A successful response will include a 202 response code and no content.

If the status of a request to destroy a Droplet with its associated resources reported any errors, it can be retried by sending a POST request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/retry` endpoint. Only one destroy can be active at a time per Droplet. If a retry is issued while another destroy is in progress for the Droplet a 409 status code will be returned. A successful response will include a 202 response code and no content.

Authentication

Connected account required

Scopes

droplet:deleteblock_storage:deleteblock_storage_snapshot:deleteimage:deletereserved_ip:delete

Tags

Droplets
Destroy a Droplet and All of its Associated Resources (Dangerous)DIGITALOCEAN_DROPLETS_DESTROY_WITH_ASSOCIATED_RESOURCES_DANGEROUSTo destroy a Droplet along with all of its associated resources, send a DELETE request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/dangerous` endpoint. The headers of this request must include an `X-Dangerous` key set to `true`. To preview which resources will be destroyed, first query the Droplet's associated resources. This operation _can not_ be reverse and should be used with caution. A successful response will include a 202 response code and no content. Use the status endpoint to check on the success or failure of the destruction of the individual resources.

To destroy a Droplet along with all of its associated resources, send a DELETE request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/dangerous` endpoint. The headers of this request must include an `X-Dangerous` key set to `true`. To preview which resources will be destroyed, first query the Droplet's associated resources. This operation _can not_ be reverse and should be used with caution. A successful response will include a 202 response code and no content. Use the status endpoint to check on the success or failure of the destruction of the individual resources.

Authentication

Connected account required

Scopes

droplet:deleteblock_storage:deleteblock_storage_snapshot:deleteimage:deletereserved_ip:delete

Tags

Droplets
Selectively Destroy a Droplet and its Associated ResourcesDIGITALOCEAN_DROPLETS_DESTROY_WITH_ASSOCIATED_RESOURCES_SELECTIVETo destroy a Droplet along with a sub-set of its associated resources, send a DELETE request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/selective` endpoint. The JSON body of the request should include `reserved_ips`, `snapshots`, `volumes`, or `volume_snapshots` keys each set to an array of IDs for the associated resources to be destroyed. The IDs can be found by querying the Droplet's associated resources. Any associated resource not included in the request will remain and continue to accrue changes on your account. A successful response will include a 202 response code and no content. Use the status endpoint to check on the success or failure of the destruction of the individual resources.

To destroy a Droplet along with a sub-set of its associated resources, send a DELETE request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/selective` endpoint. The JSON body of the request should include `reserved_ips`, `snapshots`, `volumes`, or `volume_snapshots` keys each set to an array of IDs for the associated resources to be destroyed. The IDs can be found by querying the Droplet's associated resources. Any associated resource not included in the request will remain and continue to accrue changes on your account. A successful response will include a 202 response code and no content. Use the status endpoint to check on the success or failure of the destruction of the individual resources.

Authentication

Connected account required

Scopes

droplet:deleteblock_storage:deleteblock_storage_snapshot:deleteimage:deletereserved_ip:delete

Tags

Droplets
Retrieve an Existing DropletDIGITALOCEAN_DROPLETS_GETTo show information about an individual Droplet, send a GET request to `/v2/droplets/$DROPLET_ID`.

To show information about an individual Droplet, send a GET request to `/v2/droplets/$DROPLET_ID`.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
Retrieve the Backup Policy for an Existing DropletDIGITALOCEAN_DROPLETS_GET_BACKUP_POLICYTo show information about an individual Droplet's backup policy, send a GET request to `/v2/droplets/$DROPLET_ID/backups/policy`.

To show information about an individual Droplet's backup policy, send a GET request to `/v2/droplets/$DROPLET_ID/backups/policy`.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
Check Status of a Droplet Destroy with Associated Resources RequestDIGITALOCEAN_DROPLETS_GET_DESTROY_ASSOCIATED_RESOURCES_STATUSTo check on the status of a request to destroy a Droplet with its associated resources, send a GET request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/status` endpoint.

To check on the status of a request to destroy a Droplet with its associated resources, send a GET request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/status` endpoint.

Authentication

Connected account required

Scopes

droplet:delete

Tags

Droplets
List All DropletsDIGITALOCEAN_DROPLETS_LISTTo list all Droplets in your account, send a GET request to `/v2/droplets`. The response body will be a JSON object with a key of `droplets`. This will be set to an array containing objects each representing a Droplet. These will contain the standard Droplet attributes. ### Filtering Results by Tag It's possible to request filtered results by including certain query parameters. To only list Droplets assigned to a specific tag, include the `tag_name` query parameter set to the name of the tag in your GET request. For example, `/v2/droplets?tag_name=$TAG_NAME`. ### GPU Droplets By default, only non-GPU Droplets are returned. To list only GPU Droplets, set the `type` query parameter to `gpus`. For example, `/v2/droplets?type=gpus`.

To list all Droplets in your account, send a GET request to `/v2/droplets`. The response body will be a JSON object with a key of `droplets`. This will be set to an array containing objects each representing a Droplet. These will contain the standard Droplet attributes. ### Filtering Results by Tag It's possible to request filtered results by including certain query parameters. To only list Droplets assigned to a specific tag, include the `tag_name` query parameter set to the name of the tag in your GET request. For example, `/v2/droplets?tag_name=$TAG_NAME`. ### GPU Droplets By default, only non-GPU Droplets are returned. To list only GPU Droplets, set the `type` query parameter to `gpus`. For example, `/v2/droplets?type=gpus`.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
List Associated Resources for a DropletDIGITALOCEAN_DROPLETS_LIST_ASSOCIATED_RESOURCESTo list the associated billable resources that can be destroyed along with a Droplet, send a GET request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources` endpoint. This endpoint will only return resources that you are authorized to see. For example, to see associated Reserved IPs, include the `reserved_ip:read` scope. The response will be a JSON object containing `snapshots`, `volumes`, and `volume_snapshots` keys. Each will be set to an array of objects containing information about the associated resources.

To list the associated billable resources that can be destroyed along with a Droplet, send a GET request to the `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources` endpoint. This endpoint will only return resources that you are authorized to see. For example, to see associated Reserved IPs, include the `reserved_ip:read` scope. The response will be a JSON object containing `snapshots`, `volumes`, and `volume_snapshots` keys. Each will be set to an array of objects containing information about the associated resources.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
List Backup Policies for All Existing DropletsDIGITALOCEAN_DROPLETS_LIST_BACKUP_POLICIESTo list information about the backup policies for all Droplets in the account, send a GET request to `/v2/droplets/backups/policies`.

To list information about the backup policies for all Droplets in the account, send a GET request to `/v2/droplets/backups/policies`.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
List Backups for a DropletDIGITALOCEAN_DROPLETS_LIST_BACKUPSTo retrieve any backups associated with a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/backups`. You will get back a JSON object that has a `backups` key. This will be set to an array of backup objects, each of which contain the standard Droplet backup attributes.

To retrieve any backups associated with a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/backups`. You will get back a JSON object that has a `backups` key. This will be set to an array of backup objects, each of which contain the standard Droplet backup attributes.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
List all Firewalls Applied to a DropletDIGITALOCEAN_DROPLETS_LIST_FIREWALLSTo retrieve a list of all firewalls available to a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/firewalls` The response will be a JSON object that has a key called `firewalls`. This will be set to an array of `firewall` objects, each of which contain the standard `firewall` attributes.

To retrieve a list of all firewalls available to a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/firewalls` The response will be a JSON object that has a key called `firewalls`. This will be set to an array of `firewall` objects, each of which contain the standard `firewall` attributes.

Authentication

Connected account required

Scopes

firewall:read

Tags

Droplets
List All Available Kernels for a DropletDIGITALOCEAN_DROPLETS_LIST_KERNELSTo retrieve a list of all kernels available to a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/kernels` The response will be a JSON object that has a key called `kernels`. This will be set to an array of `kernel` objects, each of which contain the standard `kernel` attributes.

To retrieve a list of all kernels available to a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/kernels` The response will be a JSON object that has a key called `kernels`. This will be set to an array of `kernel` objects, each of which contain the standard `kernel` attributes.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
List Neighbors for a DropletDIGITALOCEAN_DROPLETS_LIST_NEIGHBORSTo retrieve a list of any "neighbors" (i.e. Droplets that are co-located on the same physical hardware) for a specific Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/neighbors`. The results will be returned as a JSON object with a key of `droplets`. This will be set to an array containing objects representing any other Droplets that share the same physical hardware. An empty array indicates that the Droplet is not co-located any other Droplets associated with your account.

To retrieve a list of any "neighbors" (i.e. Droplets that are co-located on the same physical hardware) for a specific Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/neighbors`. The results will be returned as a JSON object with a key of `droplets`. This will be set to an array containing objects representing any other Droplets that share the same physical hardware. An empty array indicates that the Droplet is not co-located any other Droplets associated with your account.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
List All Droplet NeighborsDIGITALOCEAN_DROPLETS_LIST_NEIGHBORS_IDSTo retrieve a list of all Droplets that are co-located on the same physical hardware, send a GET request to `/v2/reports/droplet_neighbors_ids`. The results will be returned as a JSON object with a key of `neighbor_ids`. This will be set to an array of arrays. Each array will contain a set of Droplet IDs for Droplets that share a physical server. An empty array indicates that all Droplets associated with your account are located on separate physical hardware.

To retrieve a list of all Droplets that are co-located on the same physical hardware, send a GET request to `/v2/reports/droplet_neighbors_ids`. The results will be returned as a JSON object with a key of `neighbor_ids`. This will be set to an array of arrays. Each array will contain a set of Droplet IDs for Droplets that share a physical server. An empty array indicates that all Droplets associated with your account are located on separate physical hardware.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
List Snapshots for a DropletDIGITALOCEAN_DROPLETS_LIST_SNAPSHOTSTo retrieve the snapshots that have been created from a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/snapshots`. You will get back a JSON object that has a `snapshots` key. This will be set to an array of snapshot objects, each of which contain the standard Droplet snapshot attributes.

To retrieve the snapshots that have been created from a Droplet, send a GET request to `/v2/droplets/$DROPLET_ID/snapshots`. You will get back a JSON object that has a `snapshots` key. This will be set to an array of snapshot objects, each of which contain the standard Droplet snapshot attributes.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
List Supported Droplet Backup PoliciesDIGITALOCEAN_DROPLETS_LIST_SUPPORTED_BACKUP_POLICIESTo retrieve a list of all supported Droplet backup policies, send a GET request to `/v2/droplets/backups/supported_policies`.

To retrieve a list of all supported Droplet backup policies, send a GET request to `/v2/droplets/backups/supported_policies`.

Authentication

Connected account required

Scopes

droplet:read

Tags

Droplets
Add Rules to a FirewallDIGITALOCEAN_FIREWALLS_ADD_RULESTo add additional access rules to a firewall, send a POST request to `/v2/firewalls/$FIREWALL_ID/rules`. The body of the request may include an inbound_rules and/or outbound_rules attribute containing an array of rules to be added. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To add additional access rules to a firewall, send a POST request to `/v2/firewalls/$FIREWALL_ID/rules`. The body of the request may include an inbound_rules and/or outbound_rules attribute containing an array of rules to be added. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

firewall:update

Tags

Firewalls
Add Tags to a FirewallDIGITALOCEAN_FIREWALLS_ADD_TAGSTo assign a tag representing a group of Droplets to a firewall, send a POST request to `/v2/firewalls/$FIREWALL_ID/tags`. In the body of the request, there should be a `tags` attribute containing a list of tag names. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To assign a tag representing a group of Droplets to a firewall, send a POST request to `/v2/firewalls/$FIREWALL_ID/tags`. In the body of the request, there should be a `tags` attribute containing a list of tag names. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

firewall:update

Tags

Firewalls
Add Droplets to a FirewallDIGITALOCEAN_FIREWALLS_ASSIGN_DROPLETSTo assign a Droplet to a firewall, send a POST request to `/v2/firewalls/$FIREWALL_ID/droplets`. In the body of the request, there should be a `droplet_ids` attribute containing a list of Droplet IDs. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To assign a Droplet to a firewall, send a POST request to `/v2/firewalls/$FIREWALL_ID/droplets`. In the body of the request, there should be a `droplet_ids` attribute containing a list of Droplet IDs. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

firewall:update

Tags

Firewalls
Create a New FirewallDIGITALOCEAN_FIREWALLS_CREATETo create a new firewall, send a POST request to `/v2/firewalls`. The request must contain at least one inbound or outbound access rule.

To create a new firewall, send a POST request to `/v2/firewalls`. The request must contain at least one inbound or outbound access rule.

Authentication

Connected account required

Scopes

firewall:create

Tags

Firewalls
Delete a FirewallDIGITALOCEAN_FIREWALLS_DELETETo delete a firewall send a DELETE request to `/v2/firewalls/$FIREWALL_ID`. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To delete a firewall send a DELETE request to `/v2/firewalls/$FIREWALL_ID`. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

firewall:delete

Tags

Firewalls
Remove Droplets from a FirewallDIGITALOCEAN_FIREWALLS_DELETE_DROPLETSTo remove a Droplet from a firewall, send a DELETE request to `/v2/firewalls/$FIREWALL_ID/droplets`. In the body of the request, there should be a `droplet_ids` attribute containing a list of Droplet IDs. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To remove a Droplet from a firewall, send a DELETE request to `/v2/firewalls/$FIREWALL_ID/droplets`. In the body of the request, there should be a `droplet_ids` attribute containing a list of Droplet IDs. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

firewall:update

Tags

Firewalls
Remove Rules from a FirewallDIGITALOCEAN_FIREWALLS_DELETE_RULESTo remove access rules from a firewall, send a DELETE request to `/v2/firewalls/$FIREWALL_ID/rules`. The body of the request may include an `inbound_rules` and/or `outbound_rules` attribute containing an array of rules to be removed. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To remove access rules from a firewall, send a DELETE request to `/v2/firewalls/$FIREWALL_ID/rules`. The body of the request may include an `inbound_rules` and/or `outbound_rules` attribute containing an array of rules to be removed. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

firewall:update

Tags

Firewalls
Remove Tags from a FirewallDIGITALOCEAN_FIREWALLS_DELETE_TAGSTo remove a tag representing a group of Droplets from a firewall, send a DELETE request to `/v2/firewalls/$FIREWALL_ID/tags`. In the body of the request, there should be a `tags` attribute containing a list of tag names. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To remove a tag representing a group of Droplets from a firewall, send a DELETE request to `/v2/firewalls/$FIREWALL_ID/tags`. In the body of the request, there should be a `tags` attribute containing a list of tag names. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

firewall:update

Tags

Firewalls
Retrieve an Existing FirewallDIGITALOCEAN_FIREWALLS_GETTo show information about an existing firewall, send a GET request to `/v2/firewalls/$FIREWALL_ID`.

To show information about an existing firewall, send a GET request to `/v2/firewalls/$FIREWALL_ID`.

Authentication

Connected account required

Scopes

firewall:read

Tags

Firewalls
List All FirewallsDIGITALOCEAN_FIREWALLS_LISTTo list all of the firewalls available on your account, send a GET request to `/v2/firewalls`.

To list all of the firewalls available on your account, send a GET request to `/v2/firewalls`.

Authentication

Connected account required

Scopes

firewall:read

Tags

Firewalls
Update a FirewallDIGITALOCEAN_FIREWALLS_UPDATETo update the configuration of an existing firewall, send a PUT request to `/v2/firewalls/$FIREWALL_ID`. The request should contain a full representation of the firewall including existing attributes. **Note that any attributes that are not provided will be reset to their default values.** <br><br>You must have read access (e.g. `droplet:read`) to all resources attached to the firewall to successfully update the firewall.

To update the configuration of an existing firewall, send a PUT request to `/v2/firewalls/$FIREWALL_ID`. The request should contain a full representation of the firewall including existing attributes. **Note that any attributes that are not provided will be reset to their default values.** <br><br>You must have read access (e.g. `droplet:read`) to all resources attached to the firewall to successfully update the firewall.

Authentication

Connected account required

Scopes

firewall:update

Tags

Firewalls
Retrieve an Existing Floating IP ActionDIGITALOCEAN_FLOATING_IPS_ACTION_GETTo retrieve the status of a floating IP action, send a GET request to `/v2/floating_ips/$FLOATING_IP/actions/$ACTION_ID`.

To retrieve the status of a floating IP action, send a GET request to `/v2/floating_ips/$FLOATING_IP/actions/$ACTION_ID`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Floating IP Actions
List All Actions for a Floating IPDIGITALOCEAN_FLOATING_IPS_ACTION_LISTTo retrieve all actions that have been executed on a floating IP, send a GET request to `/v2/floating_ips/$FLOATING_IP/actions`.

To retrieve all actions that have been executed on a floating IP, send a GET request to `/v2/floating_ips/$FLOATING_IP/actions`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Floating IP Actions
Initiate a Floating IP ActionDIGITALOCEAN_FLOATING_IPS_ACTION_POSTTo initiate an action on a floating IP send a POST request to `/v2/floating_ips/$FLOATING_IP/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types: | Action | Details |------------|-------- | `assign` | Assigns a floating IP to a Droplet | `unassign` | Unassign a floating IP from a Droplet

To initiate an action on a floating IP send a POST request to `/v2/floating_ips/$FLOATING_IP/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types: | Action | Details |------------|-------- | `assign` | Assigns a floating IP to a Droplet | `unassign` | Unassign a floating IP from a Droplet

Authentication

Connected account required

Scopes

reserved_ip:update

Tags

Floating IP Actions
Create a New Floating IPDIGITALOCEAN_FLOATING_IPS_CREATEOn creation, a floating IP must be either assigned to a Droplet or reserved to a region. * To create a new floating IP assigned to a Droplet, send a POST request to `/v2/floating_ips` with the `droplet_id` attribute. * To create a new floating IP reserved to a region, send a POST request to `/v2/floating_ips` with the `region` attribute.

On creation, a floating IP must be either assigned to a Droplet or reserved to a region. * To create a new floating IP assigned to a Droplet, send a POST request to `/v2/floating_ips` with the `droplet_id` attribute. * To create a new floating IP reserved to a region, send a POST request to `/v2/floating_ips` with the `region` attribute.

Authentication

Connected account required

Scopes

reserved_ip:create

Tags

Floating IPs
Delete a Floating IPDIGITALOCEAN_FLOATING_IPS_DELETETo delete a floating IP and remove it from your account, send a DELETE request to `/v2/floating_ips/$FLOATING_IP_ADDR`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete a floating IP and remove it from your account, send a DELETE request to `/v2/floating_ips/$FLOATING_IP_ADDR`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

reserved_ip:delete

Tags

Floating IPs
Retrieve an Existing Floating IPDIGITALOCEAN_FLOATING_IPS_GETTo show information about a floating IP, send a GET request to `/v2/floating_ips/$FLOATING_IP_ADDR`.

To show information about a floating IP, send a GET request to `/v2/floating_ips/$FLOATING_IP_ADDR`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Floating IPs
List All Floating IPsDIGITALOCEAN_FLOATING_IPS_LISTTo list all of the floating IPs available on your account, send a GET request to `/v2/floating_ips`.

To list all of the floating IPs available on your account, send a GET request to `/v2/floating_ips`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Floating IPs
Create a Namespace Access KeyDIGITALOCEAN_FUNCTIONS_ACCESS_KEY_CREATECreates a new access key for a serverless functions namespace. The access key can be used to authenticate requests to the namespace's functions. The secret key is only returned once upon creation. To create an access key, send a POST request to `/v2/functions/namespaces/{namespace_id}/keys`.

Creates a new access key for a serverless functions namespace. The access key can be used to authenticate requests to the namespace's functions. The secret key is only returned once upon creation. To create an access key, send a POST request to `/v2/functions/namespaces/{namespace_id}/keys`.

Authentication

Connected account required

Scopes

function:admin

Tags

Functions
Delete a Namespace Access KeyDIGITALOCEAN_FUNCTIONS_ACCESS_KEY_DELETEDeletes an access key for a serverless functions namespace. To delete an access key, send a DELETE request to `/v2/functions/namespaces/{namespace_id}/keys/{key_id}`.

Deletes an access key for a serverless functions namespace. To delete an access key, send a DELETE request to `/v2/functions/namespaces/{namespace_id}/keys/{key_id}`.

Authentication

Connected account required

Scopes

function:admin

Tags

Functions
List Namespace Access KeysDIGITALOCEAN_FUNCTIONS_ACCESS_KEY_LISTLists all access keys for a serverless functions namespace. To list access keys, send a GET request to `/v2/functions/namespaces/{namespace_id}/keys`.

Lists all access keys for a serverless functions namespace. To list access keys, send a GET request to `/v2/functions/namespaces/{namespace_id}/keys`.

Authentication

Connected account required

Scopes

function:admin

Tags

Functions
Update a Namespace Access KeyDIGITALOCEAN_FUNCTIONS_ACCESS_KEY_UPDATEUpdates the name of an access key for a serverless functions namespace. To update an access key, send a PUT request to `/v2/functions/namespaces/{namespace_id}/keys/{key_id}`.

Updates the name of an access key for a serverless functions namespace. To update an access key, send a PUT request to `/v2/functions/namespaces/{namespace_id}/keys/{key_id}`.

Authentication

Connected account required

Scopes

function:admin

Tags

Functions
Create NamespaceDIGITALOCEAN_FUNCTIONS_CREATE_NAMESPACECreates a new serverless functions namespace in the desired region and associates it with the provided label. A namespace is a collection of functions and their associated packages, triggers, and project specifications. To create a namespace, send a POST request to `/v2/functions/namespaces` with the `region` and `label` properties.

Creates a new serverless functions namespace in the desired region and associates it with the provided label. A namespace is a collection of functions and their associated packages, triggers, and project specifications. To create a namespace, send a POST request to `/v2/functions/namespaces` with the `region` and `label` properties.

Authentication

Connected account required

Scopes

function:createfunction:admin

Tags

Functions
Create TriggerDIGITALOCEAN_FUNCTIONS_CREATE_TRIGGERCreates a new trigger for a given function in a namespace. To create a trigger, send a POST request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers` with the `name`, `function`, `type`, `is_enabled` and `scheduled_details` properties.

Creates a new trigger for a given function in a namespace. To create a trigger, send a POST request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers` with the `name`, `function`, `type`, `is_enabled` and `scheduled_details` properties.

Authentication

Connected account required

Scopes

function:createfunction:admin

Tags

Functions
Delete NamespaceDIGITALOCEAN_FUNCTIONS_DELETE_NAMESPACEDeletes the given namespace. When a namespace is deleted all assets, in the namespace are deleted, this includes packages, functions and triggers. Deleting a namespace is a destructive operation and assets in the namespace are not recoverable after deletion. Some metadata is retained, such as activations, or soft deleted for reporting purposes. To delete namespace, send a DELETE request to `/v2/functions/namespaces/$NAMESPACE_ID`. A successful deletion returns a 204 response.

Deletes the given namespace. When a namespace is deleted all assets, in the namespace are deleted, this includes packages, functions and triggers. Deleting a namespace is a destructive operation and assets in the namespace are not recoverable after deletion. Some metadata is retained, such as activations, or soft deleted for reporting purposes. To delete namespace, send a DELETE request to `/v2/functions/namespaces/$NAMESPACE_ID`. A successful deletion returns a 204 response.

Authentication

Connected account required

Scopes

function:deletefunction:admin

Tags

Functions
Delete TriggerDIGITALOCEAN_FUNCTIONS_DELETE_TRIGGERDeletes the given trigger. To delete trigger, send a DELETE request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME`. A successful deletion returns a 204 response.

Deletes the given trigger. To delete trigger, send a DELETE request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME`. A successful deletion returns a 204 response.

Authentication

Connected account required

Scopes

function:deletefunction:admin

Tags

Functions
Get NamespaceDIGITALOCEAN_FUNCTIONS_GET_NAMESPACEGets the namespace details for the given namespace UUID. To get namespace details, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID` with no parameters.

Gets the namespace details for the given namespace UUID. To get namespace details, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID` with no parameters.

Authentication

Connected account required

Scopes

function:admin

Tags

Functions
Get TriggerDIGITALOCEAN_FUNCTIONS_GET_TRIGGERGets the trigger details. To get the trigger details, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME`.

Gets the trigger details. To get the trigger details, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME`.

Authentication

Connected account required

Scopes

function:readfunction:admin

Tags

Functions
List NamespacesDIGITALOCEAN_FUNCTIONS_LIST_NAMESPACESReturns a list of namespaces associated with the current user. To get all namespaces, send a GET request to `/v2/functions/namespaces`.

Returns a list of namespaces associated with the current user. To get all namespaces, send a GET request to `/v2/functions/namespaces`.

Authentication

Connected account required

Scopes

function:readfunction:admin

Tags

Functions
List TriggersDIGITALOCEAN_FUNCTIONS_LIST_TRIGGERSReturns a list of triggers associated with the current user and namespace. To get all triggers, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers`.

Returns a list of triggers associated with the current user and namespace. To get all triggers, send a GET request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers`.

Authentication

Connected account required

Scopes

function:readfunction:admin

Tags

Functions
Update TriggerDIGITALOCEAN_FUNCTIONS_UPDATE_TRIGGERUpdates the details of the given trigger. To update a trigger, send a PUT request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME` with new values for the `is_enabled ` or `scheduled_details` properties.

Updates the details of the given trigger. To update a trigger, send a PUT request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME` with new values for the `is_enabled ` or `scheduled_details` properties.

Authentication

Connected account required

Scopes

function:updatefunction:admin

Tags

Functions
Add Agent Route to an AgentDIGITALOCEAN_GENAI_ATTACH_AGENTTo add an agent route to an agent, send a POST request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.

To add an agent route to an agent, send a POST request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Add Function Route to an AgentDIGITALOCEAN_GENAI_ATTACH_AGENT_FUNCTIONTo create a function route for an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/functions`.

To create a function route for an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/functions`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Attach Guardrails to an AgentDIGITALOCEAN_GENAI_ATTACH_AGENT_GUARDRAILSTo attach guardrails to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/guardrails`.

To attach guardrails to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/guardrails`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Attach Knowledge Base to an AgentDIGITALOCEAN_GENAI_ATTACH_KNOWLEDGE_BASETo attach a knowledge base to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}`

To attach a knowledge base to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}`

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Attach Knowledge Bases to an AgentDIGITALOCEAN_GENAI_ATTACH_KNOWLEDGE_BASESTo attach knowledge bases to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases`

To attach knowledge bases to an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases`

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Cancel Indexing Job for a Knowledge BaseDIGITALOCEAN_GENAI_CANCEL_INDEXING_JOBTo cancel an indexing job for a knowledge base, send a PUT request to `/v2/gen-ai/indexing_jobs/{uuid}/cancel`.

To cancel an indexing job for a knowledge base, send a PUT request to `/v2/gen-ai/indexing_jobs/{uuid}/cancel`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Cancel Model Evaluation RunDIGITALOCEAN_GENAI_CANCEL_MODEL_EVALUATION_RUNTo cancel an in-progress model evaluation run, send a PUT request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}/cancel`.

To cancel an in-progress model evaluation run, send a PUT request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}/cancel`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Create an AgentDIGITALOCEAN_GENAI_CREATE_AGENTTo create a new agent, send a POST request to `/v2/gen-ai/agents`. The response body contains a JSON object with the newly created agent object.

To create a new agent, send a POST request to `/v2/gen-ai/agents`. The response body contains a JSON object with the newly created agent object.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create an Agent API KeyDIGITALOCEAN_GENAI_CREATE_AGENT_API_KEYTo create an agent API key, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/api_keys`.

To create an agent API key, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/api_keys`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create Anthropic API KeyDIGITALOCEAN_GENAI_CREATE_ANTHROPIC_API_KEYTo create an Anthropic API key, send a POST request to `/v2/gen-ai/anthropic/keys`.

To create an Anthropic API key, send a POST request to `/v2/gen-ai/anthropic/keys`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create Custom Evaluation MetricDIGITALOCEAN_GENAI_CREATE_CUSTOM_EVALUATION_METRICTo create a custom LLM-as-judge metric for model evaluation, send a POST request to `/v2/gen-ai/custom_evaluation_metrics`.

To create a custom LLM-as-judge metric for model evaluation, send a POST request to `/v2/gen-ai/custom_evaluation_metrics`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create Presigned URLs for Data Source File UploadDIGITALOCEAN_GENAI_CREATE_DATA_SOURCE_FILE_UPLOAD_PRESIGNED_URLSTo create presigned URLs for knowledge base data source file upload, send a POST request to `/v2/gen-ai/knowledge_bases/data_sources/file_upload_presigned_urls`.

To create presigned URLs for knowledge base data source file upload, send a POST request to `/v2/gen-ai/knowledge_bases/data_sources/file_upload_presigned_urls`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create Evaluation DatasetDIGITALOCEAN_GENAI_CREATE_EVALUATION_DATASETTo create an evaluation dataset, send a POST request to `/v2/gen-ai/evaluation_datasets`.

To create an evaluation dataset, send a POST request to `/v2/gen-ai/evaluation_datasets`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create Presigned URLs for Evaluation Dataset File UploadDIGITALOCEAN_GENAI_CREATE_EVALUATION_DATASET_FILE_UPLOAD_PRESIGNED_URLSTo create presigned URLs for evaluation dataset file upload, send a POST request to `/v2/gen-ai/evaluation_datasets/file_upload_presigned_urls`.

To create presigned URLs for evaluation dataset file upload, send a POST request to `/v2/gen-ai/evaluation_datasets/file_upload_presigned_urls`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create Evaluation Test Case.DIGITALOCEAN_GENAI_CREATE_EVALUATION_TEST_CASETo create an evaluation test-case send a POST request to `/v2/gen-ai/evaluation_test_cases`.

To create an evaluation test-case send a POST request to `/v2/gen-ai/evaluation_test_cases`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Start Indexing Job for a Knowledge BaseDIGITALOCEAN_GENAI_CREATE_INDEXING_JOBTo start an indexing job for a knowledge base, send a POST request to `/v2/gen-ai/indexing_jobs`.

To start an indexing job for a knowledge base, send a POST request to `/v2/gen-ai/indexing_jobs`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create a Knowledge BaseDIGITALOCEAN_GENAI_CREATE_KNOWLEDGE_BASETo create a knowledge base, send a POST request to `/v2/gen-ai/knowledge_bases`.

To create a knowledge base, send a POST request to `/v2/gen-ai/knowledge_bases`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Add Data Source to a Knowledge BaseDIGITALOCEAN_GENAI_CREATE_KNOWLEDGE_BASE_DATA_SOURCETo add a data source to a knowledge base, send a POST request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources`.

To add a data source to a knowledge base, send a POST request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create a Model API KeyDIGITALOCEAN_GENAI_CREATE_MODEL_API_KEY**Note: This endpoint is deprecated and has been retired. All requests return a `410 gone` response.** Creating model API keys through this endpoint is no longer supported. To create a model access key, visit the manage page in the control panel. Previously, you could create a model API key by sending a POST request to `/v2/gen-ai/models/api_keys`.

**Note: This endpoint is deprecated and has been retired. All requests return a `410 gone` response.** Creating model API keys through this endpoint is no longer supported. To create a model access key, visit the manage page in the control panel. Previously, you could create a model API key by sending a POST request to `/v2/gen-ai/models/api_keys`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create Presigned URLs for Model Evaluation Dataset File UploadDIGITALOCEAN_GENAI_CREATE_MODEL_EVAL_DATASET_UPLOAD_PRESIGNED_URLSTo create presigned URLs for model evaluation dataset file upload, send a POST request to `/v2/genai/model_evaluation/datasets/file_upload_presigned_urls`.

To create presigned URLs for model evaluation dataset file upload, send a POST request to `/v2/genai/model_evaluation/datasets/file_upload_presigned_urls`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create Model Evaluation RunDIGITALOCEAN_GENAI_CREATE_MODEL_EVALUATION_RUNTo create a model evaluation run, send a POST request to `/v2/genai/model_evaluation_runs`.

To create a model evaluation run, send a POST request to `/v2/genai/model_evaluation_runs`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create a Model RouterDIGITALOCEAN_GENAI_CREATE_MODEL_ROUTERTo create a model router, send a POST request to `/v2/gen-ai/models/routers`.

To create a model router, send a POST request to `/v2/gen-ai/models/routers`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Get Oauth2 Dropbox TokensDIGITALOCEAN_GENAI_CREATE_OAUTH2_DROPBOX_TOKENSTo obtain the refresh token, needed for creation of data sources, send a GET request to `/v2/gen-ai/oauth2/dropbox/tokens`. Pass the code you obtrained from the oauth flow in the field 'code'

To obtain the refresh token, needed for creation of data sources, send a GET request to `/v2/gen-ai/oauth2/dropbox/tokens`. Pass the code you obtrained from the oauth flow in the field 'code'

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create OpenAI API KeyDIGITALOCEAN_GENAI_CREATE_OPENAI_API_KEYTo create an OpenAI API key, send a POST request to `/v2/gen-ai/openai/keys`.

To create an OpenAI API key, send a POST request to `/v2/gen-ai/openai/keys`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create scheduled indexing for knowledge baseDIGITALOCEAN_GENAI_CREATE_SCHEDULED_INDEXINGTo create scheduled indexing for a knowledge base, send a POST request to `/v2/gen-ai/scheduled-indexing`.

To create scheduled indexing for a knowledge base, send a POST request to `/v2/gen-ai/scheduled-indexing`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Create a WorkspaceDIGITALOCEAN_GENAI_CREATE_WORKSPACETo create a new workspace, send a POST request to `/v2/gen-ai/workspaces`. The response body contains a JSON object with the newly created workspace object.

To create a new workspace, send a POST request to `/v2/gen-ai/workspaces`. The response body contains a JSON object with the newly created workspace object.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Delete an AgentDIGITALOCEAN_GENAI_DELETE_AGENTTo delete an agent, send a DELETE request to `/v2/gen-ai/agents/{uuid}`.

To delete an agent, send a DELETE request to `/v2/gen-ai/agents/{uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete API Key for an AgentDIGITALOCEAN_GENAI_DELETE_AGENT_API_KEYTo delete an API key for an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}`.

To delete an API key for an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Anthropic API KeyDIGITALOCEAN_GENAI_DELETE_ANTHROPIC_API_KEYTo delete an Anthropic API key, send a DELETE request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.

To delete an Anthropic API key, send a DELETE request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Custom Evaluation MetricDIGITALOCEAN_GENAI_DELETE_CUSTOM_EVALUATION_METRICTo soft-delete a custom model evaluation metric, send a DELETE request to `/v2/gen-ai/custom_evaluation_metrics/{metric_uuid}`.

To soft-delete a custom model evaluation metric, send a DELETE request to `/v2/gen-ai/custom_evaluation_metrics/{metric_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Custom ModelDIGITALOCEAN_GENAI_DELETE_CUSTOM_MODELTo delete a custom model, send a DELETE request to `/v2/genai/custom_models/{uuid}`.

To delete a custom model, send a DELETE request to `/v2/genai/custom_models/{uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Evaluation DatasetDIGITALOCEAN_GENAI_DELETE_EVALUATION_DATASETTo delete an evaluation dataset, send a DELETE request to `/v2/genai/evaluation_datasets/{dataset_uuid}`. This works for both model and agent evaluation datasets.

To delete an evaluation dataset, send a DELETE request to `/v2/genai/evaluation_datasets/{dataset_uuid}`. This works for both model and agent evaluation datasets.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete a Knowledge BaseDIGITALOCEAN_GENAI_DELETE_KNOWLEDGE_BASETo delete a knowledge base, send a DELETE request to `/v2/gen-ai/knowledge_bases/{uuid}`.

To delete a knowledge base, send a DELETE request to `/v2/gen-ai/knowledge_bases/{uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete a Data Source from a Knowledge BaseDIGITALOCEAN_GENAI_DELETE_KNOWLEDGE_BASE_DATA_SOURCETo delete a data source from a knowledge base, send a DELETE request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}`.

To delete a data source from a knowledge base, send a DELETE request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete API Key for a ModelDIGITALOCEAN_GENAI_DELETE_MODEL_API_KEYTo delete an API key for a model, send a DELETE request to `/v2/gen-ai/models/api_keys/{api_key_uuid}`.

To delete an API key for a model, send a DELETE request to `/v2/gen-ai/models/api_keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Model Evaluation PresetDIGITALOCEAN_GENAI_DELETE_MODEL_EVALUATION_PRESETTo delete a saved model evaluation preset, send a DELETE request to `/v2/gen-ai/model_evaluation_presets/{eval_preset_uuid}`.

To delete a saved model evaluation preset, send a DELETE request to `/v2/gen-ai/model_evaluation_presets/{eval_preset_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Model Evaluation RunDIGITALOCEAN_GENAI_DELETE_MODEL_EVALUATION_RUNTo delete a model evaluation run, send a DELETE request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}`. The run must be in a terminal status (`successful`, `partially_successful`, `failed`, or `cancelled`). For runs still in progress, either wait for the run to finish or cancel it, then retry the delete once the run reaches a terminal status.

To delete a model evaluation run, send a DELETE request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}`. The run must be in a terminal status (`successful`, `partially_successful`, `failed`, or `cancelled`). For runs still in progress, either wait for the run to finish or cancel it, then retry the delete once the run reaches a terminal status.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete a Model RouterDIGITALOCEAN_GENAI_DELETE_MODEL_ROUTERTo delete a model router, send a DELETE request to `/v2/gen-ai/models/routers/{uuid}`.

To delete a model router, send a DELETE request to `/v2/gen-ai/models/routers/{uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete OpenAI API KeyDIGITALOCEAN_GENAI_DELETE_OPENAI_API_KEYTo delete an OpenAI API key, send a DELETE request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.

To delete an OpenAI API key, send a DELETE request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Scheduled IndexingDIGITALOCEAN_GENAI_DELETE_SCHEDULED_INDEXINGDelete Scheduled Indexing for knowledge base, send a DELETE request to `/v2/gen-ai/scheduled-indexing/{uuid}`.

Delete Scheduled Indexing for knowledge base, send a DELETE request to `/v2/gen-ai/scheduled-indexing/{uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete a WorkspaceDIGITALOCEAN_GENAI_DELETE_WORKSPACETo delete a workspace, send a DELETE request to `/v2/gen-ai/workspace/{workspace_uuid}`.

To delete a workspace, send a DELETE request to `/v2/gen-ai/workspace/{workspace_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Agent Route for an AgentDIGITALOCEAN_GENAI_DETACH_AGENTTo delete an agent route from a parent agent, send a DELETE request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.

To delete an agent route from a parent agent, send a DELETE request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Delete Function Route for an AgentDIGITALOCEAN_GENAI_DETACH_AGENT_FUNCTIONTo delete a function route from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}`.

To delete a function route from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Detach a Guardrail from an AgentDIGITALOCEAN_GENAI_DETACH_AGENT_GUARDRAILTo detach a guardrail from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/guardrails/{guardrail_uuid}`.

To detach a guardrail from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/guardrails/{guardrail_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Detach Knowledge Base from an AgentDIGITALOCEAN_GENAI_DETACH_KNOWLEDGE_BASETo detach a knowledge base from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}`.

To detach a knowledge base from an agent, send a DELETE request to `/v2/gen-ai/agents/{agent_uuid}/knowledge_bases/{knowledge_base_uuid}`.

Authentication

Connected account required

Scopes

genai:delete

Tags

GradientAI Platform
Retrieve an Existing AgentDIGITALOCEAN_GENAI_GET_AGENTTo retrieve details of an agent, GET request to `/v2/gen-ai/agents/{uuid}`. The response body is a JSON object containing the agent.

To retrieve details of an agent, GET request to `/v2/gen-ai/agents/{uuid}`. The response body is a JSON object containing the agent.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
View Agent RoutesDIGITALOCEAN_GENAI_GET_AGENT_CHILDRENTo view agent routes for an agent, send a GET requtest to `/v2/gen-ai/agents/{uuid}/child_agents`.

To view agent routes for an agent, send a GET requtest to `/v2/gen-ai/agents/{uuid}/child_agents`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Agent UsageDIGITALOCEAN_GENAI_GET_AGENT_USAGETo get agent usage, send a GET request to `/v2/gen-ai/agents/{uuid}/usage`. Returns usage metrics for the specified agent within the provided time range.

To get agent usage, send a GET request to `/v2/gen-ai/agents/{uuid}/usage`. Returns usage metrics for the specified agent within the provided time range.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Anthropic API KeyDIGITALOCEAN_GENAI_GET_ANTHROPIC_API_KEYTo retrieve details of an Anthropic API key, send a GET request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.

To retrieve details of an Anthropic API key, send a GET request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Custom ModelDIGITALOCEAN_GENAI_GET_CUSTOM_MODELTo retrieve details of a custom model, send a GET request to `/v2/gen-ai/custom_models/{uuid}`.

To retrieve details of a custom model, send a GET request to `/v2/gen-ai/custom_models/{uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Download URL for Evaluation DatasetDIGITALOCEAN_GENAI_GET_EVALUATION_DATASET_DOWNLOAD_URLTo get a presigned download URL for an evaluation dataset, send a GET request to `/v2/genai/evaluation_datasets/{dataset_uuid}/download_url`.

To get a presigned download URL for an evaluation dataset, send a GET request to `/v2/genai/evaluation_datasets/{dataset_uuid}/download_url`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve Information About an Existing Evaluation RunDIGITALOCEAN_GENAI_GET_EVALUATION_RUNTo retrive information about an existing evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}`.

To retrive information about an existing evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve Results of an Evaluation Run PromptDIGITALOCEAN_GENAI_GET_EVALUATION_RUN_PROMPT_RESULTSTo retrieve results of an evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id}`.

To retrieve results of an evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results/{prompt_id}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve Results of an Evaluation RunDIGITALOCEAN_GENAI_GET_EVALUATION_RUN_RESULTSTo retrieve results of an evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results`.

To retrieve results of an evaluation run, send a GET request to `/v2/gen-ai/evaluation_runs/{evaluation_run_uuid}/results`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve Information About an Existing Evaluation Test CaseDIGITALOCEAN_GENAI_GET_EVALUATION_TEST_CASETo retrive information about an existing evaluation test case, send a GET request to `/v2/gen-ai/evaluation_test_case/{test_case_uuid}`.

To retrive information about an existing evaluation test case, send a GET request to `/v2/gen-ai/evaluation_test_case/{test_case_uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve Status of Indexing Job for a Knowledge BaseDIGITALOCEAN_GENAI_GET_INDEXING_JOBTo get status of an indexing Job for a knowledge base, send a GET request to `/v2/gen-ai/indexing_jobs/{uuid}`.

To get status of an indexing Job for a knowledge base, send a GET request to `/v2/gen-ai/indexing_jobs/{uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Signed URL for Indexing Job DetailsDIGITALOCEAN_GENAI_GET_INDEXING_JOB_DETAILS_SIGNED_URLTo get a signed URL for indexing job details, send a GET request to `/v2/gen-ai/indexing_jobs/{uuid}/details_signed_url`.

To get a signed URL for indexing job details, send a GET request to `/v2/gen-ai/indexing_jobs/{uuid}/details_signed_url`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve Information About an Existing Knowledge BaseDIGITALOCEAN_GENAI_GET_KNOWLEDGE_BASETo retrive information about an existing knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{uuid}`.

To retrive information about an existing knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Model Catalog CardDIGITALOCEAN_GENAI_GET_MODEL_CATALOG_CARDReturns detailed information for a specific model in the catalog including capabilities, pricing, and code examples.

Returns detailed information for a specific model in the catalog including capabilities, pricing, and code examples.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve Model Evaluation PresetDIGITALOCEAN_GENAI_GET_MODEL_EVALUATION_PRESETTo retrieve a saved model evaluation preset, send a GET request to `/v2/genai/model_evaluation_presets/{eval_preset_uuid}`.

To retrieve a saved model evaluation preset, send a GET request to `/v2/genai/model_evaluation_presets/{eval_preset_uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve Model Evaluation RunDIGITALOCEAN_GENAI_GET_MODEL_EVALUATION_RUNTo retrieve a model evaluation run, send a GET request to `/v2/genai/model_evaluation_runs/{eval_run_uuid}`.

To retrieve a model evaluation run, send a GET request to `/v2/genai/model_evaluation_runs/{eval_run_uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Download URL for Model Evaluation Run ResultsDIGITALOCEAN_GENAI_GET_MODEL_EVALUATION_RUN_RESULTS_DOWNLOAD_URLTo get a presigned download URL for model evaluation run results (gzip-compressed JSON), send a GET request to `/v2/genai/model_evaluation_runs/{eval_run_uuid}/results/download_url`.

To get a presigned download URL for model evaluation run results (gzip-compressed JSON), send a GET request to `/v2/genai/model_evaluation_runs/{eval_run_uuid}/results/download_url`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve an Existing Model RouterDIGITALOCEAN_GENAI_GET_MODEL_ROUTERTo retrieve details of a model router, send a GET request to `/v2/gen-ai/models/routers/{uuid}`.

To retrieve details of a model router, send a GET request to `/v2/gen-ai/models/routers/{uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Oauth2 URLDIGITALOCEAN_GENAI_GET_OAUTH2_URLTo generate an Oauth2-URL for use with your localhost, send a GET request to `/v2/gen-ai/oauth2/url`. Pass 'http://localhost:3000 as redirect_url

To generate an Oauth2-URL for use with your localhost, send a GET request to `/v2/gen-ai/oauth2/url`. Pass 'http://localhost:3000 as redirect_url

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get OpenAI API KeyDIGITALOCEAN_GENAI_GET_OPENAI_API_KEYTo retrieve details of an OpenAI API key, send a GET request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.

To retrieve details of an OpenAI API key, send a GET request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Get Scheduled Indexing for Knowledge BaseDIGITALOCEAN_GENAI_GET_SCHEDULED_INDEXINGGet Scheduled Indexing for knowledge base using knoweldge base uuid, send a GET request to `/v2/gen-ai/scheduled-indexing/knowledge-base/{knowledge_base_uuid}`.

Get Scheduled Indexing for knowledge base using knoweldge base uuid, send a GET request to `/v2/gen-ai/scheduled-indexing/knowledge-base/{knowledge_base_uuid}`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Retrieve an Existing WorkspaceDIGITALOCEAN_GENAI_GET_WORKSPACETo retrieve details of a workspace, GET request to `/v2/gen-ai/workspaces/{workspace_uuid}`. The response body is a JSON object containing the workspace.

To retrieve details of a workspace, GET request to `/v2/gen-ai/workspaces/{workspace_uuid}`. The response body is a JSON object containing the workspace.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Import Custom ModelDIGITALOCEAN_GENAI_IMPORT_CUSTOM_MODELTo import a custom model, send a POST request to `/v2/gen-ai/custom_models/import`.

To import a custom model, send a POST request to `/v2/gen-ai/custom_models/import`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
List Agent API KeysDIGITALOCEAN_GENAI_LIST_AGENT_API_KEYSTo list all agent API keys, send a GET request to `/v2/gen-ai/agents/{agent_uuid}/api_keys`.

To list all agent API keys, send a GET request to `/v2/gen-ai/agents/{agent_uuid}/api_keys`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Agent VersionsDIGITALOCEAN_GENAI_LIST_AGENT_VERSIONSTo list all agent versions, send a GET request to `/v2/gen-ai/agents/{uuid}/versions`.

To list all agent versions, send a GET request to `/v2/gen-ai/agents/{uuid}/versions`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List AgentsDIGITALOCEAN_GENAI_LIST_AGENTSTo list all agents, send a GET request to `/v2/gen-ai/agents`.

To list all agents, send a GET request to `/v2/gen-ai/agents`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List agents by Anthropic keyDIGITALOCEAN_GENAI_LIST_AGENTS_BY_ANTHROPIC_KEYList Agents by Anthropic Key.

List Agents by Anthropic Key.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List agents by OpenAI keyDIGITALOCEAN_GENAI_LIST_AGENTS_BY_OPENAI_KEYList Agents by OpenAI Key.

List Agents by OpenAI Key.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List agents by WorkspaceDIGITALOCEAN_GENAI_LIST_AGENTS_BY_WORKSPACETo list all agents by a Workspace, send a GET request to `/v2/gen-ai/workspaces/{workspace_uuid}/agents`.

To list all agents by a Workspace, send a GET request to `/v2/gen-ai/workspaces/{workspace_uuid}/agents`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Anthropic API KeysDIGITALOCEAN_GENAI_LIST_ANTHROPIC_API_KEYSTo list all Anthropic API keys, send a GET request to `/v2/gen-ai/anthropic/keys`.

To list all Anthropic API keys, send a GET request to `/v2/gen-ai/anthropic/keys`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Custom ModelsDIGITALOCEAN_GENAI_LIST_CUSTOM_MODELSTo list custom models, send a GET request to `/v2/gen-ai/custom_models`.

To list custom models, send a GET request to `/v2/gen-ai/custom_models`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Datacenter RegionsDIGITALOCEAN_GENAI_LIST_DATACENTER_REGIONSTo list all datacenter regions, send a GET request to `/v2/gen-ai/regions`.

To list all datacenter regions, send a GET request to `/v2/gen-ai/regions`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Evaluation DatasetsDIGITALOCEAN_GENAI_LIST_EVALUATION_DATASETSTo list evaluation datasets, send a GET request to `/v2/gen-ai/evaluation_datasets`.

To list evaluation datasets, send a GET request to `/v2/gen-ai/evaluation_datasets`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Evaluation MetricsDIGITALOCEAN_GENAI_LIST_EVALUATION_METRICSTo list all evaluation metrics, send a GET request to `/v2/gen-ai/evaluation_metrics`.

To list all evaluation metrics, send a GET request to `/v2/gen-ai/evaluation_metrics`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Evaluation Runs by Test CaseDIGITALOCEAN_GENAI_LIST_EVALUATION_RUNS_BY_TEST_CASETo list all evaluation runs by test case, send a GET request to `/v2/gen-ai/evaluation_test_cases/{evaluation_test_case_uuid}/evaluation_runs`.

To list all evaluation runs by test case, send a GET request to `/v2/gen-ai/evaluation_test_cases/{evaluation_test_case_uuid}/evaluation_runs`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Evaluation Test CasesDIGITALOCEAN_GENAI_LIST_EVALUATION_TEST_CASESTo list all evaluation test cases, send a GET request to `/v2/gen-ai/evaluation_test_cases`.

To list all evaluation test cases, send a GET request to `/v2/gen-ai/evaluation_test_cases`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Evaluation Test Cases by WorkspaceDIGITALOCEAN_GENAI_LIST_EVALUATION_TEST_CASES_BY_WORKSPACETo list all evaluation test cases by a workspace, send a GET request to `/v2/gen-ai/workspaces/{workspace_uuid}/evaluation_test_cases`.

To list all evaluation test cases by a workspace, send a GET request to `/v2/gen-ai/workspaces/{workspace_uuid}/evaluation_test_cases`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Data Sources for Indexing Job for a Knowledge BaseDIGITALOCEAN_GENAI_LIST_INDEXING_JOB_DATA_SOURCESTo list all datasources for an indexing job, send a GET request to `/v2/gen-ai/indexing_jobs/{indexing_job_uuid}/data_sources`.

To list all datasources for an indexing job, send a GET request to `/v2/gen-ai/indexing_jobs/{indexing_job_uuid}/data_sources`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Indexing Jobs for a Knowledge BaseDIGITALOCEAN_GENAI_LIST_INDEXING_JOBSTo list all indexing jobs for a knowledge base, send a GET request to `/v2/gen-ai/indexing_jobs`.

To list all indexing jobs for a knowledge base, send a GET request to `/v2/gen-ai/indexing_jobs`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Indexing Jobs for a Knowledge BaseDIGITALOCEAN_GENAI_LIST_INDEXING_JOBS_BY_KNOWLEDGE_BASETo list latest 15 indexing jobs for a knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/indexing_jobs`.

To list latest 15 indexing jobs for a knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/indexing_jobs`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Data Sources for a Knowledge BaseDIGITALOCEAN_GENAI_LIST_KNOWLEDGE_BASE_DATA_SOURCESTo list all data sources for a knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources`.

To list all data sources for a knowledge base, send a GET request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Knowledge BasesDIGITALOCEAN_GENAI_LIST_KNOWLEDGE_BASESTo list all knowledge bases, send a GET request to `/v2/gen-ai/knowledge_bases`.

To list all knowledge bases, send a GET request to `/v2/gen-ai/knowledge_bases`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Model API KeysDIGITALOCEAN_GENAI_LIST_MODEL_API_KEYSTo list all model API keys, send a GET request to `/v2/gen-ai/models/api_keys`.

To list all model API keys, send a GET request to `/v2/gen-ai/models/api_keys`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Model CatalogDIGITALOCEAN_GENAI_LIST_MODEL_CATALOGReturns all available models.

Returns all available models.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Model Evaluation MetricsDIGITALOCEAN_GENAI_LIST_MODEL_EVALUATION_METRICSTo list all available metrics for model evaluation, send a GET request to `/v2/genai/model_evaluation_metrics`.

To list all available metrics for model evaluation, send a GET request to `/v2/genai/model_evaluation_metrics`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Model Evaluation PresetsDIGITALOCEAN_GENAI_LIST_MODEL_EVALUATION_PRESETSTo list all saved model evaluation presets, send a GET request to `/v2/genai/model_evaluation_presets`.

To list all saved model evaluation presets, send a GET request to `/v2/genai/model_evaluation_presets`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Model Evaluation RunsDIGITALOCEAN_GENAI_LIST_MODEL_EVALUATION_RUNSTo list model evaluation runs, send a GET request to `/v2/genai/model_evaluation_runs`.

To list model evaluation runs, send a GET request to `/v2/genai/model_evaluation_runs`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Model Router PresetsDIGITALOCEAN_GENAI_LIST_MODEL_ROUTER_PRESETSTo list model router presets, send a GET request to `/v2/gen-ai/models/routers/presets`.

To list model router presets, send a GET request to `/v2/gen-ai/models/routers/presets`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Model Router Task PresetsDIGITALOCEAN_GENAI_LIST_MODEL_ROUTER_TASK_PRESETSTo list model router task presets, send a GET request to `/v2/gen-ai/models/routers/tasks/presets`.

To list model router task presets, send a GET request to `/v2/gen-ai/models/routers/tasks/presets`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Model RoutersDIGITALOCEAN_GENAI_LIST_MODEL_ROUTERSTo list model routers, send a GET request to `/v2/gen-ai/models/routers`.

To list model routers, send a GET request to `/v2/gen-ai/models/routers`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List Available ModelsDIGITALOCEAN_GENAI_LIST_MODELSTo list all models, send a GET request to `/v2/gen-ai/models`.

To list all models, send a GET request to `/v2/gen-ai/models`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List OpenAI API KeysDIGITALOCEAN_GENAI_LIST_OPENAI_API_KEYSTo list all OpenAI API keys, send a GET request to `/v2/gen-ai/openai/keys`.

To list all OpenAI API keys, send a GET request to `/v2/gen-ai/openai/keys`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
List WorkspacesDIGITALOCEAN_GENAI_LIST_WORKSPACESTo list all workspaces, send a GET request to `/v2/gen-ai/workspaces`.

To list all workspaces, send a GET request to `/v2/gen-ai/workspaces`.

Authentication

Connected account required

Scopes

genai:read

Tags

GradientAI Platform
Regenerate API Key for an AgentDIGITALOCEAN_GENAI_REGENERATE_AGENT_API_KEYTo regenerate an agent API key, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}/regenerate`.

To regenerate an agent API key, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}/regenerate`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Regenerate API Key for a ModelDIGITALOCEAN_GENAI_REGENERATE_MODEL_API_KEYTo regenerate a model API key, send a PUT request to `/v2/gen-ai/models/api_keys/{api_key_uuid}/regenerate`.

To regenerate a model API key, send a PUT request to `/v2/gen-ai/models/api_keys/{api_key_uuid}/regenerate`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Rollback to Agent VersionDIGITALOCEAN_GENAI_ROLLBACK_TO_AGENT_VERSIONTo update to a specific agent version, send a PUT request to `/v2/gen-ai/agents/{uuid}/versions`.

To update to a specific agent version, send a PUT request to `/v2/gen-ai/agents/{uuid}/versions`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Run an Evaluation Test CaseDIGITALOCEAN_GENAI_RUN_EVALUATION_TEST_CASETo run an evaluation test case, send a POST request to `/v2/gen-ai/evaluation_runs`.

To run an evaluation test case, send a POST request to `/v2/gen-ai/evaluation_runs`.

Authentication

Connected account required

Scopes

genai:create

Tags

GradientAI Platform
Update an AgentDIGITALOCEAN_GENAI_UPDATE_AGENTTo update an agent, send a PUT request to `/v2/gen-ai/agents/{uuid}`. The response body is a JSON object containing the agent.

To update an agent, send a PUT request to `/v2/gen-ai/agents/{uuid}`. The response body is a JSON object containing the agent.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update API Key for an AgentDIGITALOCEAN_GENAI_UPDATE_AGENT_API_KEYTo update an agent API key, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}`.

To update an agent API key, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update Agent StatusDIGITALOCEAN_GENAI_UPDATE_AGENT_DEPLOYMENT_VISIBILITYCheck whether an agent is public or private. To update the agent status, send a PUT request to `/v2/gen-ai/agents/{uuid}/deployment_visibility`.

Check whether an agent is public or private. To update the agent status, send a PUT request to `/v2/gen-ai/agents/{uuid}/deployment_visibility`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update Function Route for an AgentDIGITALOCEAN_GENAI_UPDATE_AGENT_FUNCTIONTo update the function route, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}`.

To update the function route, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Move Agents to a WorkspaceDIGITALOCEAN_GENAI_UPDATE_AGENTS_WORKSPACETo move all listed agents a given workspace, send a PUT request to `/v2/gen-ai/workspaces/{workspace_uuid}/agents`.

To move all listed agents a given workspace, send a PUT request to `/v2/gen-ai/workspaces/{workspace_uuid}/agents`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update Anthropic API KeyDIGITALOCEAN_GENAI_UPDATE_ANTHROPIC_API_KEYTo update an Anthropic API key, send a PUT request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.

To update an Anthropic API key, send a PUT request to `/v2/gen-ai/anthropic/keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update Agent Route for an AgentDIGITALOCEAN_GENAI_UPDATE_ATTACHED_AGENTTo update an agent route for an agent, send a PUT request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.

To update an agent route for an agent, send a PUT request to `/v2/gen-ai/agents/{parent_agent_uuid}/child_agents/{child_agent_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update Custom Evaluation MetricDIGITALOCEAN_GENAI_UPDATE_CUSTOM_EVALUATION_METRICTo update a custom metric (issuing a new metric UUID), send a PUT request to `/v2/gen-ai/custom_evaluation_metrics/{metric_uuid}`.

To update a custom metric (issuing a new metric UUID), send a PUT request to `/v2/gen-ai/custom_evaluation_metrics/{metric_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update Custom Model MetadataDIGITALOCEAN_GENAI_UPDATE_CUSTOM_MODEL_METADATATo update custom model metadata, send a PATCH request to `/v2/gen-ai/custom_models/{uuid}/metadata`.

To update custom model metadata, send a PATCH request to `/v2/gen-ai/custom_models/{uuid}/metadata`.

Authentication

Connected account required

Scopes

genai:default

Tags

GradientAI Platform
Update an Evaluation Test Case.DIGITALOCEAN_GENAI_UPDATE_EVALUATION_TEST_CASETo update an evaluation test-case send a PUT request to `/v2/gen-ai/evaluation_test_cases/{test_case_uuid}`.

To update an evaluation test-case send a PUT request to `/v2/gen-ai/evaluation_test_cases/{test_case_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update a Knowledge BaseDIGITALOCEAN_GENAI_UPDATE_KNOWLEDGE_BASETo update a knowledge base, send a PUT request to `/v2/gen-ai/knowledge_bases/{uuid}`.

To update a knowledge base, send a PUT request to `/v2/gen-ai/knowledge_bases/{uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update Data Source optionsDIGITALOCEAN_GENAI_UPDATE_KNOWLEDGE_BASE_DATA_SOURCETo update a data source (e.g. chunking options), send a PUT request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}`.

To update a data source (e.g. chunking options), send a PUT request to `/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sources/{data_source_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update API Key for a ModelDIGITALOCEAN_GENAI_UPDATE_MODEL_API_KEYTo update a model API key, send a PUT request to `/v2/gen-ai/models/api_keys/{api_key_uuid}`.

To update a model API key, send a PUT request to `/v2/gen-ai/models/api_keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update Model Evaluation RunDIGITALOCEAN_GENAI_UPDATE_MODEL_EVALUATION_RUNTo update a model evaluation run's display name, send a PATCH request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}`.

To update a model evaluation run's display name, send a PATCH request to `/v2/gen-ai/model_evaluation_runs/{eval_run_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update a Model RouterDIGITALOCEAN_GENAI_UPDATE_MODEL_ROUTERTo update a model router, send a PUT request to `/v2/gen-ai/models/routers/{uuid}`.

To update a model router, send a PUT request to `/v2/gen-ai/models/routers/{uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update OpenAI API KeyDIGITALOCEAN_GENAI_UPDATE_OPENAI_API_KEYTo update an OpenAI API key, send a PUT request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.

To update an OpenAI API key, send a PUT request to `/v2/gen-ai/openai/keys/{api_key_uuid}`.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Update a WorkspaceDIGITALOCEAN_GENAI_UPDATE_WORKSPACETo update a workspace, send a PUT request to `/v2/gen-ai/workspaces/{workspace_uuid}`. The response body is a JSON object containing the workspace.

To update a workspace, send a PUT request to `/v2/gen-ai/workspaces/{workspace_uuid}`. The response body is a JSON object containing the workspace.

Authentication

Connected account required

Scopes

genai:update

Tags

GradientAI Platform
Retrieve an Existing ActionDIGITALOCEAN_IMAGE_ACTIONS_GETTo retrieve the status of an image action, send a GET request to `/v2/images/$IMAGE_ID/actions/$IMAGE_ACTION_ID`.

To retrieve the status of an image action, send a GET request to `/v2/images/$IMAGE_ID/actions/$IMAGE_ACTION_ID`.

Authentication

Connected account required

Scopes

image:read

Tags

Image Actions
List All Actions for an ImageDIGITALOCEAN_IMAGE_ACTIONS_LISTTo retrieve all actions that have been executed on an image, send a GET request to `/v2/images/$IMAGE_ID/actions`.

To retrieve all actions that have been executed on an image, send a GET request to `/v2/images/$IMAGE_ID/actions`.

Authentication

Connected account required

Scopes

image:read

Tags

Image Actions
Initiate an Image ActionDIGITALOCEAN_IMAGE_ACTIONS_POSTThe following actions are available on an Image. ## Convert an Image to a Snapshot To convert an image, for example, a backup to a snapshot, send a POST request to `/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `convert`. ## Transfer an Image To transfer an image to another region, send a POST request to `/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `transfer` and set `region` attribute to the slug identifier of the region you wish to transfer to.

The following actions are available on an Image. ## Convert an Image to a Snapshot To convert an image, for example, a backup to a snapshot, send a POST request to `/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `convert`. ## Transfer an Image To transfer an image to another region, send a POST request to `/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `transfer` and set `region` attribute to the slug identifier of the region you wish to transfer to.

Authentication

Connected account required

Scopes

image:update

Tags

Image Actions
Create a Custom ImageDIGITALOCEAN_IMAGES_CREATE_CUSTOMTo create a new custom image, send a POST request to /v2/images. The body must contain a url attribute pointing to a Linux virtual machine image to be imported into DigitalOcean. The image must be in the raw, qcow2, vhdx, vdi, or vmdk format. It may be compressed using gzip or bzip2 and must be smaller than 100 GB after being decompressed.

To create a new custom image, send a POST request to /v2/images. The body must contain a url attribute pointing to a Linux virtual machine image to be imported into DigitalOcean. The image must be in the raw, qcow2, vhdx, vdi, or vmdk format. It may be compressed using gzip or bzip2 and must be smaller than 100 GB after being decompressed.

Authentication

Connected account required

Scopes

image:create

Tags

Images
Delete an ImageDIGITALOCEAN_IMAGES_DELETETo delete a snapshot or custom image, send a `DELETE` request to `/v2/images/$IMAGE_ID`.

To delete a snapshot or custom image, send a `DELETE` request to `/v2/images/$IMAGE_ID`.

Authentication

Connected account required

Scopes

image:delete

Tags

Images
Retrieve an Existing ImageDIGITALOCEAN_IMAGES_GETTo retrieve information about an image, send a `GET` request to `/v2/images/$IDENTIFIER`.

To retrieve information about an image, send a `GET` request to `/v2/images/$IDENTIFIER`.

Authentication

Connected account required

Scopes

image:read

Tags

Images
List All ImagesDIGITALOCEAN_IMAGES_LISTTo list all of the images available on your account, send a GET request to /v2/images. ## Filtering Results ----- It's possible to request filtered results by including certain query parameters. **Image Type** Either 1-Click Application or OS Distribution images can be filtered by using the `type` query parameter. > Important: The `type` query parameter does not directly relate to the `type` attribute. To retrieve only ***distribution*** images, include the `type` query parameter set to distribution, `/v2/images?type=distribution`. To retrieve only ***application*** images, include the `type` query parameter set to application, `/v2/images?type=application`. **User Images** To retrieve only the private images of a user, include the `private` query parameter set to true, `/v2/images?private=true`. **Tags** To list all images assigned to a specific tag, include the `tag_name` query parameter set to the name of the tag in your GET request. For example, `/v2/images?tag_name=$TAG_NAME`.

To list all of the images available on your account, send a GET request to /v2/images. ## Filtering Results ----- It's possible to request filtered results by including certain query parameters. **Image Type** Either 1-Click Application or OS Distribution images can be filtered by using the `type` query parameter. > Important: The `type` query parameter does not directly relate to the `type` attribute. To retrieve only ***distribution*** images, include the `type` query parameter set to distribution, `/v2/images?type=distribution`. To retrieve only ***application*** images, include the `type` query parameter set to application, `/v2/images?type=application`. **User Images** To retrieve only the private images of a user, include the `private` query parameter set to true, `/v2/images?private=true`. **Tags** To list all images assigned to a specific tag, include the `tag_name` query parameter set to the name of the tag in your GET request. For example, `/v2/images?tag_name=$TAG_NAME`.

Authentication

Connected account required

Scopes

image:read

Tags

Images
Accept an Image Account TransferDIGITALOCEAN_IMAGES_POST_ACCOUNT_TRANSFER_ACCEPTTo accept an account transfer for an image, send a POST request to `/v2/images/$IMAGE_ID/account_transfer/accept`.

To accept an account transfer for an image, send a POST request to `/v2/images/$IMAGE_ID/account_transfer/accept`.

Authentication

Connected account required

Scopes

image:create

Tags

Images
Cancel an Image Account TransferDIGITALOCEAN_IMAGES_POST_ACCOUNT_TRANSFER_CANCELTo cancel an account transfer for an image, send a POST request to `/v2/images/$IMAGE_ID/account_transfer/cancel`. Only the sender of an image account transfer can cancel the transfer. If the transfer is canceled, the image will remain in the sender's account and will not be transferred to the recipient.

To cancel an account transfer for an image, send a POST request to `/v2/images/$IMAGE_ID/account_transfer/cancel`. Only the sender of an image account transfer can cancel the transfer. If the transfer is canceled, the image will remain in the sender's account and will not be transferred to the recipient.

Authentication

Connected account required

Scopes

image:update

Tags

Images
Initiate an Image Account TransferDIGITALOCEAN_IMAGES_POST_ACCOUNT_TRANSFER_CREATETo initiate an account transfer for an image, send a POST request to `/v2/images/$IMAGE_ID/account_transfer`. Only snapshot images may be transferred by this endpoint to another account. An image account transfer always has exactly one recipient, specified in the request body. The recipient can be one of the following: * A DigitalOcean account, denoted by `recipient_email` in the request body. The recipient will receive an email with instructions to accept the transfer. Once the recipient accepts the transfer, the image will be moved to their account. * A DigitalOcean team, denoted by `recipient_uuid` in the request body. If the user has sufficient permissions in the recipient team, the transfer will be automatically accepted and the image will be moved to the recipient team's account. Otherwise, the transfer will be pending until a user with sufficient permissions in the recipient team accepts the transfer.

To initiate an account transfer for an image, send a POST request to `/v2/images/$IMAGE_ID/account_transfer`. Only snapshot images may be transferred by this endpoint to another account. An image account transfer always has exactly one recipient, specified in the request body. The recipient can be one of the following: * A DigitalOcean account, denoted by `recipient_email` in the request body. The recipient will receive an email with instructions to accept the transfer. Once the recipient accepts the transfer, the image will be moved to their account. * A DigitalOcean team, denoted by `recipient_uuid` in the request body. If the user has sufficient permissions in the recipient team, the transfer will be automatically accepted and the image will be moved to the recipient team's account. Otherwise, the transfer will be pending until a user with sufficient permissions in the recipient team accepts the transfer.

Authentication

Connected account required

Scopes

image:updateimage:delete

Tags

Images
Decline an Image Account TransferDIGITALOCEAN_IMAGES_POST_ACCOUNT_TRANSFER_DECLINETo decline an account transfer for an image, send a POST request to `/v2/images/$IMAGE_ID/account_transfer/decline`. Only the recipient of an image account transfer can decline the transfer. If the transfer is declined, the image will remain in the sender's account and will not be transferred to the recipient.

To decline an account transfer for an image, send a POST request to `/v2/images/$IMAGE_ID/account_transfer/decline`. Only the recipient of an image account transfer can decline the transfer. If the transfer is declined, the image will remain in the sender's account and will not be transferred to the recipient.

Authentication

Connected account required

Scopes

image:create

Tags

Images
Update an ImageDIGITALOCEAN_IMAGES_UPDATETo update an image, send a `PUT` request to `/v2/images/$IMAGE_ID`. Set the `name` attribute to the new value you would like to use. For custom images, the `description` and `distribution` attributes may also be updated.

To update an image, send a `PUT` request to `/v2/images/$IMAGE_ID`. Set the `name` attribute to the new value you would like to use. For custom images, the `description` and `distribution` attributes may also be updated.

Authentication

Connected account required

Scopes

image:update

Tags

Images
Retrieve an Invoice by UUIDDIGITALOCEAN_INVOICES_GET_BY_UUIDTo retrieve the invoice items for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID`.

To retrieve the invoice items for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID`.

Authentication

Connected account required

Scopes

billing:read

Tags

Billing
Retrieve an Invoice CSV by UUIDDIGITALOCEAN_INVOICES_GET_CSV_BY_UUIDTo retrieve a CSV for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/csv`.

To retrieve a CSV for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/csv`.

Authentication

Connected account required

Scopes

billing:read

Tags

Billing
Retrieve an Invoice PDF by UUIDDIGITALOCEAN_INVOICES_GET_PDF_BY_UUIDTo retrieve a PDF for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/pdf`.

To retrieve a PDF for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/pdf`.

Authentication

Connected account required

Scopes

billing:read

Tags

Billing
Retrieve an Invoice Summary by UUIDDIGITALOCEAN_INVOICES_GET_SUMMARY_BY_UUIDTo retrieve a summary for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/summary`.

To retrieve a summary for an invoice, send a GET request to `/v2/customers/my/invoices/$INVOICE_UUID/summary`.

Authentication

Connected account required

Scopes

billing:read

Tags

Billing
List All InvoicesDIGITALOCEAN_INVOICES_LISTTo retrieve a list of all invoices, send a GET request to `/v2/customers/my/invoices`.

To retrieve a list of all invoices, send a GET request to `/v2/customers/my/invoices`.

Authentication

Connected account required

Scopes

billing:read

Tags

Billing
Add a Node Pool to a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_ADD_NODE_POOLTo add an additional node pool to a Kubernetes clusters, send a POST request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools` with the following attributes.

To add an additional node pool to a Kubernetes clusters, send a POST request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools` with the following attributes.

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Add Container Registries to Kubernetes ClustersDIGITALOCEAN_KUBERNETES_ADD_REGISTRIESTo integrate the container registries with Kubernetes clusters, send a POST request to `/v2/kubernetes/registries`.

To integrate the container registries with Kubernetes clusters, send a POST request to `/v2/kubernetes/registries`.

Authentication

Connected account required

Scopes

kubernetes:createkubernetes:update

Tags

Kubernetes
Add Container Registry to Kubernetes ClustersDIGITALOCEAN_KUBERNETES_ADD_REGISTRYTo integrate the container registry with Kubernetes clusters, send a POST request to `/v2/kubernetes/registry`.

To integrate the container registry with Kubernetes clusters, send a POST request to `/v2/kubernetes/registry`.

Authentication

Connected account required

Scopes

kubernetes:createkubernetes:update

Tags

Kubernetes
Create a New Kubernetes ClusterDIGITALOCEAN_KUBERNETES_CREATE_CLUSTERTo create a new Kubernetes cluster, send a POST request to `/v2/kubernetes/clusters`. The request must contain at least one node pool with at least one worker. The request may contain a maintenance window policy describing a time period when disruptive maintenance tasks may be carried out. Omitting the policy implies that a window will be chosen automatically. See [here](https://docs.digitalocean.com/products/kubernetes/how-to/upgrade-cluster/) for details.

To create a new Kubernetes cluster, send a POST request to `/v2/kubernetes/clusters`. The request must contain at least one node pool with at least one worker. The request may contain a maintenance window policy describing a time period when disruptive maintenance tasks may be carried out. Omitting the policy implies that a window will be chosen automatically. See [here](https://docs.digitalocean.com/products/kubernetes/how-to/upgrade-cluster/) for details.

Authentication

Connected account required

Scopes

kubernetes:create

Tags

Kubernetes
Delete a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_DELETE_CLUSTERTo delete a Kubernetes cluster and all services deployed to it, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID`. A 204 status code with no body will be returned in response to a successful request.

To delete a Kubernetes cluster and all services deployed to it, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID`. A 204 status code with no body will be returned in response to a successful request.

Authentication

Connected account required

Scopes

kubernetes:delete

Tags

Kubernetes
Delete a Node in a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_DELETE_NODETo delete a single node in a pool, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID/nodes/$NODE_ID`. Appending the `skip_drain=1` query parameter to the request causes node draining to be skipped. Omitting the query parameter or setting its value to `0` carries out draining prior to deletion. Appending the `replace=1` query parameter to the request causes the node to be replaced by a new one after deletion. Omitting the query parameter or setting its value to `0` deletes without replacement.

To delete a single node in a pool, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID/nodes/$NODE_ID`. Appending the `skip_drain=1` query parameter to the request causes node draining to be skipped. Omitting the query parameter or setting its value to `0` carries out draining prior to deletion. Appending the `replace=1` query parameter to the request causes the node to be replaced by a new one after deletion. Omitting the query parameter or setting its value to `0` deletes without replacement.

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Delete a Node Pool in a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_DELETE_NODE_POOLTo delete a node pool, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID`. A 204 status code with no body will be returned in response to a successful request. Nodes in the pool will subsequently be drained and deleted.

To delete a node pool, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID`. A 204 status code with no body will be returned in response to a successful request. Nodes in the pool will subsequently be drained and deleted.

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Delete a Cluster and All of its Associated Resources (Dangerous)DIGITALOCEAN_KUBERNETES_DESTROY_ASSOCIATED_RESOURCES_DANGEROUSTo delete a Kubernetes cluster with all of its associated resources, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/dangerous`. A 204 status code with no body will be returned in response to a successful request.

To delete a Kubernetes cluster with all of its associated resources, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/dangerous`. A 204 status code with no body will be returned in response to a successful request.

Authentication

Connected account required

Scopes

kubernetes:delete

Tags

Kubernetes
Selectively Delete a Cluster and its Associated ResourcesDIGITALOCEAN_KUBERNETES_DESTROY_ASSOCIATED_RESOURCES_SELECTIVETo delete a Kubernetes cluster along with a subset of its associated resources, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/selective`. The JSON body of the request should include `load_balancers`, `volumes`, or `volume_snapshots` keys each set to an array of IDs for the associated resources to be destroyed. The IDs can be found by querying the cluster's associated resources endpoint. Any associated resource not included in the request will remain and continue to accrue changes on your account.

To delete a Kubernetes cluster along with a subset of its associated resources, send a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/selective`. The JSON body of the request should include `load_balancers`, `volumes`, or `volume_snapshots` keys each set to an array of IDs for the associated resources to be destroyed. The IDs can be found by querying the cluster's associated resources endpoint. Any associated resource not included in the request will remain and continue to accrue changes on your account.

Authentication

Connected account required

Scopes

kubernetes:delete

Tags

Kubernetes
Retrieve Available Upgrades for an Existing Kubernetes ClusterDIGITALOCEAN_KUBERNETES_GET_AVAILABLE_UPGRADESTo determine whether a cluster can be upgraded, and the versions to which it can be upgraded, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`.

To determine whether a cluster can be upgraded, and the versions to which it can be upgraded, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
Retrieve an Existing Kubernetes ClusterDIGITALOCEAN_KUBERNETES_GET_CLUSTERTo show information about an existing Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID`.

To show information about an existing Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID`.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
Fetch Clusterlint Diagnostics for a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_GET_CLUSTER_LINT_RESULTSTo request clusterlint diagnostics for your cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint`. If the `run_id` query parameter is provided, then the diagnostics for the specific run is fetched. By default, the latest results are shown. To find out how to address clusterlint feedback, please refer to [the clusterlint check documentation](https://github.com/digitalocean/clusterlint/blob/master/checks.md).

To request clusterlint diagnostics for your cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint`. If the `run_id` query parameter is provided, then the diagnostics for the specific run is fetched. By default, the latest results are shown. To find out how to address clusterlint feedback, please refer to [the clusterlint check documentation](https://github.com/digitalocean/clusterlint/blob/master/checks.md).

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
Retrieve User Information for a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_GET_CLUSTER_USERTo show information the user associated with a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/user`.

To show information the user associated with a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/user`.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
Retrieve Credentials for a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_GET_CREDENTIALSThis endpoint returns a JSON object . It can be used to programmatically construct Kubernetes clients which cannot parse kubeconfig files. The resulting JSON object contains token-based authentication for clusters supporting it, and certificate-based authentication otherwise. For a list of supported versions and more information, see "[How to Connect to a DigitalOcean Kubernetes Cluster](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/)". To retrieve credentials for accessing a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/credentials`. Clusters supporting token-based authentication may define an expiration by passing a duration in seconds as a query parameter to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/credentials?expiry_seconds=$DURATION_IN_SECONDS`. If not set or 0, then the token will have a 7 day expiry. The query parameter has no impact in certificate-based authentication.

This endpoint returns a JSON object . It can be used to programmatically construct Kubernetes clients which cannot parse kubeconfig files. The resulting JSON object contains token-based authentication for clusters supporting it, and certificate-based authentication otherwise. For a list of supported versions and more information, see "[How to Connect to a DigitalOcean Kubernetes Cluster](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/)". To retrieve credentials for accessing a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/credentials`. Clusters supporting token-based authentication may define an expiration by passing a duration in seconds as a query parameter to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/credentials?expiry_seconds=$DURATION_IN_SECONDS`. If not set or 0, then the token will have a 7 day expiry. The query parameter has no impact in certificate-based authentication.

Authentication

Connected account required

Scopes

kubernetes:access_cluster

Tags

Kubernetes
Retrieve the kubeconfig for a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_GET_KUBECONFIGThis endpoint returns a kubeconfig file in YAML format. It can be used to connect to and administer the cluster using the Kubernetes command line tool, `kubectl`, or other programs supporting kubeconfig files (e.g., client libraries). The resulting kubeconfig file uses token-based authentication for clusters supporting it, and certificate-based authentication otherwise. For a list of supported versions and more information, see "[How to Connect to a DigitalOcean Kubernetes Cluster](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/)". To retrieve a kubeconfig file for use with a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig`. Clusters supporting token-based authentication may define an expiration by passing a duration in seconds as a query parameter to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig?expiry_seconds=$DURATION_IN_SECONDS`. If not set or 0, then the token will have a 7 day expiry. The query parameter has no impact for other kubeconfig types. Using an `sso` kubeconfig type requires `doctl` to be installed to handle the client side of the OAuth2 flow. Kubernetes Roles granted to a user are derived from that user's DigitalOcean role. Predefined roles (Owner, Member, Modifier etc.) have an automatic mapping to Kubernetes roles. Custom roles are not automatically mapped to any Kubernetes roles, and require [additional configuration](https://docs.digitalocean.com/products/kubernetes/how-to/set-up-custom-rolebindings/) by a cluster administrator.

This endpoint returns a kubeconfig file in YAML format. It can be used to connect to and administer the cluster using the Kubernetes command line tool, `kubectl`, or other programs supporting kubeconfig files (e.g., client libraries). The resulting kubeconfig file uses token-based authentication for clusters supporting it, and certificate-based authentication otherwise. For a list of supported versions and more information, see "[How to Connect to a DigitalOcean Kubernetes Cluster](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/)". To retrieve a kubeconfig file for use with a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig`. Clusters supporting token-based authentication may define an expiration by passing a duration in seconds as a query parameter to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig?expiry_seconds=$DURATION_IN_SECONDS`. If not set or 0, then the token will have a 7 day expiry. The query parameter has no impact for other kubeconfig types. Using an `sso` kubeconfig type requires `doctl` to be installed to handle the client side of the OAuth2 flow. Kubernetes Roles granted to a user are derived from that user's DigitalOcean role. Predefined roles (Owner, Member, Modifier etc.) have an automatic mapping to Kubernetes roles. Custom roles are not automatically mapped to any Kubernetes roles, and require [additional configuration](https://docs.digitalocean.com/products/kubernetes/how-to/set-up-custom-rolebindings/) by a cluster administrator.

Authentication

Connected account required

Scopes

kubernetes:access_cluster

Tags

Kubernetes
Retrieve a Node Pool for a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_GET_NODE_POOLTo show information about a specific node pool in a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID`.

To show information about a specific node pool in a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID`.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
Fetch Status Messages for a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_GET_STATUS_MESSAGESTo retrieve status messages for a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/status_messages`. Status messages inform users of any issues that come up during the cluster lifecycle.

To retrieve status messages for a Kubernetes cluster, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/status_messages`. Status messages inform users of any issues that come up during the cluster lifecycle.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
List Associated Resources for Cluster DeletionDIGITALOCEAN_KUBERNETES_LIST_ASSOCIATED_RESOURCESTo list the associated billable resources that can be destroyed along with a cluster, send a GET request to the `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources` endpoint.

To list the associated billable resources that can be destroyed along with a cluster, send a GET request to the `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources` endpoint.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
List All Kubernetes ClustersDIGITALOCEAN_KUBERNETES_LIST_CLUSTERSTo list all of the Kubernetes clusters on your account, send a GET request to `/v2/kubernetes/clusters`.

To list all of the Kubernetes clusters on your account, send a GET request to `/v2/kubernetes/clusters`.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
List All Node Pools in a Kubernetes ClustersDIGITALOCEAN_KUBERNETES_LIST_NODE_POOLSTo list all of the node pools in a Kubernetes clusters, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools`.

To list all of the node pools in a Kubernetes clusters, send a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools`.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
List Available Regions, Node Sizes, and Versions of KubernetesDIGITALOCEAN_KUBERNETES_LIST_OPTIONSTo list the versions of Kubernetes available for use, the regions that support Kubernetes, and the available node sizes, send a GET request to `/v2/kubernetes/options`.

To list the versions of Kubernetes available for use, the regions that support Kubernetes, and the available node sizes, send a GET request to `/v2/kubernetes/options`.

Authentication

Connected account required

Scopes

kubernetes:read

Tags

Kubernetes
Recycle a Kubernetes Node PoolDIGITALOCEAN_KUBERNETES_RECYCLE_NODE_POOLThe endpoint has been deprecated. Please use the DELETE `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID/nodes/$NODE_ID` method instead.

The endpoint has been deprecated. Please use the DELETE `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID/nodes/$NODE_ID` method instead.

Authentication

Connected account required

Scopes

kubernetes:delete

Tags

Kubernetes
Remove Container Registries from Kubernetes ClustersDIGITALOCEAN_KUBERNETES_REMOVE_REGISTRIESTo remove the container registries from Kubernetes clusters, send a DELETE request to `/v2/kubernetes/registries`.

To remove the container registries from Kubernetes clusters, send a DELETE request to `/v2/kubernetes/registries`.

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Remove Container Registry from Kubernetes ClustersDIGITALOCEAN_KUBERNETES_REMOVE_REGISTRYTo remove the container registry from Kubernetes clusters, send a DELETE request to `/v2/kubernetes/registry`.

To remove the container registry from Kubernetes clusters, send a DELETE request to `/v2/kubernetes/registry`.

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Run Clusterlint Checks on a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_RUN_CLUSTER_LINTClusterlint helps operators conform to Kubernetes best practices around resources, security and reliability to avoid common problems while operating or upgrading the clusters. To request a clusterlint run on your cluster, send a POST request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint`. This will run all checks present in the `doks` group by default, if a request body is not specified. Optionally specify the below attributes. For information about the available checks, please refer to [the clusterlint check documentation](https://github.com/digitalocean/clusterlint/blob/master/checks.md).

Clusterlint helps operators conform to Kubernetes best practices around resources, security and reliability to avoid common problems while operating or upgrading the clusters. To request a clusterlint run on your cluster, send a POST request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/clusterlint`. This will run all checks present in the `doks` group by default, if a request body is not specified. Optionally specify the below attributes. For information about the available checks, please refer to [the clusterlint check documentation](https://github.com/digitalocean/clusterlint/blob/master/checks.md).

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Update a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_UPDATE_CLUSTERTo update a Kubernetes cluster, send a PUT request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID` and specify one or more of the attributes below.

To update a Kubernetes cluster, send a PUT request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID` and specify one or more of the attributes below.

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Update a Node Pool in a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_UPDATE_NODE_POOLTo update the name of a node pool, edit the tags applied to it, or adjust its number of nodes, send a PUT request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID` with the following attributes.

To update the name of a node pool, edit the tags applied to it, or adjust its number of nodes, send a PUT request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID` with the following attributes.

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Upgrade a Kubernetes ClusterDIGITALOCEAN_KUBERNETES_UPGRADE_CLUSTERTo immediately upgrade a Kubernetes cluster to a newer patch release of Kubernetes, send a POST request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrade`. The body of the request must specify a version attribute. Available upgrade versions for a cluster can be fetched from `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`.

To immediately upgrade a Kubernetes cluster to a newer patch release of Kubernetes, send a POST request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrade`. The body of the request must specify a version attribute. Available upgrade versions for a cluster can be fetched from `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`.

Authentication

Connected account required

Scopes

kubernetes:update

Tags

Kubernetes
Add Droplets to a Load BalancerDIGITALOCEAN_LOAD_BALANCERS_ADD_DROPLETSTo assign a Droplet to a load balancer instance, send a POST request to `/v2/load_balancers/$LOAD_BALANCER_ID/droplets`. In the body of the request, there should be a `droplet_ids` attribute containing a list of Droplet IDs. Individual Droplets can not be added to a load balancer configured with a Droplet tag. Attempting to do so will result in a "422 Unprocessable Entity" response from the API. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To assign a Droplet to a load balancer instance, send a POST request to `/v2/load_balancers/$LOAD_BALANCER_ID/droplets`. In the body of the request, there should be a `droplet_ids` attribute containing a list of Droplet IDs. Individual Droplets can not be added to a load balancer configured with a Droplet tag. Attempting to do so will result in a "422 Unprocessable Entity" response from the API. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

load_balancer:update

Tags

Load Balancers
Add Forwarding Rules to a Load BalancerDIGITALOCEAN_LOAD_BALANCERS_ADD_FORWARDING_RULESTo add an additional forwarding rule to a load balancer instance, send a POST request to `/v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules`. In the body of the request, there should be a `forwarding_rules` attribute containing an array of rules to be added. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To add an additional forwarding rule to a load balancer instance, send a POST request to `/v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules`. In the body of the request, there should be a `forwarding_rules` attribute containing an array of rules to be added. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

load_balancer:update

Tags

Load Balancers
Create a New Load BalancerDIGITALOCEAN_LOAD_BALANCERS_CREATETo create a new load balancer instance, send a POST request to `/v2/load_balancers`. You can specify the Droplets that will sit behind the load balancer using one of two methods: * Set `droplet_ids` to a list of specific Droplet IDs. * Set `tag` to the name of a tag. All Droplets with this tag applied will be assigned to the load balancer. Additional Droplets will be automatically assigned as they are tagged. These methods are mutually exclusive.

To create a new load balancer instance, send a POST request to `/v2/load_balancers`. You can specify the Droplets that will sit behind the load balancer using one of two methods: * Set `droplet_ids` to a list of specific Droplet IDs. * Set `tag` to the name of a tag. All Droplets with this tag applied will be assigned to the load balancer. Additional Droplets will be automatically assigned as they are tagged. These methods are mutually exclusive.

Authentication

Connected account required

Scopes

load_balancer:create

Tags

Load Balancers
Delete a Load BalancerDIGITALOCEAN_LOAD_BALANCERS_DELETETo delete a load balancer instance, disassociating any Droplets assigned to it and removing it from your account, send a DELETE request to `/v2/load_balancers/$LOAD_BALANCER_ID`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete a load balancer instance, disassociating any Droplets assigned to it and removing it from your account, send a DELETE request to `/v2/load_balancers/$LOAD_BALANCER_ID`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

load_balancer:delete

Tags

Load Balancers
Delete a Global Load Balancer CDN CacheDIGITALOCEAN_LOAD_BALANCERS_DELETE_CACHETo delete a Global load balancer CDN cache, send a DELETE request to `/v2/load_balancers/$LOAD_BALANCER_ID/cache`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete a Global load balancer CDN cache, send a DELETE request to `/v2/load_balancers/$LOAD_BALANCER_ID/cache`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

load_balancer:delete

Tags

Load Balancers
Retrieve an Existing Load BalancerDIGITALOCEAN_LOAD_BALANCERS_GETTo show information about a load balancer instance, send a GET request to `/v2/load_balancers/$LOAD_BALANCER_ID`.

To show information about a load balancer instance, send a GET request to `/v2/load_balancers/$LOAD_BALANCER_ID`.

Authentication

Connected account required

Scopes

load_balancer:read

Tags

Load Balancers
List All Load BalancersDIGITALOCEAN_LOAD_BALANCERS_LISTTo list all of the load balancer instances on your account, send a GET request to `/v2/load_balancers`.

To list all of the load balancer instances on your account, send a GET request to `/v2/load_balancers`.

Authentication

Connected account required

Scopes

load_balancer:read

Tags

Load Balancers
Remove Droplets from a Load BalancerDIGITALOCEAN_LOAD_BALANCERS_REMOVE_DROPLETSTo remove a Droplet from a load balancer instance, send a DELETE request to `/v2/load_balancers/$LOAD_BALANCER_ID/droplets`. In the body of the request, there should be a `droplet_ids` attribute containing a list of Droplet IDs. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To remove a Droplet from a load balancer instance, send a DELETE request to `/v2/load_balancers/$LOAD_BALANCER_ID/droplets`. In the body of the request, there should be a `droplet_ids` attribute containing a list of Droplet IDs. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

load_balancer:update

Tags

Load Balancers
Remove Forwarding Rules from a Load BalancerDIGITALOCEAN_LOAD_BALANCERS_REMOVE_FORWARDING_RULESTo remove forwarding rules from a load balancer instance, send a DELETE request to `/v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules`. In the body of the request, there should be a `forwarding_rules` attribute containing an array of rules to be removed. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To remove forwarding rules from a load balancer instance, send a DELETE request to `/v2/load_balancers/$LOAD_BALANCER_ID/forwarding_rules`. In the body of the request, there should be a `forwarding_rules` attribute containing an array of rules to be removed. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

load_balancer:update

Tags

Load Balancers
Update a Load BalancerDIGITALOCEAN_LOAD_BALANCERS_UPDATETo update a load balancer's settings, send a PUT request to `/v2/load_balancers/$LOAD_BALANCER_ID`. The request should contain a full representation of the load balancer including existing attributes. It may contain _one of_ the `droplets_ids` or `tag` attributes as they are mutually exclusive. **Note that any attribute that is not provided will be reset to its default value.**

To update a load balancer's settings, send a PUT request to `/v2/load_balancers/$LOAD_BALANCER_ID`. The request should contain a full representation of the load balancer including existing attributes. It may contain _one of_ the `droplets_ids` or `tag` attributes as they are mutually exclusive. **Note that any attribute that is not provided will be reset to its default value.**

Authentication

Connected account required

Scopes

load_balancer:update

Tags

Load Balancers
Create Alert PolicyDIGITALOCEAN_MONITORING_CREATE_ALERT_POLICYTo create a new alert, send a POST request to `/v2/monitoring/alerts`.

To create a new alert, send a POST request to `/v2/monitoring/alerts`.

Authentication

Connected account required

Scopes

monitoring:create

Tags

Monitoring
Create Logging DestinationDIGITALOCEAN_MONITORING_CREATE_DESTINATIONTo create a new destination, send a POST request to `/v2/monitoring/sinks/destinations`.

To create a new destination, send a POST request to `/v2/monitoring/sinks/destinations`.

Authentication

Connected account required

Scopes

monitoring:create

Tags

Monitoring
Create SinkDIGITALOCEAN_MONITORING_CREATE_SINKTo create a new sink, send a POST request to `/v2/monitoring/sinks`. Forwards logs from the resources identified in `resources` to the specified pre-existing destination.

To create a new sink, send a POST request to `/v2/monitoring/sinks`. Forwards logs from the resources identified in `resources` to the specified pre-existing destination.

Authentication

Connected account required

Scopes

monitoring:create

Tags

Monitoring
Delete an Alert PolicyDIGITALOCEAN_MONITORING_DELETE_ALERT_POLICYTo delete an alert policy, send a DELETE request to `/v2/monitoring/alerts/{alert_uuid}`

To delete an alert policy, send a DELETE request to `/v2/monitoring/alerts/{alert_uuid}`

Authentication

Connected account required

Scopes

monitoring:delete

Tags

Monitoring
Delete Logging DestinationDIGITALOCEAN_MONITORING_DELETE_DESTINATIONTo delete a destination and all associated sinks, send a DELETE request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.

To delete a destination and all associated sinks, send a DELETE request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.

Authentication

Connected account required

Scopes

monitoring:delete

Tags

Monitoring
Delete SinkDIGITALOCEAN_MONITORING_DELETE_SINKTo delete a sink, send a DELETE request to `/v2/monitoring/sinks/${sink_uuid}`.

To delete a sink, send a DELETE request to `/v2/monitoring/sinks/${sink_uuid}`.

Authentication

Connected account required

Scopes

monitoring:delete

Tags

Monitoring
Retrieve an Existing Alert PolicyDIGITALOCEAN_MONITORING_GET_ALERT_POLICYTo retrieve a given alert policy, send a GET request to `/v2/monitoring/alerts/{alert_uuid}`

To retrieve a given alert policy, send a GET request to `/v2/monitoring/alerts/{alert_uuid}`

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get App CPU Percentage MetricsDIGITALOCEAN_MONITORING_GET_APP_CPUPERCENTAGE_METRICSTo retrieve cpu percentage metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/cpu_percentage`.

To retrieve cpu percentage metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/cpu_percentage`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get App Memory Percentage MetricsDIGITALOCEAN_MONITORING_GET_APP_MEMORY_PERCENTAGE_METRICSTo retrieve memory percentage metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/memory_percentage`.

To retrieve memory percentage metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/memory_percentage`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get App Restart Count MetricsDIGITALOCEAN_MONITORING_GET_APP_RESTART_COUNT_METRICS_YMLTo retrieve restart count metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/restart_count`.

To retrieve restart count metrics for a given app, send a GET request to `/v2/monitoring/metrics/apps/restart_count`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL CPU Usage MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_CPU_USAGERetrieve CPU usage (percent) for a MySQL cluster. Response is a time series of cluster-level CPU usage. Use **aggregate** to get avg, max, or min over the range.

Retrieve CPU usage (percent) for a MySQL cluster. Response is a time series of cluster-level CPU usage. Use **aggregate** to get avg, max, or min over the range.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Disk Usage MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_DISK_USAGERetrieve disk usage (percent) for a MySQL cluster. Use **aggregate** (avg, max, or min) over the time range.

Retrieve disk usage (percent) for a MySQL cluster. Use **aggregate** (avg, max, or min) over the time range.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Index vs Sequential Reads MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_INDEX_VS_SEQUENTIAL_READSRetrieve index vs sequential reads ratio (percent) for a MySQL service — i.e. percentage of reads using an index.

Retrieve index vs sequential reads ratio (percent) for a MySQL service — i.e. percentage of reads using an index.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Load Average MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_LOADRetrieve load metrics for a MySQL cluster. Use **metric** for the window: **load1** (1-minute), **load5** (5-minute), or **load15** (15-minute). Use **aggregate** to get either the average (avg) or maximum (max) over that window over the time range.

Retrieve load metrics for a MySQL cluster. Use **metric** for the window: **load1** (1-minute), **load5** (5-minute), or **load15** (15-minute). Use **aggregate** to get either the average (avg) or maximum (max) over that window over the time range.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Memory Usage MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_MEMORY_USAGERetrieve memory usage (percent) for a MySQL cluster. Use **aggregate** (avg, max, or min) over the time range.

Retrieve memory usage (percent) for a MySQL cluster. Use **aggregate** (avg, max, or min) over the time range.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Operations Throughput MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_OP_RATESRetrieve operations rate (per second) for a MySQL service. Use **metric** to choose select, insert, update, or delete.

Retrieve operations rate (per second) for a MySQL service. Use **metric** to choose select, insert, update, or delete.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Schema Latency MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_SCHEMA_LATENCYRetrieve table I/O latency (seconds) for a schema. Requires **schema** and **metric** (insert, fetch, update, delete).

Retrieve table I/O latency (seconds) for a schema. Requires **schema** and **metric** (insert, fetch, update, delete).

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Schema Throughput MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_SCHEMA_THROUGHPUTRetrieve table I/O throughput (rows per second) for a schema. Requires **schema** and **metric** (insert, fetch, update, delete).

Retrieve table I/O throughput (rows per second) for a schema. Requires **schema** and **metric** (insert, fetch, update, delete).

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Threads Active MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_THREADS_ACTIVERetrieve active (running) threads for a MySQL service.

Retrieve active (running) threads for a MySQL service.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Threads Connected MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_THREADS_CONNECTEDRetrieve current threads connected for a MySQL service (gauge).

Retrieve current threads connected for a MySQL service (gauge).

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Database MySQL Threads Created Rate MetricsDIGITALOCEAN_MONITORING_GET_DATABASE_MYSQL_THREADS_CREATED_RATERetrieve threads created rate for a MySQL service (per second).

Retrieve threads created rate for a MySQL service (per second).

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Logging DestinationDIGITALOCEAN_MONITORING_GET_DESTINATIONTo get the details of a destination, send a GET request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.

To get the details of a destination, send a GET request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Autoscale Pool Current Average CPU utilizationDIGITALOCEAN_MONITORING_GET_DROPLET_AUTOSCALE_CURRENT_CPU_UTILIZATION_YMLTo retrieve the current average CPU utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_cpu_utilization`.

To retrieve the current average CPU utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_cpu_utilization`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Autoscale Pool Current SizeDIGITALOCEAN_MONITORING_GET_DROPLET_AUTOSCALE_CURRENT_INSTANCESTo retrieve the current size for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_instances`.

To retrieve the current size for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_instances`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Autoscale Pool Current Average Memory utilizationDIGITALOCEAN_MONITORING_GET_DROPLET_AUTOSCALE_CURRENT_MEMORY_UTILIZATIONTo retrieve the current average memory utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_memory_utilization`.

To retrieve the current average memory utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/current_memory_utilization`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Autoscale Pool Target Average CPU utilizationDIGITALOCEAN_MONITORING_GET_DROPLET_AUTOSCALE_TARGET_CPU_UTILIZATIONTo retrieve the target average CPU utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_cpu_utilization`.

To retrieve the target average CPU utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_cpu_utilization`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Autoscale Pool Target SizeDIGITALOCEAN_MONITORING_GET_DROPLET_AUTOSCALE_TARGET_INSTANCESTo retrieve the target size for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_instances`.

To retrieve the target size for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_instances`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Autoscale Pool Target Average Memory utilizationDIGITALOCEAN_MONITORING_GET_DROPLET_AUTOSCALE_TARGET_MEMORY_UTILIZATIONTo retrieve the target average memory utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_memory_utilization`.

To retrieve the target average memory utilization for a given Droplet Autoscale Pool, send a GET request to `/v2/monitoring/metrics/droplet_autoscale/target_memory_utilization`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Bandwidth MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_BANDWIDTH_METRICSTo retrieve bandwidth metrics for a given Droplet, send a GET request to `/v2/monitoring/metrics/droplet/bandwidth`. Use the `interface` query parameter to specify if the results should be for the `private` or `public` interface. Use the `direction` query parameter to specify if the results should be for `inbound` or `outbound` traffic. The metrics in the response body are in megabits per second (Mbps).

To retrieve bandwidth metrics for a given Droplet, send a GET request to `/v2/monitoring/metrics/droplet/bandwidth`. Use the `interface` query parameter to specify if the results should be for the `private` or `public` interface. Use the `direction` query parameter to specify if the results should be for `inbound` or `outbound` traffic. The metrics in the response body are in megabits per second (Mbps).

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet CPU MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_CPU_METRICSTo retrieve CPU metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/cpu`.

To retrieve CPU metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/cpu`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Filesystem Free MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_FILESYSTEM_FREE_METRICSTo retrieve filesystem free metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/filesystem_free`.

To retrieve filesystem free metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/filesystem_free`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Filesystem Size MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_FILESYSTEM_SIZE_METRICSTo retrieve filesystem size metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/filesystem_size`.

To retrieve filesystem size metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/filesystem_size`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Load1 MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_LOAD1_METRICSTo retrieve 1 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_1`.

To retrieve 1 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_1`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Load15 MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_LOAD15_METRICSTo retrieve 15 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_15`.

To retrieve 15 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_15`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Load5 MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_LOAD5_METRICSTo retrieve 5 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_5`.

To retrieve 5 minute load average metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/load_5`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Available Memory MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_MEMORY_AVAILABLE_METRICSTo retrieve available memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_available`.

To retrieve available memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_available`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Cached Memory MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_MEMORY_CACHED_METRICSTo retrieve cached memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_cached`.

To retrieve cached memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_cached`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Free Memory MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_MEMORY_FREE_METRICSTo retrieve free memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_free`.

To retrieve free memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_free`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Droplet Total Memory MetricsDIGITALOCEAN_MONITORING_GET_DROPLET_MEMORY_TOTAL_METRICSTo retrieve total memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_total`.

To retrieve total memory metrics for a given droplet, send a GET request to `/v2/monitoring/metrics/droplet/memory_total`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets Active Connections MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_CONNECTIONSTo retrieve Droplets active connections for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_connections`.

To retrieve Droplets active connections for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_connections`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets Downtime Status MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_DOWNTIMETo retrieve Droplets downtime status for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_downtime`.

To retrieve Droplets downtime status for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_downtime`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets Health Check Status MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HEALTH_CHECKSTo retrieve Droplets health check status for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_health_checks`.

To retrieve Droplets health check status for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_health_checks`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets 50th Percentile HTTP Response Time MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HTTP_RESPONSE_TIME_50PTo retrieve Droplets 50th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_50p`.

To retrieve Droplets 50th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_50p`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets 95th Percentile HTTP Response Time MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HTTP_RESPONSE_TIME_95PTo retrieve Droplets 95th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_95p`.

To retrieve Droplets 95th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_95p`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets 99th Percentile HTTP Response Time MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HTTP_RESPONSE_TIME_99PTo retrieve Droplets 99th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_99p`.

To retrieve Droplets 99th percentile HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_99p`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets Average HTTP Response Time MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HTTP_RESPONSE_TIME_AVGTo retrieve Droplets average HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_avg`.

To retrieve Droplets average HTTP response time in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_response_time_avg`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets HTTP Rate Of Response Code MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HTTP_RESPONSESTo retrieve Droplets HTTP rate of response code for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_responses`.

To retrieve Droplets HTTP rate of response code for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_responses`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets 50th Percentile HTTP Session Duration MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HTTP_SESSION_DURATION_50PTo retrieve Droplets 50th percentile HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_50p`.

To retrieve Droplets 50th percentile HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_50p`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets 95th Percentile HTTP Session Duration MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HTTP_SESSION_DURATION_95PTo retrieve Droplets 95th percentile HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_95p`.

To retrieve Droplets 95th percentile HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_95p`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets Average HTTP Session Duration MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_HTTP_SESSION_DURATION_AVGTo retrieve Droplets average HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_avg`.

To retrieve Droplets average HTTP session duration in seconds for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_http_session_duration_avg`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Droplets Queue Size MetricsDIGITALOCEAN_MONITORING_GET_LB_DROPLETS_QUEUE_SIZETo retrieve Droplets queue size for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_queue_size`.

To retrieve Droplets queue size for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/droplets_queue_size`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend Total Current Active Connections MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_CONNECTIONS_CURRENTTo retrieve frontend total current active connections for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_connections_current`.

To retrieve frontend total current active connections for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_connections_current`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend Max Connections Limit MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_CONNECTIONS_LIMITTo retrieve frontend max connections limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_connections_limit`.

To retrieve frontend max connections limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_connections_limit`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend Average Percentage CPU Utilization MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_CPU_UTILIZATIONTo retrieve frontend average percentage CPU utilization for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_cpu_utilization`.

To retrieve frontend average percentage CPU utilization for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_cpu_utilization`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend Firewall Dropped Bytes MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_FIREWALL_DROPPED_BYTESTo retrieve firewall dropped bytes for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_firewall_dropped_bytes`. This is currently only supported for network load balancers.

To retrieve firewall dropped bytes for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_firewall_dropped_bytes`. This is currently only supported for network load balancers.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend Firewall Dropped Packets MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_FIREWALL_DROPPED_PACKETSTo retrieve firewall dropped packets per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_firewall_dropped_packets`. This is currently only supported for network load balancers.

To retrieve firewall dropped packets per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_firewall_dropped_packets`. This is currently only supported for network load balancers.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend HTTP Requests MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_HTTP_REQUESTS_PER_SECONDTo retrieve frontend HTTP requests per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_http_requests_per_second`.

To retrieve frontend HTTP requests per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_http_requests_per_second`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend HTTP Rate Of Response Code MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_HTTP_RESPONSESTo retrieve frontend HTTP rate of response code for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_http_responses`.

To retrieve frontend HTTP rate of response code for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_http_responses`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend HTTP Throughput MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_NETWORK_THROUGHPUT_HTTPTo retrieve frontend HTTP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_http`.

To retrieve frontend HTTP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_http`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend TCP Throughput MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_NETWORK_THROUGHPUT_TCPTo retrieve frontend TCP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_tcp`.

To retrieve frontend TCP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_tcp`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend UDP Throughput MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_NETWORK_THROUGHPUT_UDPTo retrieve frontend UDP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_udp`.

To retrieve frontend UDP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_network_throughput_udp`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Network Load Balancer Frontend TCP Throughput MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_NLB_TCP_NETWORK_THROUGHPUTTo retrieve frontend TCP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_nlb_tcp_network_throughput`.

To retrieve frontend TCP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_nlb_tcp_network_throughput`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Network Load Balancer Frontend UDP Throughput MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_NLB_UDP_NETWORK_THROUGHPUTTo retrieve frontend UDP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_nlb_udp_network_throughput`.

To retrieve frontend UDP throughput in bytes per second for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_nlb_udp_network_throughput`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend Current TLS Connections Rate MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_TLS_CONNECTIONS_CURRENTTo retrieve frontend current TLS connections rate for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_current`.

To retrieve frontend current TLS connections rate for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_current`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend Closed TLS Connections For Exceeded Rate Limit MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_TLS_CONNECTIONS_EXCEEDING_RATE_LIMITTo retrieve frontend closed TLS connections for exceeded rate limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_exceeding_rate_limit`.

To retrieve frontend closed TLS connections for exceeded rate limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_exceeding_rate_limit`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get Load Balancer Frontend Max TLS Connections Limit MetricsDIGITALOCEAN_MONITORING_GET_LB_FRONTEND_TLS_CONNECTIONS_LIMITTo retrieve frontend max TLS connections limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_limit`.

To retrieve frontend max TLS connections limit for a given load balancer, send a GET request to `/v2/monitoring/metrics/load_balancer/frontend_tls_connections_limit`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Get SinkDIGITALOCEAN_MONITORING_GET_SINKTo get the details of a sink (resources and destination), send a GET request to `/v2/monitoring/sinks/${sink_uuid}`.

To get the details of a sink (resources and destination), send a GET request to `/v2/monitoring/sinks/${sink_uuid}`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
List Alert PoliciesDIGITALOCEAN_MONITORING_LIST_ALERT_POLICYReturns all alert policies that are configured for the given account. To List all alert policies, send a GET request to `/v2/monitoring/alerts`.

Returns all alert policies that are configured for the given account. To List all alert policies, send a GET request to `/v2/monitoring/alerts`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
List Logging DestinationsDIGITALOCEAN_MONITORING_LIST_DESTINATIONSTo list all logging destinations, send a GET request to `/v2/monitoring/sinks/destinations`.

To list all logging destinations, send a GET request to `/v2/monitoring/sinks/destinations`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Lists all sinksDIGITALOCEAN_MONITORING_LIST_SINKSTo list all sinks, send a GET request to `/v2/monitoring/sinks`.

To list all sinks, send a GET request to `/v2/monitoring/sinks`.

Authentication

Connected account required

Scopes

monitoring:read

Tags

Monitoring
Update an Alert PolicyDIGITALOCEAN_MONITORING_UPDATE_ALERT_POLICYTo update en existing policy, send a PUT request to `v2/monitoring/alerts/{alert_uuid}`.

To update en existing policy, send a PUT request to `v2/monitoring/alerts/{alert_uuid}`.

Authentication

Connected account required

Scopes

monitoring:update

Tags

Monitoring
Update Logging DestinationDIGITALOCEAN_MONITORING_UPDATE_DESTINATIONTo update the details of a destination, send a PATCH request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.

To update the details of a destination, send a PATCH request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.

Authentication

Connected account required

Scopes

monitoring:update

Tags

Monitoring
Create a new NFS shareDIGITALOCEAN_NFS_CREATETo create a new NFS share, send a POST request to `/v2/nfs`.

To create a new NFS share, send a POST request to `/v2/nfs`.

Authentication

Connected account required

Scopes

nfs:create

Tags

NFS
Create an NFS access pointDIGITALOCEAN_NFS_CREATE_ACCESS_POINTTo create a new access point on an NFS share, send a POST request to `/v2/nfs/shares/{share_id}/access_points`. A successful request will return the newly created access point and an action object. The parent share must be in `ACTIVE` or `INACTIVE` status. Validation failures and precondition errors (such as an ineligible share state) return `400 Bad Request`. Duplicate name or path conflicts return `409 Conflict`.

To create a new access point on an NFS share, send a POST request to `/v2/nfs/shares/{share_id}/access_points`. A successful request will return the newly created access point and an action object. The parent share must be in `ACTIVE` or `INACTIVE` status. Validation failures and precondition errors (such as an ineligible share state) return `400 Bad Request`. Duplicate name or path conflicts return `409 Conflict`.

Authentication

Connected account required

Scopes

nfs:create

Tags

NFS
Initiate an NFS actionDIGITALOCEAN_NFS_CREATE_ACTIONTo execute an action (such as resize) on a specified NFS share, send a POST request to `/v2/nfs/{nfs_id}/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types: | Action | Details | | -------------------------------- | ----------- | | <nobr>`resize`</nobr> | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB | | <nobr>`snapshot`</nobr> | Takes a snapshot of an NFS share | | <nobr>`attach`</nobr> | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID | | <nobr>`detach`</nobr> | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID | | <nobr>`reassign`</nobr> | Reassigns an NFS share from one VPC to another. Set the old_vpc_id and new_vpc_id attributes to the desired VPC IDs | | <nobr>`switch_performance_tier`</nobr> | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) |

To execute an action (such as resize) on a specified NFS share, send a POST request to `/v2/nfs/{nfs_id}/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types: | Action | Details | | -------------------------------- | ----------- | | <nobr>`resize`</nobr> | Resizes an NFS share. Set the size_gib attribute to a desired value in GiB | | <nobr>`snapshot`</nobr> | Takes a snapshot of an NFS share | | <nobr>`attach`</nobr> | Attaches an NFS share to a VPC. Set the vpc_id attribute to the desired VPC ID | | <nobr>`detach`</nobr> | Detaches an NFS share from a VPC. Set the vpc_id attribute to the desired VPC ID | | <nobr>`reassign`</nobr> | Reassigns an NFS share from one VPC to another. Set the old_vpc_id and new_vpc_id attributes to the desired VPC IDs | | <nobr>`switch_performance_tier`</nobr> | Switches the performance tier of an NFS share. Set the performance_tier attribute to the desired tier (e.g., standard, high) |

Authentication

Connected account required

Scopes

nfs:create

Tags

NFS Actions
Delete an NFS shareDIGITALOCEAN_NFS_DELETETo delete an NFS share, send a DELETE request to `/v2/nfs/{nfs_id}?region=${region}`. A successful request will return a `204 No Content` status code.

To delete an NFS share, send a DELETE request to `/v2/nfs/{nfs_id}?region=${region}`. A successful request will return a `204 No Content` status code.

Authentication

Connected account required

Scopes

nfs:delete

Tags

NFS
Delete an NFS access pointDIGITALOCEAN_NFS_DELETE_ACCESS_POINTTo delete an NFS access point, send a DELETE request to `/v2/nfs/access_points/{access_point_id}`. A successful request will soft-delete the access point and return the deleted access point with status `ACCESS_POINT_DELETED` and an action object indicating the delete operation. The default access point (`is_default: true`) cannot be deleted. Access points already in `ACCESS_POINT_DELETED` or `ACCESS_POINT_FAILED` status return `400 Bad Request`.

To delete an NFS access point, send a DELETE request to `/v2/nfs/access_points/{access_point_id}`. A successful request will soft-delete the access point and return the deleted access point with status `ACCESS_POINT_DELETED` and an action object indicating the delete operation. The default access point (`is_default: true`) cannot be deleted. Access points already in `ACCESS_POINT_DELETED` or `ACCESS_POINT_FAILED` status return `400 Bad Request`.

Authentication

Connected account required

Scopes

nfs:delete

Tags

NFS
Delete an NFS snapshotDIGITALOCEAN_NFS_DELETE_SNAPSHOTTo delete an NFS snapshot, send a DELETE request to `/v2/nfs/snapshots/{nfs_snapshot_id}?region=${region}`. A successful request will return a `204 No Content` status code.

To delete an NFS snapshot, send a DELETE request to `/v2/nfs/snapshots/{nfs_snapshot_id}?region=${region}`. A successful request will return a `204 No Content` status code.

Authentication

Connected account required

Scopes

nfs:delete

Tags

NFS
Get an NFS shareDIGITALOCEAN_NFS_GETTo get an NFS share, send a GET request to `/v2/nfs/{nfs_id}?region=${region}`. A successful request will return the NFS share.

To get an NFS share, send a GET request to `/v2/nfs/{nfs_id}?region=${region}`. A successful request will return the NFS share.

Authentication

Connected account required

Scopes

nfs:read

Tags

NFS
Get an NFS access pointDIGITALOCEAN_NFS_GET_ACCESS_POINTTo get an NFS access point, send a GET request to `/v2/nfs/access_points/{access_point_id}`. A successful request will return the NFS access point.

To get an NFS access point, send a GET request to `/v2/nfs/access_points/{access_point_id}`. A successful request will return the NFS access point.

Authentication

Connected account required

Scopes

nfs:read

Tags

NFS
Get an NFS snapshot by IDDIGITALOCEAN_NFS_GET_SNAPSHOTTo get an NFS snapshot, send a GET request to `/v2/nfs/snapshots/{nfs_snapshot_id}?region=${region}`. A successful request will return the NFS snapshot.

To get an NFS snapshot, send a GET request to `/v2/nfs/snapshots/{nfs_snapshot_id}?region=${region}`. A successful request will return the NFS snapshot.

Authentication

Connected account required

Scopes

nfs:read

Tags

NFS
List NFS shares per regionDIGITALOCEAN_NFS_LISTTo list NFS shares, send a GET request to `/v2/nfs?region=${region}`. A successful request will return all NFS shares belonging to the authenticated user.

To list NFS shares, send a GET request to `/v2/nfs?region=${region}`. A successful request will return all NFS shares belonging to the authenticated user.

Authentication

Connected account required

Scopes

nfs:list

Tags

NFS
List NFS access points for a shareDIGITALOCEAN_NFS_LIST_ACCESS_POINTSTo list access points for an NFS share, send a GET request to `/v2/nfs/shares/{share_id}/access_points`. You may use query parameters to filter by status. A successful request will return a list of NFS access points ordered with the default access point first, then by `created_at` ascending.

To list access points for an NFS share, send a GET request to `/v2/nfs/shares/{share_id}/access_points`. You may use query parameters to filter by status. A successful request will return a list of NFS access points ordered with the default access point first, then by `created_at` ascending.

Authentication

Connected account required

Scopes

nfs:list

Tags

NFS
List NFS snapshots per regionDIGITALOCEAN_NFS_LIST_SNAPSHOTTo list all NFS snapshots, send a GET request to `/v2/nfs/snapshots?region=${region}&share_id={share_id}`. A successful request will return all NFS snapshots belonging to the authenticated user in the specified region. Optionally, you can filter snapshots by a specific NFS share by including the `share_id` query parameter.

To list all NFS snapshots, send a GET request to `/v2/nfs/snapshots?region=${region}&share_id={share_id}`. A successful request will return all NFS snapshots belonging to the authenticated user in the specified region. Optionally, you can filter snapshots by a specific NFS share by including the `share_id` query parameter.

Authentication

Connected account required

Scopes

nfs:list

Tags

NFS
Install Kubernetes 1-Click ApplicationsDIGITALOCEAN_ONE_CLICKS_INSTALL_KUBERNETESTo install a Kubernetes 1-Click application on a cluster, send a POST request to `/v2/1-clicks/kubernetes`. The `addon_slugs` and `cluster_uuid` must be provided as body parameter in order to specify which 1-Click application(s) to install. To list all available 1-Click Kubernetes applications, send a request to `/v2/1-clicks?type=kubernetes`.

To install a Kubernetes 1-Click application on a cluster, send a POST request to `/v2/1-clicks/kubernetes`. The `addon_slugs` and `cluster_uuid` must be provided as body parameter in order to specify which 1-Click application(s) to install. To list all available 1-Click Kubernetes applications, send a request to `/v2/1-clicks?type=kubernetes`.

Authentication

Connected account required

Scopes

kubernetes:updateaddon:create

Tags

1-Click Applications
List 1-Click ApplicationsDIGITALOCEAN_ONE_CLICKS_LISTTo list all available 1-Click applications, send a GET request to `/v2/1-clicks`. The `type` may be provided as query paramater in order to restrict results to a certain type of 1-Click, for example: `/v2/1-clicks?type=droplet`. Current supported types are `kubernetes` and `droplet`. The response will be a JSON object with a key called `1_clicks`. This will be set to an array of 1-Click application data, each of which will contain the the slug and type for the 1-Click.

To list all available 1-Click applications, send a GET request to `/v2/1-clicks`. The `type` may be provided as query paramater in order to restrict results to a certain type of 1-Click, for example: `/v2/1-clicks?type=droplet`. Current supported types are `kubernetes` and `droplet`. The response will be a JSON object with a key called `1_clicks`. This will be set to an array of 1-Click application data, each of which will contain the the slug and type for the 1-Click.

Authentication

Connected account required

Tags

1-Click Applications
Create a new partner attachmentDIGITALOCEAN_PARTNER_ATTACHMENTS_CREATETo create a new partner attachment, send a `POST` request to `/v2/partner_network_connect/attachments` with a JSON object containing the required configuration details.

To create a new partner attachment, send a `POST` request to `/v2/partner_network_connect/attachments` with a JSON object containing the required configuration details.

Authentication

Connected account required

Scopes

partner_network_connect:create

Tags

Partner Network Connect
Regenerate the service key for the partner attachmentDIGITALOCEAN_PARTNER_ATTACHMENTS_CREATE_SERVICE_KEYThis operation generates a new service key for the specified partner attachment. The operation is asynchronous, and the response is an empty JSON object returned with a 202 status code. To poll for the new service key, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/service_key`.

This operation generates a new service key for the specified partner attachment. The operation is asynchronous, and the response is an empty JSON object returned with a 202 status code. To poll for the new service key, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/service_key`.

Authentication

Connected account required

Scopes

partner_network_connect:write

Tags

Partner Network Connect
Delete an existing partner attachmentDIGITALOCEAN_PARTNER_ATTACHMENTS_DELETETo delete an existing partner attachment, send a `DELETE` request to `/v2/partner_network_connect/attachments/{pa_id}`.

To delete an existing partner attachment, send a `DELETE` request to `/v2/partner_network_connect/attachments/{pa_id}`.

Authentication

Connected account required

Scopes

partner_network_connect:read

Tags

Partner Network Connect
Retrieve an existing partner attachmentDIGITALOCEAN_PARTNER_ATTACHMENTS_GETTo get the details of a partner attachment, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}`.

To get the details of a partner attachment, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}`.

Authentication

Connected account required

Scopes

partner_network_connect:read

Tags

Partner Network Connect
Get current BGP auth key for the partner attachmentDIGITALOCEAN_PARTNER_ATTACHMENTS_GET_BGP_AUTH_KEYTo get the current BGP auth key for a partner attachment, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/bgp_auth_key`.

To get the current BGP auth key for a partner attachment, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/bgp_auth_key`.

Authentication

Connected account required

Scopes

partner_network_connect:read

Tags

Partner Network Connect
Get the current service key for the partner attachmentDIGITALOCEAN_PARTNER_ATTACHMENTS_GET_SERVICE_KEYTo get the current service key for a partner attachment, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/service_key`.

To get the current service key for a partner attachment, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/service_key`.

Authentication

Connected account required

Scopes

partner_network_connect:read

Tags

Partner Network Connect
List all partner attachmentsDIGITALOCEAN_PARTNER_ATTACHMENTS_LISTTo list all of the Partner Attachments on your account, send a `GET` request to `/v2/partner_network_connect/attachments`.

To list all of the Partner Attachments on your account, send a `GET` request to `/v2/partner_network_connect/attachments`.

Authentication

Connected account required

Scopes

partner_network_connect:read

Tags

Partner Network Connect
List remote routes for a partner attachmentDIGITALOCEAN_PARTNER_ATTACHMENTS_LIST_REMOTE_ROUTESTo list all remote routes associated with a partner attachment, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/remote_routes`.

To list all remote routes associated with a partner attachment, send a `GET` request to `/v2/partner_network_connect/attachments/{pa_id}/remote_routes`.

Authentication

Connected account required

Scopes

partner_network_connect:read

Tags

Partner Network Connect
Update an existing partner attachmentDIGITALOCEAN_PARTNER_ATTACHMENTS_PATCHTo update an existing partner attachment, send a `PATCH` request to `/v2/partner_network_connect/attachments/{pa_id}` with a JSON object containing the fields to be updated.

To update an existing partner attachment, send a `PATCH` request to `/v2/partner_network_connect/attachments/{pa_id}` with a JSON object containing the fields to be updated.

Authentication

Connected account required

Scopes

partner_network_connect:read

Tags

Partner Network Connect
Assign Resources to a ProjectDIGITALOCEAN_PROJECTS_ASSIGN_RESOURCESTo assign resources to a project, send a POST request to `/v2/projects/$PROJECT_ID/resources`. You must have both `project:assign_resource` and `<resource>:read` scopes to assign new resources. For example, to assign a Droplet to a project, include both the `project:assign_resource` and `droplet:read` scopes. The `project:update` scope also grants `project:assign_resource`.

To assign resources to a project, send a POST request to `/v2/projects/$PROJECT_ID/resources`. You must have both `project:assign_resource` and `<resource>:read` scopes to assign new resources. For example, to assign a Droplet to a project, include both the `project:assign_resource` and `droplet:read` scopes. The `project:update` scope also grants `project:assign_resource`.

Authentication

Connected account required

Scopes

project:assign_resource

Tags

Project Resources
Assign Resources to Default ProjectDIGITALOCEAN_PROJECTS_ASSIGN_RESOURCES_DEFAULTTo assign resources to your default project, send a POST request to `/v2/projects/default/resources`. You must have both `project:assign_resource` and `<resource>:read` scopes to assign new resources. For example, to assign a Droplet to the default project, include both the `project:assign_resource` and `droplet:read` scopes. The `project:update` scope also grants `project:assign_resource`.

To assign resources to your default project, send a POST request to `/v2/projects/default/resources`. You must have both `project:assign_resource` and `<resource>:read` scopes to assign new resources. For example, to assign a Droplet to the default project, include both the `project:assign_resource` and `droplet:read` scopes. The `project:update` scope also grants `project:assign_resource`.

Authentication

Connected account required

Scopes

project:assign_resource

Tags

Project Resources
Create a ProjectDIGITALOCEAN_PROJECTS_CREATETo create a project, send a POST request to `/v2/projects`.

To create a project, send a POST request to `/v2/projects`.

Authentication

Connected account required

Scopes

project:create

Tags

Projects
Delete an Existing ProjectDIGITALOCEAN_PROJECTS_DELETETo delete a project, send a DELETE request to `/v2/projects/$PROJECT_ID`. To be deleted, a project must not have any resources assigned to it. Any existing resources must first be reassigned or destroyed, or you will receive a 412 error. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete a project, send a DELETE request to `/v2/projects/$PROJECT_ID`. To be deleted, a project must not have any resources assigned to it. Any existing resources must first be reassigned or destroyed, or you will receive a 412 error. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

project:delete

Tags

Projects
Retrieve an Existing ProjectDIGITALOCEAN_PROJECTS_GETTo get a project, send a GET request to `/v2/projects/$PROJECT_ID`.

To get a project, send a GET request to `/v2/projects/$PROJECT_ID`.

Authentication

Connected account required

Scopes

project:read

Tags

Projects
Retrieve the Default ProjectDIGITALOCEAN_PROJECTS_GET_DEFAULTTo get your default project, send a GET request to `/v2/projects/default`.

To get your default project, send a GET request to `/v2/projects/default`.

Authentication

Connected account required

Scopes

project:read

Tags

Projects
List All ProjectsDIGITALOCEAN_PROJECTS_LISTTo list all your projects, send a GET request to `/v2/projects`.

To list all your projects, send a GET request to `/v2/projects`.

Authentication

Connected account required

Scopes

project:read

Tags

Projects
List Project ResourcesDIGITALOCEAN_PROJECTS_LIST_RESOURCESTo list all your resources in a project, send a GET request to `/v2/projects/$PROJECT_ID/resources`. This endpoint will only return resources that you are authorized to see. For example, to see Droplets in a project, include the `droplet:read` scope.

To list all your resources in a project, send a GET request to `/v2/projects/$PROJECT_ID/resources`. This endpoint will only return resources that you are authorized to see. For example, to see Droplets in a project, include the `droplet:read` scope.

Authentication

Connected account required

Scopes

project:read

Tags

Project Resources
List Default Project ResourcesDIGITALOCEAN_PROJECTS_LIST_RESOURCES_DEFAULTTo list all your resources in your default project, send a GET request to `/v2/projects/default/resources`. Only resources that you are authorized to see will be returned. For example, to see Droplets in a project, include the `droplet:read` scope.

To list all your resources in your default project, send a GET request to `/v2/projects/default/resources`. Only resources that you are authorized to see will be returned. For example, to see Droplets in a project, include the `droplet:read` scope.

Authentication

Connected account required

Scopes

project:read

Tags

Project Resources
Patch a ProjectDIGITALOCEAN_PROJECTS_PATCHTo update only specific attributes of a project, send a PATCH request to `/v2/projects/$PROJECT_ID`. At least one of the following attributes needs to be sent.

To update only specific attributes of a project, send a PATCH request to `/v2/projects/$PROJECT_ID`. At least one of the following attributes needs to be sent.

Authentication

Connected account required

Scopes

project:update

Tags

Projects
Patch the Default ProjectDIGITALOCEAN_PROJECTS_PATCH_DEFAULTTo update only specific attributes of your default project, send a PATCH request to `/v2/projects/default`. At least one of the following attributes needs to be sent.

To update only specific attributes of your default project, send a PATCH request to `/v2/projects/default`. At least one of the following attributes needs to be sent.

Authentication

Connected account required

Scopes

project:update

Tags

Projects
Update a ProjectDIGITALOCEAN_PROJECTS_UPDATETo update a project, send a PUT request to `/v2/projects/$PROJECT_ID`. All of the following attributes must be sent.

To update a project, send a PUT request to `/v2/projects/$PROJECT_ID`. All of the following attributes must be sent.

Authentication

Connected account required

Scopes

project:update

Tags

Projects
Update the Default ProjectDIGITALOCEAN_PROJECTS_UPDATE_DEFAULTTo update you default project, send a PUT request to `/v2/projects/default`. All of the following attributes must be sent.

To update you default project, send a PUT request to `/v2/projects/default`. All of the following attributes must be sent.

Authentication

Connected account required

Scopes

project:update

Tags

Projects
List All Data Center RegionsDIGITALOCEAN_REGIONS_LISTTo list all of the regions that are available, send a GET request to `/v2/regions`. The response will be a JSON object with a key called `regions`. The value of this will be an array of `region` objects, each of which will contain the standard region attributes.

To list all of the regions that are available, send a GET request to `/v2/regions`. The response will be a JSON object with a key called `regions`. The value of this will be an array of `region` objects, each of which will contain the standard region attributes.

Authentication

Connected account required

Scopes

regions:read

Tags

Regions
Create Container RegistryDIGITALOCEAN_REGISTRIES_CREATETo create your container registry, send a POST request to `/v2/registries`. The `name` becomes part of the URL for images stored in the registry. For example, if your registry is called `example`, an image in it will have the URL `registry.digitalocean.com/example/image:tag`.

To create your container registry, send a POST request to `/v2/registries`. The `name` becomes part of the URL for images stored in the registry. For example, if your registry is called `example`, an image in it will have the URL `registry.digitalocean.com/example/image:tag`.

Authentication

Connected account required

Scopes

registry:create

Tags

Container Registries
Delete Container Registry By NameDIGITALOCEAN_REGISTRIES_DELETETo delete your container registry, destroying all container image data stored in it, send a DELETE request to `/v2/registries/{registry_name}`.

To delete your container registry, destroying all container image data stored in it, send a DELETE request to `/v2/registries/{registry_name}`.

Authentication

Connected account required

Scopes

registry:delete

Tags

Container Registries
Delete Container Registry RepositoryDIGITALOCEAN_REGISTRIES_DELETE_REPOSITORYTo delete a container repository including all of its tags, send a DELETE request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete a container repository including all of its tags, send a DELETE request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

registry:delete

Tags

Container Registries
Delete Container Registry Repository ManifestDIGITALOCEAN_REGISTRIES_DELETE_REPOSITORY_MANIFESTTo delete a container repository manifest by digest in one of your registries, send a DELETE request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to delete `registry.digitalocean.com/example/my/repo@sha256:abcd`, the path would be `/v2/registry/example/repositories/my%2Frepo/digests/sha256:abcd`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully. It is similar to DELETE `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`.

To delete a container repository manifest by digest in one of your registries, send a DELETE request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to delete `registry.digitalocean.com/example/my/repo@sha256:abcd`, the path would be `/v2/registry/example/repositories/my%2Frepo/digests/sha256:abcd`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully. It is similar to DELETE `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`.

Authentication

Connected account required

Scopes

registry:delete

Tags

Container Registries
Delete Container Registry Repository TagDIGITALOCEAN_REGISTRIES_DELETE_REPOSITORY_TAGTo delete a container repository tag in on of our container registries, send a DELETE request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to delete `registry.digitalocean.com/example/my/repo:mytag`, the path would be `/v2/registry/example/repositories/my%2Frepo/tags/mytag`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully. It is similar to DELETE `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`.

To delete a container repository tag in on of our container registries, send a DELETE request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to delete `registry.digitalocean.com/example/my/repo:mytag`, the path would be `/v2/registry/example/repositories/my%2Frepo/tags/mytag`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully. It is similar to DELETE `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`.

Authentication

Connected account required

Scopes

registry:delete

Tags

Container Registries
Get a Container Registry By NameDIGITALOCEAN_REGISTRIES_GETTo get information about any container registry in your account, send a GET request to `/v2/registries/{registry_name}`.

To get information about any container registry in your account, send a GET request to `/v2/registries/{registry_name}`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
Get Docker Credentials By Registry NameDIGITALOCEAN_REGISTRIES_GET_DOCKER_CREDENTIALSIn order to access your container registry with the Docker client or from a Kubernetes cluster, you will need to configure authentication. The necessary JSON configuration can be retrieved by sending a GET request to `/v2/registries/{registry_name}/docker-credentials`. The response will be in the format of a Docker `config.json` file. To use the config in your Kubernetes cluster, create a Secret with: kubectl create secret generic docr \ --from-file=.dockerconfigjson=config.json \ --type=kubernetes.io/dockerconfigjson By default, the returned credentials have read-only access to your registry and cannot be used to push images. This is appropriate for most Kubernetes clusters. To retrieve read/write credentials, suitable for use with the Docker client or in a CI system, read_write may be provided as query parameter. For example: `/v2/registries/{registry_name}/docker-credentials?read_write=true` By default, the returned credentials will not expire. To retrieve credentials with an expiry set, expiry_seconds may be provided as a query parameter. For example: `/v2/registries/{registry_name}/docker-credentials?expiry_seconds=3600` will return credentials that expire after one hour.

In order to access your container registry with the Docker client or from a Kubernetes cluster, you will need to configure authentication. The necessary JSON configuration can be retrieved by sending a GET request to `/v2/registries/{registry_name}/docker-credentials`. The response will be in the format of a Docker `config.json` file. To use the config in your Kubernetes cluster, create a Secret with: kubectl create secret generic docr \ --from-file=.dockerconfigjson=config.json \ --type=kubernetes.io/dockerconfigjson By default, the returned credentials have read-only access to your registry and cannot be used to push images. This is appropriate for most Kubernetes clusters. To retrieve read/write credentials, suitable for use with the Docker client or in a CI system, read_write may be provided as query parameter. For example: `/v2/registries/{registry_name}/docker-credentials?read_write=true` By default, the returned credentials will not expire. To retrieve credentials with an expiry set, expiry_seconds may be provided as a query parameter. For example: `/v2/registries/{registry_name}/docker-credentials?expiry_seconds=3600` will return credentials that expire after one hour.

Authentication

Connected account required

Scopes

registry:readregistry:update

Tags

Container Registries
Get Active Garbage CollectionDIGITALOCEAN_REGISTRIES_GET_GARBAGE_COLLECTIONTo get information about the currently-active garbage collection for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collection`.

To get information about the currently-active garbage collection for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collection`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
List Registry Options (Subscription Tiers and Available Regions)DIGITALOCEAN_REGISTRIES_GET_OPTIONSThis endpoint serves to provide additional information as to which option values are available when creating a container registry. There are multiple subscription tiers available for container registry. Each tier allows a different number of image repositories to be created in your registry, and has a different amount of storage and transfer included. There are multiple regions available for container registry and controls where your data is stored. To list the available options, send a GET request to `/v2/registries/options`. This is similar to GET `/v2/registry/options`.

This endpoint serves to provide additional information as to which option values are available when creating a container registry. There are multiple subscription tiers available for container registry. Each tier allows a different number of image repositories to be created in your registry, and has a different amount of storage and transfer included. There are multiple regions available for container registry and controls where your data is stored. To list the available options, send a GET request to `/v2/registries/options`. This is similar to GET `/v2/registry/options`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
Get Subscription InformationDIGITALOCEAN_REGISTRIES_GET_SUBSCRIPTIONA subscription is automatically created when you configure your container registry. To get information about your subscription, send a GET request to `/v2/registries/subscription`. It is similar to GET `/v2/registry/subscription`.

A subscription is automatically created when you configure your container registry. To get information about your subscription, send a GET request to `/v2/registries/subscription`. It is similar to GET `/v2/registry/subscription`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
List All Container RegistriesDIGITALOCEAN_REGISTRIES_LISTTo get information about any container registry in your account, send a GET request to `/v2/registries/`.

To get information about any container registry in your account, send a GET request to `/v2/registries/`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
List Garbage CollectionsDIGITALOCEAN_REGISTRIES_LIST_GARBAGE_COLLECTIONSTo get information about past garbage collections for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collections`.

To get information about past garbage collections for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collections`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
List All Container Registry Repositories (V2)DIGITALOCEAN_REGISTRIES_LIST_REPOSITORIES_V2To list all repositories in your container registry, send a GET request to `/v2/registries/$REGISTRY_NAME/repositoriesV2`. It is similar to GET `/v2/registry/$REGISTRY_NAME/repositoriesV2`.

To list all repositories in your container registry, send a GET request to `/v2/registries/$REGISTRY_NAME/repositoriesV2`. It is similar to GET `/v2/registry/$REGISTRY_NAME/repositoriesV2`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
List All Container Registry Repository ManifestsDIGITALOCEAN_REGISTRIES_LIST_REPOSITORY_MANIFESTSTo list all manifests in your container registry repository, send a GET request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to list manifests for `registry.digitalocean.com/example/my/repo`, the path would be `/v2/registry/example/repositories/my%2Frepo/digests`. It is similar to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`.

To list all manifests in your container registry repository, send a GET request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to list manifests for `registry.digitalocean.com/example/my/repo`, the path would be `/v2/registry/example/repositories/my%2Frepo/digests`. It is similar to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
List All Container Registry Repository TagsDIGITALOCEAN_REGISTRIES_LIST_REPOSITORY_TAGSTo list all tags in one of your container registry's repository, send a GET request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to list tags for `registry.digitalocean.com/example/my/repo`, the path would be `/v2/registry/example/repositories/my%2Frepo/tags`. It is similar to GET `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`.

To list all tags in one of your container registry's repository, send a GET request to `/v2/registries/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to list tags for `registry.digitalocean.com/example/my/repo`, the path would be `/v2/registry/example/repositories/my%2Frepo/tags`. It is similar to GET `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registries
Start Garbage CollectionDIGITALOCEAN_REGISTRIES_RUN_GARBAGE_COLLECTIONGarbage collection enables users to clear out unreferenced blobs (layer & manifest data) after deleting one or more manifests from a repository. If there are no unreferenced blobs resulting from the deletion of one or more manifests, garbage collection is effectively a noop. [See here for more information](https://docs.digitalocean.com/products/container-registry/how-to/clean-up-container-registry/) about how and why you should clean up your container registry periodically. To request a garbage collection run on your registry, send a POST request to `/v2/registries/$REGISTRY_NAME/garbage-collection`. This will initiate the following sequence of events on your registry. * Set the registry to read-only mode, meaning no further write-scoped JWTs will be issued to registry clients. Existing write-scoped JWTs will continue to work until they expire which can take up to 15 minutes. * Wait until all existing write-scoped JWTs have expired. * Scan all registry manifests to determine which blobs are unreferenced. * Delete all unreferenced blobs from the registry. * Record the number of blobs deleted and bytes freed, mark the garbage collection status as `success`. * Remove the read-only mode restriction from the registry, meaning write-scoped JWTs will once again be issued to registry clients.

Garbage collection enables users to clear out unreferenced blobs (layer & manifest data) after deleting one or more manifests from a repository. If there are no unreferenced blobs resulting from the deletion of one or more manifests, garbage collection is effectively a noop. [See here for more information](https://docs.digitalocean.com/products/container-registry/how-to/clean-up-container-registry/) about how and why you should clean up your container registry periodically. To request a garbage collection run on your registry, send a POST request to `/v2/registries/$REGISTRY_NAME/garbage-collection`. This will initiate the following sequence of events on your registry. * Set the registry to read-only mode, meaning no further write-scoped JWTs will be issued to registry clients. Existing write-scoped JWTs will continue to work until they expire which can take up to 15 minutes. * Wait until all existing write-scoped JWTs have expired. * Scan all registry manifests to determine which blobs are unreferenced. * Delete all unreferenced blobs from the registry. * Record the number of blobs deleted and bytes freed, mark the garbage collection status as `success`. * Remove the read-only mode restriction from the registry, meaning write-scoped JWTs will once again be issued to registry clients.

Authentication

Connected account required

Scopes

registry:update

Tags

Container Registries
Update Garbage CollectionDIGITALOCEAN_REGISTRIES_UPDATE_GARBAGE_COLLECTIONTo cancel the currently-active garbage collection for a registry, send a PUT request to `/v2/registries/$REGISTRY_NAME/garbage-collection/$GC_UUID` and specify one or more of the attributes below. It is similar to PUT `/v2/registries/$REGISTRY_NAME/garbage-collection/$GC_UUID`.

To cancel the currently-active garbage collection for a registry, send a PUT request to `/v2/registries/$REGISTRY_NAME/garbage-collection/$GC_UUID` and specify one or more of the attributes below. It is similar to PUT `/v2/registries/$REGISTRY_NAME/garbage-collection/$GC_UUID`.

Authentication

Connected account required

Scopes

registry:update

Tags

Container Registries
Update Subscription TierDIGITALOCEAN_REGISTRIES_UPDATE_SUBSCRIPTIONAfter creating your registry, you can switch to a different subscription tier to better suit your needs. To do this, send a POST request to `/v2/registries/subscription`. It is similar to POST `/v2/registry/subscription`.

After creating your registry, you can switch to a different subscription tier to better suit your needs. To do this, send a POST request to `/v2/registries/subscription`. It is similar to POST `/v2/registry/subscription`.

Authentication

Connected account required

Scopes

registry:update

Tags

Container Registries
Validate a Container Registry NameDIGITALOCEAN_REGISTRIES_VALIDATE_NAMETo validate that a container registry name is available for use, send a POST request to `/v2/registries/validate-name`. If the name is both formatted correctly and available, the response code will be 204 and contain no body. If the name is already in use, the response will be a 409 Conflict. It is similar to `/v2/registry/validate-name`.

To validate that a container registry name is available for use, send a POST request to `/v2/registries/validate-name`. If the name is both formatted correctly and available, the response code will be 204 and contain no body. If the name is already in use, the response will be a 409 Conflict. It is similar to `/v2/registry/validate-name`.

Authentication

Connected account required

Scopes

registry:create

Tags

Container Registries
Create Container RegistryDIGITALOCEAN_REGISTRY_CREATE**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To create your container registry, send a POST request to `/v2/registry`. The `name` becomes part of the URL for images stored in the registry. For example, if your registry is called `example`, an image in it will have the URL `registry.digitalocean.com/example/image:tag`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To create your container registry, send a POST request to `/v2/registry`. The `name` becomes part of the URL for images stored in the registry. For example, if your registry is called `example`, an image in it will have the URL `registry.digitalocean.com/example/image:tag`.

Authentication

Connected account required

Scopes

registry:create

Tags

Container Registry
Delete Container RegistryDIGITALOCEAN_REGISTRY_DELETE**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To delete your container registry, destroying all container image data stored in it, send a DELETE request to `/v2/registry`. This operation is not compatible with multiple registries in a DO account. You should use `/v2/registries/{registry_name}` instead.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To delete your container registry, destroying all container image data stored in it, send a DELETE request to `/v2/registry`. This operation is not compatible with multiple registries in a DO account. You should use `/v2/registries/{registry_name}` instead.

Authentication

Connected account required

Scopes

registry:delete

Tags

Container Registry
Delete Container Registry Repository ManifestDIGITALOCEAN_REGISTRY_DELETE_REPOSITORY_MANIFEST**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To delete a container repository manifest by digest, send a DELETE request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to delete `registry.digitalocean.com/example/my/repo@sha256:abcd`, the path would be `/v2/registry/example/repositories/my%2Frepo/digests/sha256:abcd`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To delete a container repository manifest by digest, send a DELETE request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests/$MANIFEST_DIGEST`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to delete `registry.digitalocean.com/example/my/repo@sha256:abcd`, the path would be `/v2/registry/example/repositories/my%2Frepo/digests/sha256:abcd`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

registry:delete

Tags

Container Registry
Delete Container Registry Repository TagDIGITALOCEAN_REGISTRY_DELETE_REPOSITORY_TAG**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To delete a container repository tag, send a DELETE request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to delete `registry.digitalocean.com/example/my/repo:mytag`, the path would be `/v2/registry/example/repositories/my%2Frepo/tags/mytag`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To delete a container repository tag, send a DELETE request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags/$TAG`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to delete `registry.digitalocean.com/example/my/repo:mytag`, the path would be `/v2/registry/example/repositories/my%2Frepo/tags/mytag`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

registry:delete

Tags

Container Registry
Get Container Registry InformationDIGITALOCEAN_REGISTRY_GET**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To get information about your container registry, send a GET request to `/v2/registry`. This operation is not compatible with multiple registries in a DO account. You should use `/v2/registries/{registry_name}` instead.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To get information about your container registry, send a GET request to `/v2/registry`. This operation is not compatible with multiple registries in a DO account. You should use `/v2/registries/{registry_name}` instead.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
Get Docker Credentials for Container RegistryDIGITALOCEAN_REGISTRY_GET_DOCKER_CREDENTIALS**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** In order to access your container registry with the Docker client or from a Kubernetes cluster, you will need to configure authentication. The necessary JSON configuration can be retrieved by sending a GET request to `/v2/registry/docker-credentials`. The response will be in the format of a Docker `config.json` file. To use the config in your Kubernetes cluster, create a Secret with: kubectl create secret generic docr \ --from-file=.dockerconfigjson=config.json \ --type=kubernetes.io/dockerconfigjson By default, the returned credentials have read-only access to your registry and cannot be used to push images. This is appropriate for most Kubernetes clusters. To retrieve read/write credentials, suitable for use with the Docker client or in a CI system, read_write may be provided as query parameter. For example: `/v2/registry/docker-credentials?read_write=true` By default, the returned credentials will not expire. To retrieve credentials with an expiry set, expiry_seconds may be provided as a query parameter. For example: `/v2/registry/docker-credentials?expiry_seconds=3600` will return credentials that expire after one hour.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** In order to access your container registry with the Docker client or from a Kubernetes cluster, you will need to configure authentication. The necessary JSON configuration can be retrieved by sending a GET request to `/v2/registry/docker-credentials`. The response will be in the format of a Docker `config.json` file. To use the config in your Kubernetes cluster, create a Secret with: kubectl create secret generic docr \ --from-file=.dockerconfigjson=config.json \ --type=kubernetes.io/dockerconfigjson By default, the returned credentials have read-only access to your registry and cannot be used to push images. This is appropriate for most Kubernetes clusters. To retrieve read/write credentials, suitable for use with the Docker client or in a CI system, read_write may be provided as query parameter. For example: `/v2/registry/docker-credentials?read_write=true` By default, the returned credentials will not expire. To retrieve credentials with an expiry set, expiry_seconds may be provided as a query parameter. For example: `/v2/registry/docker-credentials?expiry_seconds=3600` will return credentials that expire after one hour.

Authentication

Connected account required

Scopes

registry:readregistry:update

Tags

Container Registry
Get Active Garbage CollectionDIGITALOCEAN_REGISTRY_GET_GARBAGE_COLLECTION**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To get information about the currently-active garbage collection for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collection`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To get information about the currently-active garbage collection for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collection`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
List Registry Options (Subscription Tiers and Available Regions)DIGITALOCEAN_REGISTRY_GET_OPTIONS**Note: This endpoint is deprecated and may be removed in a future version. There is no alternative.****Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** This endpoint serves to provide additional information as to which option values are available when creating a container registry. There are multiple subscription tiers available for container registry. Each tier allows a different number of image repositories to be created in your registry, and has a different amount of storage and transfer included. There are multiple regions available for container registry and controls where your data is stored. To list the available options, send a GET request to `/v2/registry/options`.

**Note: This endpoint is deprecated and may be removed in a future version. There is no alternative.****Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** This endpoint serves to provide additional information as to which option values are available when creating a container registry. There are multiple subscription tiers available for container registry. Each tier allows a different number of image repositories to be created in your registry, and has a different amount of storage and transfer included. There are multiple regions available for container registry and controls where your data is stored. To list the available options, send a GET request to `/v2/registry/options`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
Get SubscriptionDIGITALOCEAN_REGISTRY_GET_SUBSCRIPTION**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** A subscription is automatically created when you configure your container registry. To get information about your subscription, send a GET request to `/v2/registry/subscription`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** A subscription is automatically created when you configure your container registry. To get information about your subscription, send a GET request to `/v2/registry/subscription`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
List Garbage CollectionsDIGITALOCEAN_REGISTRY_LIST_GARBAGE_COLLECTIONS**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To get information about past garbage collections for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collections`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To get information about past garbage collections for a registry, send a GET request to `/v2/registry/$REGISTRY_NAME/garbage-collections`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
List All Container Registry RepositoriesDIGITALOCEAN_REGISTRY_LIST_REPOSITORIES**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** This endpoint has been deprecated in favor of the _List All Container Registry Repositories [V2]_ endpoint. To list all repositories in your container registry, send a GET request to `/v2/registry/$REGISTRY_NAME/repositories`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** This endpoint has been deprecated in favor of the _List All Container Registry Repositories [V2]_ endpoint. To list all repositories in your container registry, send a GET request to `/v2/registry/$REGISTRY_NAME/repositories`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
List All Container Registry Repositories (V2)DIGITALOCEAN_REGISTRY_LIST_REPOSITORIES_V2**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To list all repositories in your container registry, send a GET request to `/v2/registry/$REGISTRY_NAME/repositoriesV2`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To list all repositories in your container registry, send a GET request to `/v2/registry/$REGISTRY_NAME/repositoriesV2`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
List All Container Registry Repository ManifestsDIGITALOCEAN_REGISTRY_LIST_REPOSITORY_MANIFESTS**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To list all manifests in your container registry repository, send a GET request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to list manifests for `registry.digitalocean.com/example/my/repo`, the path would be `/v2/registry/example/repositories/my%2Frepo/digests`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To list all manifests in your container registry repository, send a GET request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/digests`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to list manifests for `registry.digitalocean.com/example/my/repo`, the path would be `/v2/registry/example/repositories/my%2Frepo/digests`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
List All Container Registry Repository TagsDIGITALOCEAN_REGISTRY_LIST_REPOSITORY_TAGS**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To list all tags in your container registry repository, send a GET request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to list tags for `registry.digitalocean.com/example/my/repo`, the path would be `/v2/registry/example/repositories/my%2Frepo/tags`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To list all tags in your container registry repository, send a GET request to `/v2/registry/$REGISTRY_NAME/repositories/$REPOSITORY_NAME/tags`. Note that if your repository name contains `/` characters, it must be URL-encoded in the request URL. For example, to list tags for `registry.digitalocean.com/example/my/repo`, the path would be `/v2/registry/example/repositories/my%2Frepo/tags`.

Authentication

Connected account required

Scopes

registry:read

Tags

Container Registry
Start Garbage CollectionDIGITALOCEAN_REGISTRY_RUN_GARBAGE_COLLECTION**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** Garbage collection enables users to clear out unreferenced blobs (layer & manifest data) after deleting one or more manifests from a repository. If there are no unreferenced blobs resulting from the deletion of one or more manifests, garbage collection is effectively a noop. [See here for more information](https://docs.digitalocean.com/products/container-registry/how-to/clean-up-container-registry/) about how and why you should clean up your container registry periodically. To request a garbage collection run on your registry, send a POST request to `/v2/registry/$REGISTRY_NAME/garbage-collection`. This will initiate the following sequence of events on your registry. * Set the registry to read-only mode, meaning no further write-scoped JWTs will be issued to registry clients. Existing write-scoped JWTs will continue to work until they expire which can take up to 15 minutes. * Wait until all existing write-scoped JWTs have expired. * Scan all registry manifests to determine which blobs are unreferenced. * Delete all unreferenced blobs from the registry. * Record the number of blobs deleted and bytes freed, mark the garbage collection status as `success`. * Remove the read-only mode restriction from the registry, meaning write-scoped JWTs will once again be issued to registry clients.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** Garbage collection enables users to clear out unreferenced blobs (layer & manifest data) after deleting one or more manifests from a repository. If there are no unreferenced blobs resulting from the deletion of one or more manifests, garbage collection is effectively a noop. [See here for more information](https://docs.digitalocean.com/products/container-registry/how-to/clean-up-container-registry/) about how and why you should clean up your container registry periodically. To request a garbage collection run on your registry, send a POST request to `/v2/registry/$REGISTRY_NAME/garbage-collection`. This will initiate the following sequence of events on your registry. * Set the registry to read-only mode, meaning no further write-scoped JWTs will be issued to registry clients. Existing write-scoped JWTs will continue to work until they expire which can take up to 15 minutes. * Wait until all existing write-scoped JWTs have expired. * Scan all registry manifests to determine which blobs are unreferenced. * Delete all unreferenced blobs from the registry. * Record the number of blobs deleted and bytes freed, mark the garbage collection status as `success`. * Remove the read-only mode restriction from the registry, meaning write-scoped JWTs will once again be issued to registry clients.

Authentication

Connected account required

Scopes

registry:update

Tags

Container Registry
Update Garbage CollectionDIGITALOCEAN_REGISTRY_UPDATE_GARBAGE_COLLECTION**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To cancel the currently-active garbage collection for a registry, send a PUT request to `/v2/registry/$REGISTRY_NAME/garbage-collection/$GC_UUID` and specify one or more of the attributes below.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To cancel the currently-active garbage collection for a registry, send a PUT request to `/v2/registry/$REGISTRY_NAME/garbage-collection/$GC_UUID` and specify one or more of the attributes below.

Authentication

Connected account required

Scopes

registry:update

Tags

Container Registry
Update Subscription TierDIGITALOCEAN_REGISTRY_UPDATE_SUBSCRIPTION**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** After creating your registry, you can switch to a different subscription tier to better suit your needs. To do this, send a POST request to `/v2/registry/subscription`.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** After creating your registry, you can switch to a different subscription tier to better suit your needs. To do this, send a POST request to `/v2/registry/subscription`.

Authentication

Connected account required

Scopes

registry:update

Tags

Container Registry
Validate a Container Registry NameDIGITALOCEAN_REGISTRY_VALIDATE_NAME**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To validate that a container registry name is available for use, send a POST request to `/v2/registry/validate-name`. If the name is both formatted correctly and available, the response code will be 204 and contain no body. If the name is already in use, the response will be a 409 Conflict.

**Note: This endpoint is deprecated. Please use the `/v2/registries` endpoint instead.** To validate that a container registry name is available for use, send a POST request to `/v2/registry/validate-name`. If the name is both formatted correctly and available, the response code will be 204 and contain no body. If the name is already in use, the response will be a 409 Conflict.

Authentication

Connected account required

Scopes

registry:create

Tags

Container Registry
Retrieve an Existing Reserved IP ActionDIGITALOCEAN_RESERVED_IPS_ACTIONS_GETTo retrieve the status of a reserved IP action, send a GET request to `/v2/reserved_ips/$RESERVED_IP/actions/$ACTION_ID`.

To retrieve the status of a reserved IP action, send a GET request to `/v2/reserved_ips/$RESERVED_IP/actions/$ACTION_ID`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Reserved IP Actions
List All Actions for a Reserved IPDIGITALOCEAN_RESERVED_IPS_ACTIONS_LISTTo retrieve all actions that have been executed on a reserved IP, send a GET request to `/v2/reserved_ips/$RESERVED_IP/actions`.

To retrieve all actions that have been executed on a reserved IP, send a GET request to `/v2/reserved_ips/$RESERVED_IP/actions`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Reserved IP Actions
Initiate a Reserved IP ActionDIGITALOCEAN_RESERVED_IPS_ACTIONS_POSTTo initiate an action on a reserved IP send a POST request to `/v2/reserved_ips/$RESERVED_IP/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types: | Action | Details |------------|-------- | `assign` | Assigns a reserved IP to a Droplet | `unassign` | Unassign a reserved IP from a Droplet

To initiate an action on a reserved IP send a POST request to `/v2/reserved_ips/$RESERVED_IP/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types: | Action | Details |------------|-------- | `assign` | Assigns a reserved IP to a Droplet | `unassign` | Unassign a reserved IP from a Droplet

Authentication

Connected account required

Scopes

reserved_ip:update

Tags

Reserved IP Actions
Create a New Reserved IPDIGITALOCEAN_RESERVED_IPS_CREATEOn creation, a reserved IP must be either assigned to a Droplet or reserved to a region. * To create a new reserved IP assigned to a Droplet, send a POST request to `/v2/reserved_ips` with the `droplet_id` attribute. * To create a new reserved IP reserved to a region, send a POST request to `/v2/reserved_ips` with the `region` attribute.

On creation, a reserved IP must be either assigned to a Droplet or reserved to a region. * To create a new reserved IP assigned to a Droplet, send a POST request to `/v2/reserved_ips` with the `droplet_id` attribute. * To create a new reserved IP reserved to a region, send a POST request to `/v2/reserved_ips` with the `region` attribute.

Authentication

Connected account required

Scopes

reserved_ip:create

Tags

Reserved IPs
Delete a Reserved IPDIGITALOCEAN_RESERVED_IPS_DELETETo delete a reserved IP and remove it from your account, send a DELETE request to `/v2/reserved_ips/$RESERVED_IP_ADDR`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete a reserved IP and remove it from your account, send a DELETE request to `/v2/reserved_ips/$RESERVED_IP_ADDR`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

reserved_ip:delete

Tags

Reserved IPs
Retrieve an Existing Reserved IPDIGITALOCEAN_RESERVED_IPS_GETTo show information about a reserved IP, send a GET request to `/v2/reserved_ips/$RESERVED_IP_ADDR`.

To show information about a reserved IP, send a GET request to `/v2/reserved_ips/$RESERVED_IP_ADDR`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Reserved IPs
List All Reserved IPsDIGITALOCEAN_RESERVED_IPS_LISTTo list all of the reserved IPs available on your account, send a GET request to `/v2/reserved_ips`.

To list all of the reserved IPs available on your account, send a GET request to `/v2/reserved_ips`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Reserved IPs
Initiate a Reserved IPv6 ActionDIGITALOCEAN_RESERVED_IPV6_ACTIONS_POSTTo initiate an action on a reserved IPv6 send a POST request to `/v2/reserved_ipv6/$RESERVED_IPV6/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types: | Action | Details |------------|-------- | `assign` | Assigns a reserved IPv6 to a Droplet | `unassign` | Unassign a reserved IPv6 from a Droplet

To initiate an action on a reserved IPv6 send a POST request to `/v2/reserved_ipv6/$RESERVED_IPV6/actions`. In the JSON body to the request, set the `type` attribute to on of the supported action types: | Action | Details |------------|-------- | `assign` | Assigns a reserved IPv6 to a Droplet | `unassign` | Unassign a reserved IPv6 from a Droplet

Authentication

Connected account required

Scopes

reserved_ip:update

Tags

Reserved IPv6 Actions
Create a New Reserved IPv6DIGITALOCEAN_RESERVED_IPV6_CREATEOn creation, a reserved IPv6 must be reserved to a region. * To create a new reserved IPv6 reserved to a region, send a POST request to `/v2/reserved_ipv6` with the `region_slug` attribute.

On creation, a reserved IPv6 must be reserved to a region. * To create a new reserved IPv6 reserved to a region, send a POST request to `/v2/reserved_ipv6` with the `region_slug` attribute.

Authentication

Connected account required

Scopes

reserved_ip:create

Tags

Reserved IPv6
Delete a Reserved IPv6DIGITALOCEAN_RESERVED_IPV6_DELETETo delete a reserved IP and remove it from your account, send a DELETE request to `/v2/reserved_ipv6/$RESERVED_IPV6`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

To delete a reserved IP and remove it from your account, send a DELETE request to `/v2/reserved_ipv6/$RESERVED_IPV6`. A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

Authentication

Connected account required

Scopes

reserved_ip:delete

Tags

Reserved IPv6
Retrieve an Existing Reserved IPv6DIGITALOCEAN_RESERVED_IPV6_GETTo show information about a reserved IPv6, send a GET request to `/v2/reserved_ipv6/$RESERVED_IPV6`.

To show information about a reserved IPv6, send a GET request to `/v2/reserved_ipv6/$RESERVED_IPV6`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Reserved IPv6
List All Reserved IPv6sDIGITALOCEAN_RESERVED_IPV6_LISTTo list all of the reserved IPv6s available on your account, send a GET request to `/v2/reserved_ipv6`.

To list all of the reserved IPv6s available on your account, send a GET request to `/v2/reserved_ipv6`.

Authentication

Connected account required

Scopes

reserved_ip:read

Tags

Reserved IPv6
Create ScanDIGITALOCEAN_SECURITY_CREATE_SCANTo create a CSPM scan, send a POST request to `/v2/security/scans`.

To create a CSPM scan, send a POST request to `/v2/security/scans`.

Authentication

Connected account required

Scopes

security:create

Tags

Security
Create Scan RuleDIGITALOCEAN_SECURITY_CREATE_SCAN_RULETo mark a scan finding as a false positive, send a POST request to `/v2/security/scans/rules` to create a new scan rule.

To mark a scan finding as a false positive, send a POST request to `/v2/security/scans/rules` to create a new scan rule.

Authentication

Connected account required

Scopes

security:create

Tags

Security
Create SecretDIGITALOCEAN_SECURITY_CREATE_SECRETTo create a secret, send a POST request to `/v2/security/secrets`.

To create a secret, send a POST request to `/v2/security/secrets`.

Authentication

Connected account required

Scopes

security:create

Tags

Security
Create SuppressionDIGITALOCEAN_SECURITY_CREATE_SUPPRESSIONTo suppress scan findings, send a POST request to `/v2/security/settings/suppressions`.

To suppress scan findings, send a POST request to `/v2/security/settings/suppressions`.

Authentication

Connected account required

Scopes

security:create

Tags

Security
Delete SecretDIGITALOCEAN_SECURITY_DELETE_SECRETTo request deletion of a secret, send a DELETE request to `/v2/security/secrets/{secret}`.

To request deletion of a secret, send a DELETE request to `/v2/security/secrets/{secret}`.

Authentication

Connected account required

Scopes

security:delete

Tags

Security
Delete SuppressionDIGITALOCEAN_SECURITY_DELETE_SUPPRESSIONTo remove a suppression, send a DELETE request to `/v2/security/settings/suppressions/{suppression_uuid}`.

To remove a suppression, send a DELETE request to `/v2/security/settings/suppressions/{suppression_uuid}`.

Authentication

Connected account required

Scopes

security:delete

Tags

Security
Get Latest ScanDIGITALOCEAN_SECURITY_GET_LATEST_SCANTo get the latest CSPM scan, send a GET request to `/v2/security/scans/latest`.

To get the latest CSPM scan, send a GET request to `/v2/security/scans/latest`.

Authentication

Connected account required

Scopes

security:read

Tags

Security
Get ScanDIGITALOCEAN_SECURITY_GET_SCANTo get a CSPM scan by ID, send a GET request to `/v2/security/scans/{scan_id}`.

To get a CSPM scan by ID, send a GET request to `/v2/security/scans/{scan_id}`.

Authentication

Connected account required

Scopes

security:read

Tags

Security
Get SecretDIGITALOCEAN_SECURITY_GET_SECRETTo retrieve a secret and its values, send a GET request to `/v2/security/secrets/{secret}`.

To retrieve a secret and its values, send a GET request to `/v2/security/secrets/{secret}`.

Authentication

Connected account required

Scopes

security:read

Tags

Security
List Finding Affected ResourcesDIGITALOCEAN_SECURITY_LIST_SCAN_FINDING_AFFECTED_RESOURCESTo get affected resources for a scan finding, send a GET request to `/v2/security/scans/{scan_id}/findings/{finding_uuid}/affected_resources`.

To get affected resources for a scan finding, send a GET request to `/v2/security/scans/{scan_id}/findings/{finding_uuid}/affected_resources`.

Authentication

Connected account required

Scopes

security:read

Tags

Security
List ScansDIGITALOCEAN_SECURITY_LIST_SCANSTo list all CSPM scans, send a GET request to `/v2/security/scans`.

To list all CSPM scans, send a GET request to `/v2/security/scans`.

Authentication

Connected account required

Scopes

security:read

Tags

Security
List Secret VersionsDIGITALOCEAN_SECURITY_LIST_SECRET_VERSIONSTo list all versions of a secret, send a GET request to `/v2/security/secrets/{secret}/versions`.

To list all versions of a secret, send a GET request to `/v2/security/secrets/{secret}/versions`.

Authentication

Connected account required

Scopes

security:read

Tags

Security
List SecretsDIGITALOCEAN_SECURITY_LIST_SECRETSTo list secrets across all configured regions, send a GET request to `/v2/security/secrets`.

To list secrets across all configured regions, send a GET request to `/v2/security/secrets`.

Authentication

Connected account required

Scopes

security:read

Tags

Security
List SettingsDIGITALOCEAN_SECURITY_LIST_SETTINGSTo list CSPM scan settings, send a GET request to `/v2/security/settings`.

To list CSPM scan settings, send a GET request to `/v2/security/settings`.

Authentication

Connected account required

Scopes

security:read

Tags

Security
Restore SecretDIGITALOCEAN_SECURITY_POST_RESTORE_SECRETTo restore a deleted secret, send a POST request to `/v2/security/secrets/{secret}/restore`.

To restore a deleted secret, send a POST request to `/v2/security/secrets/{secret}/restore`.

Authentication

Connected account required

Scopes

security:create

Tags

Security
Update SecretDIGITALOCEAN_SECURITY_UPDATE_SECRETTo update a secret, send a PUT request to `/v2/security/secrets/{secret}`.

To update a secret, send a PUT request to `/v2/security/secrets/{secret}`.

Authentication

Connected account required

Scopes

security:update

Tags

Security
Update PlanDIGITALOCEAN_SECURITY_UPDATE_SETTINGS_PLANTo update CSPM plan coverage, send a PUT request to `/v2/security/settings/plan`.

To update CSPM plan coverage, send a PUT request to `/v2/security/settings/plan`.

Authentication

Connected account required

Scopes

security:update

Tags

Security
List All Droplet SizesDIGITALOCEAN_SIZES_LISTTo list all of available Droplet sizes, send a GET request to `/v2/sizes`. The response will be a JSON object with a key called `sizes`. The value of this will be an array of `size` objects each of which contain the standard size attributes.

To list all of available Droplet sizes, send a GET request to `/v2/sizes`. The response will be a JSON object with a key called `sizes`. The value of this will be an array of `size` objects each of which contain the standard size attributes.

Authentication

Connected account required

Scopes

sizes:readregions:read

Tags

Sizes
Delete a SnapshotDIGITALOCEAN_SNAPSHOTS_DELETEBoth Droplet and volume snapshots are managed through the `/v2/snapshots/` endpoint. To delete a snapshot, send a DELETE request to `/v2/snapshots/$SNAPSHOT_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Both Droplet and volume snapshots are managed through the `/v2/snapshots/` endpoint. To delete a snapshot, send a DELETE request to `/v2/snapshots/$SNAPSHOT_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

image:deletesnapshot:delete

Tags

Snapshots
Retrieve an Existing SnapshotDIGITALOCEAN_SNAPSHOTS_GETTo retrieve information about a snapshot, send a GET request to `/v2/snapshots/$SNAPSHOT_ID`. The response will be a JSON object with a key called `snapshot`. The value of this will be an snapshot object containing the standard snapshot attributes.

To retrieve information about a snapshot, send a GET request to `/v2/snapshots/$SNAPSHOT_ID`. The response will be a JSON object with a key called `snapshot`. The value of this will be an snapshot object containing the standard snapshot attributes.

Authentication

Connected account required

Scopes

snapshot:readblock_storage_snapshot:read

Tags

Snapshots
List All SnapshotsDIGITALOCEAN_SNAPSHOTS_LISTTo list all of the snapshots available on your account, send a GET request to `/v2/snapshots`. The response will be a JSON object with a key called `snapshots`. This will be set to an array of `snapshot` objects, each of which will contain the standard snapshot attributes. ### Filtering Results by Resource Type It's possible to request filtered results by including certain query parameters. #### List Droplet Snapshots To retrieve only snapshots based on Droplets, include the `resource_type` query parameter set to `droplet`. For example, `/v2/snapshots?resource_type=droplet`. #### List Volume Snapshots To retrieve only snapshots based on volumes, include the `resource_type` query parameter set to `volume`. For example, `/v2/snapshots?resource_type=volume`.

To list all of the snapshots available on your account, send a GET request to `/v2/snapshots`. The response will be a JSON object with a key called `snapshots`. This will be set to an array of `snapshot` objects, each of which will contain the standard snapshot attributes. ### Filtering Results by Resource Type It's possible to request filtered results by including certain query parameters. #### List Droplet Snapshots To retrieve only snapshots based on Droplets, include the `resource_type` query parameter set to `droplet`. For example, `/v2/snapshots?resource_type=droplet`. #### List Volume Snapshots To retrieve only snapshots based on volumes, include the `resource_type` query parameter set to `volume`. For example, `/v2/snapshots?resource_type=volume`.

Authentication

Connected account required

Scopes

snapshot:read

Tags

Snapshots
Create a New Spaces Access KeyDIGITALOCEAN_SPACES_KEY_CREATETo create a new Spaces Access Key, send a POST request to `/v2/spaces/keys`. At the moment, you cannot mix a fullaccess permission with scoped permissions. A fullaccess permission will be prioritized if fullaccess and scoped permissions are both added.

To create a new Spaces Access Key, send a POST request to `/v2/spaces/keys`. At the moment, you cannot mix a fullaccess permission with scoped permissions. A fullaccess permission will be prioritized if fullaccess and scoped permissions are both added.

Authentication

Connected account required

Scopes

spaces_key:create_credentials

Tags

Spaces Keys
Delete a Spaces Access KeyDIGITALOCEAN_SPACES_KEY_DELETETo delete a Spaces Access Key, send a DELETE request to `/v2/spaces/keys/$ACCESS_KEY`. A successful request will return a `204 No Content` status code.

To delete a Spaces Access Key, send a DELETE request to `/v2/spaces/keys/$ACCESS_KEY`. A successful request will return a `204 No Content` status code.

Authentication

Connected account required

Scopes

spaces_key:delete

Tags

Spaces Keys
Get a Spaces Access KeyDIGITALOCEAN_SPACES_KEY_GETTo get a Spaces Access Key, send a GET request to `/v2/spaces/keys/$ACCESS_KEY`. A successful request will return the Access Key.

To get a Spaces Access Key, send a GET request to `/v2/spaces/keys/$ACCESS_KEY`. A successful request will return the Access Key.

Authentication

Connected account required

Scopes

spaces_key:read

Tags

Spaces Keys
List Spaces Access KeysDIGITALOCEAN_SPACES_KEY_LISTTo list Spaces Access Key, send a GET request to `/v2/spaces/keys`. Sort parameter must be used with Sort Direction.

To list Spaces Access Key, send a GET request to `/v2/spaces/keys`. Sort parameter must be used with Sort Direction.

Authentication

Connected account required

Scopes

spaces_key:read

Tags

Spaces Keys
Update Spaces Access KeysDIGITALOCEAN_SPACES_KEY_PATCHTo update Spaces Access Key, send a PUT or PATCH request to `/v2/spaces/keys/$ACCESS_KEY`. At the moment, you cannot convert a fullaccess key to a scoped key or vice versa. You can only update the name of the key.

To update Spaces Access Key, send a PUT or PATCH request to `/v2/spaces/keys/$ACCESS_KEY`. At the moment, you cannot convert a fullaccess key to a scoped key or vice versa. You can only update the name of the key.

Authentication

Connected account required

Scopes

spaces_key:update

Tags

Spaces Keys
Update Spaces Access KeysDIGITALOCEAN_SPACES_KEY_UPDATETo update Spaces Access Key, send a PUT or PATCH request to `/v2/spaces/keys/$ACCESS_KEY`. At the moment, you cannot convert a fullaccess key to a scoped key or vice versa. You can only update the name of the key.

To update Spaces Access Key, send a PUT or PATCH request to `/v2/spaces/keys/$ACCESS_KEY`. At the moment, you cannot convert a fullaccess key to a scoped key or vice versa. You can only update the name of the key.

Authentication

Connected account required

Scopes

spaces_key:update

Tags

Spaces Keys
Create a New SSH KeyDIGITALOCEAN_SSH_KEYS_CREATETo add a new SSH public key to your DigitalOcean account, send a POST request to `/v2/account/keys`. Set the `name` attribute to the name you wish to use and the `public_key` attribute to the full public key you are adding.

To add a new SSH public key to your DigitalOcean account, send a POST request to `/v2/account/keys`. Set the `name` attribute to the name you wish to use and the `public_key` attribute to the full public key you are adding.

Authentication

Connected account required

Scopes

ssh_key:create

Tags

SSH Keys
Delete an SSH KeyDIGITALOCEAN_SSH_KEYS_DELETETo destroy a public SSH key that you have in your account, send a DELETE request to `/v2/account/keys/$KEY_ID` or `/v2/account/keys/$KEY_FINGERPRINT`. A 204 status will be returned, indicating that the action was successful and that the response body is empty.

To destroy a public SSH key that you have in your account, send a DELETE request to `/v2/account/keys/$KEY_ID` or `/v2/account/keys/$KEY_FINGERPRINT`. A 204 status will be returned, indicating that the action was successful and that the response body is empty.

Authentication

Connected account required

Scopes

ssh_key:delete

Tags

SSH Keys
Retrieve an Existing SSH KeyDIGITALOCEAN_SSH_KEYS_GETTo get information about a key, send a GET request to `/v2/account/keys/$KEY_ID` or `/v2/account/keys/$KEY_FINGERPRINT`. The response will be a JSON object with the key `ssh_key` and value an ssh_key object which contains the standard ssh_key attributes.

To get information about a key, send a GET request to `/v2/account/keys/$KEY_ID` or `/v2/account/keys/$KEY_FINGERPRINT`. The response will be a JSON object with the key `ssh_key` and value an ssh_key object which contains the standard ssh_key attributes.

Authentication

Connected account required

Scopes

ssh_key:read

Tags

SSH Keys
List All SSH KeysDIGITALOCEAN_SSH_KEYS_LISTTo list all of the keys in your account, send a GET request to `/v2/account/keys`. The response will be a JSON object with a key set to `ssh_keys`. The value of this will be an array of ssh_key objects, each of which contains the standard ssh_key attributes.

To list all of the keys in your account, send a GET request to `/v2/account/keys`. The response will be a JSON object with a key set to `ssh_keys`. The value of this will be an array of ssh_key objects, each of which contains the standard ssh_key attributes.

Authentication

Connected account required

Scopes

ssh_key:read

Tags

SSH Keys
Update an SSH Key's NameDIGITALOCEAN_SSH_KEYS_UPDATETo update the name of an SSH key, send a PUT request to either `/v2/account/keys/$SSH_KEY_ID` or `/v2/account/keys/$SSH_KEY_FINGERPRINT`. Set the `name` attribute to the new name you want to use.

To update the name of an SSH key, send a PUT request to either `/v2/account/keys/$SSH_KEY_ID` or `/v2/account/keys/$SSH_KEY_FINGERPRINT`. Set the `name` attribute to the new name you want to use.

Authentication

Connected account required

Scopes

ssh_key:update

Tags

SSH Keys
Tag a ResourceDIGITALOCEAN_TAGS_ASSIGN_RESOURCESResources can be tagged by sending a POST request to `/v2/tags/$TAG_NAME/resources` with an array of json objects containing `resource_id` and `resource_type` attributes. Currently only tagging of Droplets, Databases, Images, Volumes, and Volume Snapshots is supported. `resource_type` is expected to be the string `droplet`, `database`, `image`, `volume` or `volume_snapshot`. `resource_id` is expected to be the ID of the resource as a string. In order to tag a resource, you must have both `tag:create` and `<resource type>:update` scopes. For example, to tag a Droplet, you must have `tag:create` and `droplet:update`.

Resources can be tagged by sending a POST request to `/v2/tags/$TAG_NAME/resources` with an array of json objects containing `resource_id` and `resource_type` attributes. Currently only tagging of Droplets, Databases, Images, Volumes, and Volume Snapshots is supported. `resource_type` is expected to be the string `droplet`, `database`, `image`, `volume` or `volume_snapshot`. `resource_id` is expected to be the ID of the resource as a string. In order to tag a resource, you must have both `tag:create` and `<resource type>:update` scopes. For example, to tag a Droplet, you must have `tag:create` and `droplet:update`.

Authentication

Connected account required

Scopes

tag:create

Tags

Tags
Create a New TagDIGITALOCEAN_TAGS_CREATETo create a tag you can send a POST request to `/v2/tags` with a `name` attribute.

To create a tag you can send a POST request to `/v2/tags` with a `name` attribute.

Authentication

Connected account required

Scopes

tag:create

Tags

Tags
Delete a TagDIGITALOCEAN_TAGS_DELETEA tag can be deleted by sending a `DELETE` request to `/v2/tags/$TAG_NAME`. Deleting a tag also untags all the resources that have previously been tagged by the Tag

A tag can be deleted by sending a `DELETE` request to `/v2/tags/$TAG_NAME`. Deleting a tag also untags all the resources that have previously been tagged by the Tag

Authentication

Connected account required

Scopes

tag:delete

Tags

Tags
Retrieve a TagDIGITALOCEAN_TAGS_GETTo retrieve an individual tag, you can send a `GET` request to `/v2/tags/$TAG_NAME`. This endpoint will only return tagged resources that you are authorized to see. For example, to see tagged Droplets, include the `droplet:read` scope.

To retrieve an individual tag, you can send a `GET` request to `/v2/tags/$TAG_NAME`. This endpoint will only return tagged resources that you are authorized to see. For example, to see tagged Droplets, include the `droplet:read` scope.

Authentication

Connected account required

Scopes

tag:read

Tags

Tags
List All TagsDIGITALOCEAN_TAGS_LISTTo list all of your tags, you can send a GET request to `/v2/tags`. This endpoint will only return tagged resources that you are authorized to see (e.g. Droplets will only be returned if you have `droplet:read`).

To list all of your tags, you can send a GET request to `/v2/tags`. This endpoint will only return tagged resources that you are authorized to see (e.g. Droplets will only be returned if you have `droplet:read`).

Authentication

Connected account required

Scopes

tag:read

Tags

Tags
Untag a ResourceDIGITALOCEAN_TAGS_UNASSIGN_RESOURCESResources can be untagged by sending a DELETE request to `/v2/tags/$TAG_NAME/resources` with an array of json objects containing `resource_id` and `resource_type` attributes. Currently only untagging of Droplets, Databases, Images, Volumes, and Volume Snapshots is supported. `resource_type` is expected to be the string `droplet`, `database`, `image`, `volume` or `volume_snapshot`. `resource_id` is expected to be the ID of the resource as a string. In order to untag a resource, you must have both `tag:delete` and `<resource type>:update` scopes. For example, to untag a Droplet, you must have `tag:delete` and `droplet:update`.

Resources can be untagged by sending a DELETE request to `/v2/tags/$TAG_NAME/resources` with an array of json objects containing `resource_id` and `resource_type` attributes. Currently only untagging of Droplets, Databases, Images, Volumes, and Volume Snapshots is supported. `resource_type` is expected to be the string `droplet`, `database`, `image`, `volume` or `volume_snapshot`. `resource_id` is expected to be the ID of the resource as a string. In order to untag a resource, you must have both `tag:delete` and `<resource type>:update` scopes. For example, to untag a Droplet, you must have `tag:delete` and `droplet:update`.

Authentication

Connected account required

Scopes

tag:delete

Tags

Tags
Create a New AlertDIGITALOCEAN_UPTIME_CREATE_ALERTTo create an Uptime alert, send a POST request to `/v2/uptime/checks/$CHECK_ID/alerts` specifying the attributes in the table below in the JSON body.

To create an Uptime alert, send a POST request to `/v2/uptime/checks/$CHECK_ID/alerts` specifying the attributes in the table below in the JSON body.

Authentication

Connected account required

Scopes

uptime:createuptime:update

Tags

Uptime
Create a New CheckDIGITALOCEAN_UPTIME_CREATE_CHECKTo create an Uptime check, send a POST request to `/v2/uptime/checks` specifying the attributes in the table below in the JSON body.

To create an Uptime check, send a POST request to `/v2/uptime/checks` specifying the attributes in the table below in the JSON body.

Authentication

Connected account required

Scopes

uptime:create

Tags

Uptime
Delete an AlertDIGITALOCEAN_UPTIME_DELETE_ALERTTo delete an Uptime alert, send a DELETE request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`. A 204 status code with no body will be returned in response to a successful request.

To delete an Uptime alert, send a DELETE request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`. A 204 status code with no body will be returned in response to a successful request.

Authentication

Connected account required

Scopes

uptime:deleteuptime:update

Tags

Uptime
Delete a CheckDIGITALOCEAN_UPTIME_DELETE_CHECKTo delete an Uptime check, send a DELETE request to `/v2/uptime/checks/$CHECK_ID`. A 204 status code with no body will be returned in response to a successful request. Deleting a check will also delete alerts associated with the check.

To delete an Uptime check, send a DELETE request to `/v2/uptime/checks/$CHECK_ID`. A 204 status code with no body will be returned in response to a successful request. Deleting a check will also delete alerts associated with the check.

Authentication

Connected account required

Scopes

uptime:delete

Tags

Uptime
Retrieve an Existing AlertDIGITALOCEAN_UPTIME_GET_ALERTTo show information about an existing alert, send a GET request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`.

To show information about an existing alert, send a GET request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`.

Authentication

Connected account required

Scopes

uptime:read

Tags

Uptime
Retrieve an Existing CheckDIGITALOCEAN_UPTIME_GET_CHECKTo show information about an existing check, send a GET request to `/v2/uptime/checks/$CHECK_ID`.

To show information about an existing check, send a GET request to `/v2/uptime/checks/$CHECK_ID`.

Authentication

Connected account required

Scopes

uptime:read

Tags

Uptime
Retrieve Check StateDIGITALOCEAN_UPTIME_GET_CHECK_STATETo show information about an existing check's state, send a GET request to `/v2/uptime/checks/$CHECK_ID/state`.

To show information about an existing check's state, send a GET request to `/v2/uptime/checks/$CHECK_ID/state`.

Authentication

Connected account required

Scopes

uptime:read

Tags

Uptime
List All AlertsDIGITALOCEAN_UPTIME_LIST_ALERTSTo list all of the alerts for an Uptime check, send a GET request to `/v2/uptime/checks/$CHECK_ID/alerts`.

To list all of the alerts for an Uptime check, send a GET request to `/v2/uptime/checks/$CHECK_ID/alerts`.

Authentication

Connected account required

Scopes

uptime:read

Tags

Uptime
List All ChecksDIGITALOCEAN_UPTIME_LIST_CHECKSTo list all of the Uptime checks on your account, send a GET request to `/v2/uptime/checks`.

To list all of the Uptime checks on your account, send a GET request to `/v2/uptime/checks`.

Authentication

Connected account required

Scopes

uptime:read

Tags

Uptime
Update an AlertDIGITALOCEAN_UPTIME_UPDATE_ALERTTo update the settings of an Uptime alert, send a PUT request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`.

To update the settings of an Uptime alert, send a PUT request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`.

Authentication

Connected account required

Scopes

uptime:update

Tags

Uptime
Update a CheckDIGITALOCEAN_UPTIME_UPDATE_CHECKTo update the settings of an Uptime check, send a PUT request to `/v2/uptime/checks/$CHECK_ID`.

To update the settings of an Uptime check, send a PUT request to `/v2/uptime/checks/$CHECK_ID`.

Authentication

Connected account required

Scopes

uptime:update

Tags

Uptime
Create a New Vector DatabaseDIGITALOCEAN_VECTOR_DATABASES_CREATETo create a vector database, send a POST request to `/v2/vector-databases`. The response body contains a JSON object with a `vector_db` key holding the newly created database. Its initial `status` is `creating` and changes to `active` once the database is ready to receive traffic.

To create a vector database, send a POST request to `/v2/vector-databases`. The response body contains a JSON object with a `vector_db` key holding the newly created database. Its initial `status` is `creating` and changes to `active` once the database is ready to receive traffic.

Authentication

Connected account required

Scopes

database:create

Tags

Vector Databases
Delete a Vector DatabaseDIGITALOCEAN_VECTOR_DATABASES_DELETETo delete a vector database, send a DELETE request to `/v2/vector-databases/{id}`. Deleting a vector database is irreversible and destroys the underlying instance along with its data.

To delete a vector database, send a DELETE request to `/v2/vector-databases/{id}`. Deleting a vector database is irreversible and destroys the underlying instance along with its data.

Authentication

Connected account required

Scopes

database:delete

Tags

Vector Databases
Retrieve an Existing Vector DatabaseDIGITALOCEAN_VECTOR_DATABASES_GETTo show information about an existing vector database, send a GET request to `/v2/vector-databases/{id}`. The response body contains a JSON object with a `vector_db` key holding the standard vector database attributes, including an embedded `endpoints` object with the connection information needed to access the database.

To show information about an existing vector database, send a GET request to `/v2/vector-databases/{id}`. The response body contains a JSON object with a `vector_db` key holding the standard vector database attributes, including an embedded `endpoints` object with the connection information needed to access the database.

Authentication

Connected account required

Scopes

database:read

Tags

Vector Databases
Retrieve Admin Credentials for a Vector DatabaseDIGITALOCEAN_VECTOR_DATABASES_GET_CREDENTIALSTo retrieve the admin credentials for a vector database, send a GET request to `/v2/vector-databases/{id}/credentials`. The response body contains the `user_id` and `api_token` for the admin user provisioned on the cluster.

To retrieve the admin credentials for a vector database, send a GET request to `/v2/vector-databases/{id}/credentials`. The response body contains the `user_id` and `api_token` for the admin user provisioned on the cluster.

Authentication

Connected account required

Scopes

database:view_credentials

Tags

Vector Databases
Retrieve the Status of a RestoreDIGITALOCEAN_VECTOR_DATABASES_GET_RESTORE_STATUSTo check the status of a restore operation, send a GET request to `/v2/vector-databases/{id}/backups/{backup_id}/restore`. The response body contains the current status of the restore.

To check the status of a restore operation, send a GET request to `/v2/vector-databases/{id}/backups/{backup_id}/restore`. The response body contains the current status of the restore.

Authentication

Connected account required

Scopes

database:read

Tags

Vector Databases
List All Vector DatabasesDIGITALOCEAN_VECTOR_DATABASES_LISTTo list all of the vector databases on your account, send a GET request to `/v2/vector-databases`. Use the `page` and `per_page` query parameters to paginate the results. The response body contains a `vector_dbs` array of vector database objects and a `total` field with the overall count.

To list all of the vector databases on your account, send a GET request to `/v2/vector-databases`. Use the `page` and `per_page` query parameters to paginate the results. The response body contains a `vector_dbs` array of vector database objects and a `total` field with the overall count.

Authentication

Connected account required

Scopes

database:read

Tags

Vector Databases
List Backups for a Vector DatabaseDIGITALOCEAN_VECTOR_DATABASES_LIST_BACKUPSTo list the available backups for a vector database, send a GET request to `/v2/vector-databases/{id}/backups`. Only backups with a status of `SUCCESS` are returned.

To list the available backups for a vector database, send a GET request to `/v2/vector-databases/{id}/backups`. Only backups with a status of `SUCCESS` are returned.

Authentication

Connected account required

Scopes

database:read

Tags

Vector Databases
Resize a Vector DatabaseDIGITALOCEAN_VECTOR_DATABASES_POST_RESIZETo resize a vector database, send a POST request to `/v2/vector-databases/{id}/resize`. This changes the database's resource tier. The response body contains a JSON object with the updated vector database.

To resize a vector database, send a POST request to `/v2/vector-databases/{id}/resize`. This changes the database's resource tier. The response body contains a JSON object with the updated vector database.

Authentication

Connected account required

Scopes

database:update

Tags

Vector Databases
Restore a Vector Database from a BackupDIGITALOCEAN_VECTOR_DATABASES_POST_RESTORE_BACKUPTo restore a vector database from a backup, send a POST request to `/v2/vector-databases/{id}/backups/{backup_id}/restore`. The restore runs asynchronously; use the restore-status endpoint to monitor its progress.

To restore a vector database from a backup, send a POST request to `/v2/vector-databases/{id}/backups/{backup_id}/restore`. The restore runs asynchronously; use the restore-status endpoint to monitor its progress.

Authentication

Connected account required

Scopes

database:update

Tags

Vector Databases
Update a Vector DatabaseDIGITALOCEAN_VECTOR_DATABASES_UPDATETo update an existing vector database, send a PUT request to `/v2/vector-databases/{id}`. The response body contains a JSON object with a `vector_db` key holding the updated vector database.

To update an existing vector database, send a PUT request to `/v2/vector-databases/{id}`. The response body contains a JSON object with a `vector_db` key holding the updated vector database.

Authentication

Connected account required

Scopes

database:update

Tags

Vector Databases
Update Tags on a Vector DatabaseDIGITALOCEAN_VECTOR_DATABASES_UPDATE_TAGSTo update the tags on a vector database, send a PUT request to `/v2/vector-databases/{id}/tags`. The supplied set of tags replaces the database's existing tags.

To update the tags on a vector database, send a PUT request to `/v2/vector-databases/{id}/tags`. The supplied set of tags replaces the database's existing tags.

Authentication

Connected account required

Scopes

database:update

Tags

Vector Databases
Retrieve an Existing Volume ActionDIGITALOCEAN_VOLUME_ACTIONS_GETTo retrieve the status of a volume action, send a GET request to `/v2/volumes/$VOLUME_ID/actions/$ACTION_ID`.

To retrieve the status of a volume action, send a GET request to `/v2/volumes/$VOLUME_ID/actions/$ACTION_ID`.

Authentication

Connected account required

Scopes

block_storage_action:read

Tags

Block Storage Actions
List All Actions for a VolumeDIGITALOCEAN_VOLUME_ACTIONS_LISTTo retrieve all actions that have been executed on a volume, send a GET request to `/v2/volumes/$VOLUME_ID/actions`.

To retrieve all actions that have been executed on a volume, send a GET request to `/v2/volumes/$VOLUME_ID/actions`.

Authentication

Connected account required

Scopes

block_storage_action:read

Tags

Block Storage Actions
Initiate A Block Storage Action By Volume NameDIGITALOCEAN_VOLUME_ACTIONS_POSTTo initiate an action on a block storage volume by Name, send a POST request to `~/v2/volumes/actions`. The body should contain the appropriate attributes for the respective action. ## Attach a Block Storage Volume to a Droplet | Attribute | Details | | ----------- | ------------------------------------------------------------------- | | type | This must be `attach` | | volume_name | The name of the block storage volume | | droplet_id | Set to the Droplet's ID | | region | Set to the slug representing the region where the volume is located | Each volume may only be attached to a single Droplet. However, up to fifteen volumes may be attached to a Droplet at a time. Pre-formatted volumes will be automatically mounted to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS Droplets created on or after April 26, 2018 when attached. On older Droplets, [additional configuration](https://docs.digitalocean.com/products/volumes/how-to/mount/) is required. ## Remove a Block Storage Volume from a Droplet | Attribute | Details | | ----------- | ------------------------------------------------------------------- | | type | This must be `detach` | | volume_name | The name of the block storage volume | | droplet_id | Set to the Droplet's ID | | region | Set to the slug representing the region where the volume is located |

To initiate an action on a block storage volume by Name, send a POST request to `~/v2/volumes/actions`. The body should contain the appropriate attributes for the respective action. ## Attach a Block Storage Volume to a Droplet | Attribute | Details | | ----------- | ------------------------------------------------------------------- | | type | This must be `attach` | | volume_name | The name of the block storage volume | | droplet_id | Set to the Droplet's ID | | region | Set to the slug representing the region where the volume is located | Each volume may only be attached to a single Droplet. However, up to fifteen volumes may be attached to a Droplet at a time. Pre-formatted volumes will be automatically mounted to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS Droplets created on or after April 26, 2018 when attached. On older Droplets, [additional configuration](https://docs.digitalocean.com/products/volumes/how-to/mount/) is required. ## Remove a Block Storage Volume from a Droplet | Attribute | Details | | ----------- | ------------------------------------------------------------------- | | type | This must be `detach` | | volume_name | The name of the block storage volume | | droplet_id | Set to the Droplet's ID | | region | Set to the slug representing the region where the volume is located |

Authentication

Connected account required

Scopes

block_storage_action:createapi:write

Tags

Block Storage Actions
Initiate A Block Storage Action By Volume IdDIGITALOCEAN_VOLUME_ACTIONS_POST_BY_IDTo initiate an action on a block storage volume by Id, send a POST request to `~/v2/volumes/$VOLUME_ID/actions`. The body should contain the appropriate attributes for the respective action. ## Attach a Block Storage Volume to a Droplet | Attribute | Details | | ---------- | ------------------------------------------------------------------- | | type | This must be `attach` | | droplet_id | Set to the Droplet's ID | | region | Set to the slug representing the region where the volume is located | Each volume may only be attached to a single Droplet. However, up to fifteen volumes may be attached to a Droplet at a time. Pre-formatted volumes will be automatically mounted to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS Droplets created on or after April 26, 2018 when attached. On older Droplets, [additional configuration](https://docs.digitalocean.com/products/volumes/how-to/mount/) is required. ## Remove a Block Storage Volume from a Droplet | Attribute | Details | | ---------- | ------------------------------------------------------------------- | | type | This must be `detach` | | droplet_id | Set to the Droplet's ID | | region | Set to the slug representing the region where the volume is located | ## Resize a Volume | Attribute | Details | | -------------- | ------------------------------------------------------------------- | | type | This must be `resize` | | size_gigabytes | The new size of the block storage volume in GiB (1024^3) | | region | Set to the slug representing the region where the volume is located | Volumes may only be resized upwards. The maximum size for a volume is 16TiB.

To initiate an action on a block storage volume by Id, send a POST request to `~/v2/volumes/$VOLUME_ID/actions`. The body should contain the appropriate attributes for the respective action. ## Attach a Block Storage Volume to a Droplet | Attribute | Details | | ---------- | ------------------------------------------------------------------- | | type | This must be `attach` | | droplet_id | Set to the Droplet's ID | | region | Set to the slug representing the region where the volume is located | Each volume may only be attached to a single Droplet. However, up to fifteen volumes may be attached to a Droplet at a time. Pre-formatted volumes will be automatically mounted to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS Droplets created on or after April 26, 2018 when attached. On older Droplets, [additional configuration](https://docs.digitalocean.com/products/volumes/how-to/mount/) is required. ## Remove a Block Storage Volume from a Droplet | Attribute | Details | | ---------- | ------------------------------------------------------------------- | | type | This must be `detach` | | droplet_id | Set to the Droplet's ID | | region | Set to the slug representing the region where the volume is located | ## Resize a Volume | Attribute | Details | | -------------- | ------------------------------------------------------------------- | | type | This must be `resize` | | size_gigabytes | The new size of the block storage volume in GiB (1024^3) | | region | Set to the slug representing the region where the volume is located | Volumes may only be resized upwards. The maximum size for a volume is 16TiB.

Authentication

Connected account required

Scopes

block_storage_action:create

Tags

Block Storage Actions
Create Snapshot from a VolumeDIGITALOCEAN_VOLUME_SNAPSHOTS_CREATETo create a snapshot from a volume, sent a POST request to `/v2/volumes/$VOLUME_ID/snapshots`.

To create a snapshot from a volume, sent a POST request to `/v2/volumes/$VOLUME_ID/snapshots`.

Authentication

Connected account required

Scopes

block_storage_snapshot:create

Tags

Block Storage
Delete a Volume SnapshotDIGITALOCEAN_VOLUME_SNAPSHOTS_DELETE_BY_IDTo delete a volume snapshot, send a DELETE request to `/v2/volumes/snapshots/$VOLUME_SNAPSHOT_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

To delete a volume snapshot, send a DELETE request to `/v2/volumes/snapshots/$VOLUME_SNAPSHOT_ID`. A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

Authentication

Connected account required

Scopes

block_storage_snapshot:delete

Tags

Block Storage
Retrieve an Existing Volume SnapshotDIGITALOCEAN_VOLUME_SNAPSHOTS_GET_BY_IDTo retrieve the details of a snapshot that has been created from a volume, send a GET request to `/v2/volumes/snapshots/$VOLUME_SNAPSHOT_ID`.

To retrieve the details of a snapshot that has been created from a volume, send a GET request to `/v2/volumes/snapshots/$VOLUME_SNAPSHOT_ID`.

Authentication

Connected account required

Scopes

block_storage_snapshot:read

Tags

Block Storage
List Snapshots for a VolumeDIGITALOCEAN_VOLUME_SNAPSHOTS_LISTTo retrieve the snapshots that have been created from a volume, send a GET request to `/v2/volumes/$VOLUME_ID/snapshots`.

To retrieve the snapshots that have been created from a volume, send a GET request to `/v2/volumes/$VOLUME_ID/snapshots`.

Authentication

Connected account required

Scopes

block_storage_snapshot:read

Tags

Block Storage
Create a New Block Storage VolumeDIGITALOCEAN_VOLUMES_CREATETo create a new volume, send a POST request to `/v2/volumes`. Optionally, a `filesystem_type` attribute may be provided in order to automatically format the volume's filesystem. Pre-formatted volumes are automatically mounted when attached to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS Droplets created on or after April 26, 2018. Attaching pre-formatted volumes to Droplets without support for auto-mounting is not recommended.

To create a new volume, send a POST request to `/v2/volumes`. Optionally, a `filesystem_type` attribute may be provided in order to automatically format the volume's filesystem. Pre-formatted volumes are automatically mounted when attached to Ubuntu, Debian, Fedora, Fedora Atomic, and CentOS Droplets created on or after April 26, 2018. Attaching pre-formatted volumes to Droplets without support for auto-mounting is not recommended.

Authentication

Connected account required

Scopes

api:writeblock_storage:create

Tags

Block Storage
Delete a Block Storage VolumeDIGITALOCEAN_VOLUMES_DELETETo delete a block storage volume, destroying all data and removing it from your account, send a DELETE request to `/v2/volumes/$VOLUME_ID`. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

To delete a block storage volume, destroying all data and removing it from your account, send a DELETE request to `/v2/volumes/$VOLUME_ID`. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

block_storage:delete

Tags

Block Storage
Delete a Block Storage Volume by NameDIGITALOCEAN_VOLUMES_DELETE_BY_NAMEBlock storage volumes may also be deleted by name by sending a DELETE request with the volume's **name** and the **region slug** for the region it is located in as query parameters to `/v2/volumes?name=$VOLUME_NAME&region=nyc1`. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Block storage volumes may also be deleted by name by sending a DELETE request with the volume's **name** and the **region slug** for the region it is located in as query parameters to `/v2/volumes?name=$VOLUME_NAME&region=nyc1`. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

Authentication

Connected account required

Scopes

block_storage:deleteapi:write

Tags

Block Storage
Retrieve an Existing Block Storage VolumeDIGITALOCEAN_VOLUMES_GETTo show information about a block storage volume, send a GET request to `/v2/volumes/$VOLUME_ID`.

To show information about a block storage volume, send a GET request to `/v2/volumes/$VOLUME_ID`.

Authentication

Connected account required

Scopes

block_storage:read

Tags

Block Storage
List All Block Storage VolumesDIGITALOCEAN_VOLUMES_LISTTo list all of the block storage volumes available on your account, send a GET request to `/v2/volumes`. ## Filtering Results ### By Region The `region` may be provided as query parameter in order to restrict results to volumes available in a specific region. For example: `/v2/volumes?region=nyc1` ### By Name It is also possible to list volumes on your account that match a specified name. To do so, send a GET request with the volume's name as a query parameter to `/v2/volumes?name=$VOLUME_NAME`. **Note:** You can only create one volume per region with the same name. ### By Name and Region It is also possible to retrieve information about a block storage volume by name. To do so, send a GET request with the volume's name and the region slug for the region it is located in as query parameters to `/v2/volumes?name=$VOLUME_NAME&region=nyc1`.

To list all of the block storage volumes available on your account, send a GET request to `/v2/volumes`. ## Filtering Results ### By Region The `region` may be provided as query parameter in order to restrict results to volumes available in a specific region. For example: `/v2/volumes?region=nyc1` ### By Name It is also possible to list volumes on your account that match a specified name. To do so, send a GET request with the volume's name as a query parameter to `/v2/volumes?name=$VOLUME_NAME`. **Note:** You can only create one volume per region with the same name. ### By Name and Region It is also possible to retrieve information about a block storage volume by name. To do so, send a GET request with the volume's name and the region slug for the region it is located in as query parameters to `/v2/volumes?name=$VOLUME_NAME&region=nyc1`.

Authentication

Connected account required

Scopes

api:readapi:writeblock_storage:read

Tags

Block Storage
Create a New VPC PeeringDIGITALOCEAN_VPC_PEERINGS_CREATETo create a new VPC Peering, send a POST request to `/v2/vpc_peerings` specifying a name and a list of two VPC IDs to peer. The response code, 202 Accepted, does not indicate the success or failure of the operation, just that the request has been accepted for processing.

To create a new VPC Peering, send a POST request to `/v2/vpc_peerings` specifying a name and a list of two VPC IDs to peer. The response code, 202 Accepted, does not indicate the success or failure of the operation, just that the request has been accepted for processing.

Authentication

Connected account required

Scopes

vpc_peering:create

Tags

VPC Peerings
Delete a VPC peeringDIGITALOCEAN_VPC_PEERINGS_DELETETo delete a VPC peering, send a DELETE request to `/v2/vpc_peerings/$VPC_PEERING_ID`.

To delete a VPC peering, send a DELETE request to `/v2/vpc_peerings/$VPC_PEERING_ID`.

Authentication

Connected account required

Scopes

vpc_peering:delete

Tags

VPC Peerings
Retrieve an Existing VPC PeeringDIGITALOCEAN_VPC_PEERINGS_GETTo show information about an existing VPC Peering, send a GET request to `/v2/vpc_peerings/$VPC_PEERING_ID`.

To show information about an existing VPC Peering, send a GET request to `/v2/vpc_peerings/$VPC_PEERING_ID`.

Authentication

Connected account required

Scopes

vpc_peering:read

Tags

VPC Peerings
List All VPC PeeringsDIGITALOCEAN_VPC_PEERINGS_LISTTo list all of the VPC peerings on your account, send a GET request to `/v2/vpc_peerings`.

To list all of the VPC peerings on your account, send a GET request to `/v2/vpc_peerings`.

Authentication

Connected account required

Scopes

vpc_peering:read

Tags

VPC Peerings
Update a VPC peeringDIGITALOCEAN_VPC_PEERINGS_PATCHTo update the name of a VPC peering, send a PATCH request to `/v2/vpc_peerings/$VPC_PEERING_ID` with the new `name` in the request body.

To update the name of a VPC peering, send a PATCH request to `/v2/vpc_peerings/$VPC_PEERING_ID` with the new `name` in the request body.

Authentication

Connected account required

Scopes

vpc_peering:update

Tags

VPC Peerings
Create a New VPC NAT GatewayDIGITALOCEAN_VPCNATGATEWAYS_CREATETo create a new VPC NAT gateway, send a POST request to `/v2/vpc_nat_gateways` setting the required attributes. The response body will contain a JSON object with a key called `vpc_nat_gateway` containing the standard attributes for the new VPC NAT gateway.

To create a new VPC NAT gateway, send a POST request to `/v2/vpc_nat_gateways` setting the required attributes. The response body will contain a JSON object with a key called `vpc_nat_gateway` containing the standard attributes for the new VPC NAT gateway.

Authentication

Connected account required

Scopes

nat_gateway:create

Tags

VPC NAT Gateways
Delete VPC NAT GatewayDIGITALOCEAN_VPCNATGATEWAYS_DELETETo destroy a VPC NAT Gateway, send a DELETE request to the `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID` endpoint. A successful response will include a 202 response code and no content.

To destroy a VPC NAT Gateway, send a DELETE request to the `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID` endpoint. A successful response will include a 202 response code and no content.

Authentication

Connected account required

Scopes

nat_gateway:delete

Tags

VPC NAT Gateways
Retrieve an Existing VPC NAT GatewayDIGITALOCEAN_VPCNATGATEWAYS_GETTo show information about an individual VPC NAT gateway, send a GET request to `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID`.

To show information about an individual VPC NAT gateway, send a GET request to `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID`.

Authentication

Connected account required

Scopes

nat_gateway:read

Tags

VPC NAT Gateways
List All VPC NAT GatewaysDIGITALOCEAN_VPCNATGATEWAYS_LISTTo list all VPC NAT gateways in your team, send a GET request to `/v2/vpc_nat_gateways`. The response body will be a JSON object with a key of `vpc_nat_gateways` containing an array of VPC NAT gateway objects. These each contain the standard VPC NAT gateway attributes.

To list all VPC NAT gateways in your team, send a GET request to `/v2/vpc_nat_gateways`. The response body will be a JSON object with a key of `vpc_nat_gateways` containing an array of VPC NAT gateway objects. These each contain the standard VPC NAT gateway attributes.

Authentication

Connected account required

Scopes

nat_gateway:read

Tags

VPC NAT Gateways
Update VPC NAT GatewayDIGITALOCEAN_VPCNATGATEWAYS_UPDATETo update the configuration of an existing VPC NAT Gateway, send a PUT request to `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID`. The request must contain a full representation of the VPC NAT Gateway including existing attributes.

To update the configuration of an existing VPC NAT Gateway, send a PUT request to `/v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID`. The request must contain a full representation of the VPC NAT Gateway including existing attributes.

Authentication

Connected account required

Scopes

nat_gateway:update

Tags

VPC NAT Gateways
Create a New VPCDIGITALOCEAN_VPCS_CREATETo create a VPC, send a POST request to `/v2/vpcs` specifying the attributes in the table below in the JSON body. **Note:** If you do not currently have a VPC network in a specific datacenter region, the first one that you create will be set as the default for that region. The default VPC for a region cannot be changed or deleted.

To create a VPC, send a POST request to `/v2/vpcs` specifying the attributes in the table below in the JSON body. **Note:** If you do not currently have a VPC network in a specific datacenter region, the first one that you create will be set as the default for that region. The default VPC for a region cannot be changed or deleted.

Authentication

Connected account required

Scopes

vpc:create

Tags

VPCs
Create a Peering with a VPCDIGITALOCEAN_VPCS_CREATE_PEERINGSTo create a new VPC peering for a given VPC, send a POST request to `/v2/vpcs/$VPC_ID/peerings`.

To create a new VPC peering for a given VPC, send a POST request to `/v2/vpcs/$VPC_ID/peerings`.

Authentication

Connected account required

Scopes

vpc_peering:create

Tags

VPCs
Delete a VPCDIGITALOCEAN_VPCS_DELETETo delete a VPC, send a DELETE request to `/v2/vpcs/$VPC_ID`. A 204 status code with no body will be returned in response to a successful request. The default VPC for a region can not be deleted. Additionally, a VPC can only be deleted if it does not contain any member resources. Attempting to delete a region's default VPC or a VPC that still has members will result in a 403 Forbidden error response.

To delete a VPC, send a DELETE request to `/v2/vpcs/$VPC_ID`. A 204 status code with no body will be returned in response to a successful request. The default VPC for a region can not be deleted. Additionally, a VPC can only be deleted if it does not contain any member resources. Attempting to delete a region's default VPC or a VPC that still has members will result in a 403 Forbidden error response.

Authentication

Connected account required

Scopes

vpc:delete

Tags

VPCs
Retrieve an Existing VPCDIGITALOCEAN_VPCS_GETTo show information about an existing VPC, send a GET request to `/v2/vpcs/$VPC_ID`.

To show information about an existing VPC, send a GET request to `/v2/vpcs/$VPC_ID`.

Authentication

Connected account required

Scopes

vpc:read

Tags

VPCs
List All VPCsDIGITALOCEAN_VPCS_LISTTo list all of the VPCs on your account, send a GET request to `/v2/vpcs`.

To list all of the VPCs on your account, send a GET request to `/v2/vpcs`.

Authentication

Connected account required

Scopes

vpc:read

Tags

VPCs
List the Member Resources of a VPCDIGITALOCEAN_VPCS_LIST_MEMBERSTo list all of the resources that are members of a VPC, send a GET request to `/v2/vpcs/$VPC_ID/members`. To only list resources of a specific type that are members of the VPC, included a `resource_type` query parameter. For example, to only list Droplets in the VPC, send a GET request to `/v2/vpcs/$VPC_ID/members?resource_type=droplet`. Only resources that you are authorized to see will be returned (e.g. to see Droplets, you must have `droplet:read`).

To list all of the resources that are members of a VPC, send a GET request to `/v2/vpcs/$VPC_ID/members`. To only list resources of a specific type that are members of the VPC, included a `resource_type` query parameter. For example, to only list Droplets in the VPC, send a GET request to `/v2/vpcs/$VPC_ID/members?resource_type=droplet`. Only resources that you are authorized to see will be returned (e.g. to see Droplets, you must have `droplet:read`).

Authentication

Connected account required

Scopes

vpc:read

Tags

VPCs
List the Peerings of a VPCDIGITALOCEAN_VPCS_LIST_PEERINGSTo list all of a VPC's peerings, send a GET request to `/v2/vpcs/$VPC_ID/peerings`.

To list all of a VPC's peerings, send a GET request to `/v2/vpcs/$VPC_ID/peerings`.

Authentication

Connected account required

Scopes

vpc_peering:read

Tags

VPCs
Partially Update a VPCDIGITALOCEAN_VPCS_PATCHTo update a subset of information about a VPC, send a PATCH request to `/v2/vpcs/$VPC_ID`.

To update a subset of information about a VPC, send a PATCH request to `/v2/vpcs/$VPC_ID`.

Authentication

Connected account required

Scopes

vpc:update

Tags

VPCs
Update a VPC PeeringDIGITALOCEAN_VPCS_PATCH_PEERINGSTo update the name of a VPC peering in a particular VPC, send a PATCH request to `/v2/vpcs/$VPC_ID/peerings/$VPC_PEERING_ID` with the new `name` in the request body.

To update the name of a VPC peering in a particular VPC, send a PATCH request to `/v2/vpcs/$VPC_ID/peerings/$VPC_PEERING_ID` with the new `name` in the request body.

Authentication

Connected account required

Scopes

vpc_peering:update

Tags

VPCs
Update a VPCDIGITALOCEAN_VPCS_UPDATETo update information about a VPC, send a PUT request to `/v2/vpcs/$VPC_ID`.

To update information about a VPC, send a PUT request to `/v2/vpcs/$VPC_ID`.

Authentication

Connected account required

Scopes

vpc:update

Tags

VPCs

Provider resources