Digital Ocean Databases API

DigitalOcean's [managed database service](https://docs.digitalocean.com/products/databases) simplifies the creation and management of highly available database clusters. Currently, it offers support for [PostgreSQL](http://docs.digitalocean.com/products/databases/postgresql/), [Redis](https://docs.digitalocean.com/products/databases/redis/), [MySQL](https://docs.digitalocean.com/products/databases/mysql/), [MongoDB](https://docs.digitalocean.com/products/databases/mongodb/), and [OpenSearch](https://docs.digitalocean.com/products/databases/opensearch/). By sending requests to the `/v2/databases` endpoint, you can list, create, or delete database clusters as well as scale the size of a cluster, add or remove read-only replicas, and manage other configuration details. Database clusters may be deployed in a multi-node, high-availability configuration. If your machine type is above the basic nodes, your node plan is above the smallest option, or you are running MongoDB, you may additionally include up to two standby nodes in your cluster. The size of individual nodes in a database cluster is represented by a human-readable slug, which is used in some of the following requests. Each slug denotes the node's identifier, CPU count, and amount of RAM, in that order. For a list of currently available database slugs and options, use the `/v2/databases/options` endpoint or use the `doctl databases options` [command](https://docs.digitalocean.com/reference/doctl/reference/databases/options).

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 71

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/databases/options List database cluster options · Get databases options #
Ask an LLM
“Which database engines and plans can I choose from when creating a cluster?”
“What node sizes and regions are available for databases?”
Tell an agent
List the database cluster options.
Show the available database engines and node plans.
GET /v2/databases List database clusters · Get databases #
Ask an LLM
“Which managed database clusters do I have?”
“Can I see all my database cluster UUIDs?”
Tell an agent
List my database clusters.
Show every managed database cluster.
POST /v2/databases Create a database cluster · Create databases #
Ask an LLM
“How do I create a new managed database cluster?”
“Can I choose the engine, size and region when creating a cluster?”
Tell an agent
Create a database cluster.
Provision a new managed database cluster with my settings.
GET /v2/databases/{database_cluster_uuid} Get a database cluster · Get databases by database cluster uuid #
Ask an LLM
“What are the details of one database cluster?”
“Can I look up a cluster by its UUID?”
Tell an agent
Get database cluster {cluster}.
Show the details of cluster {cluster}.
DELETE /v2/databases/{database_cluster_uuid} Delete a database cluster · Delete databases by database cluster uuid #
Ask an LLM
“How do I delete a managed database cluster?”
“Can I remove a database cluster by its UUID?”
Tell an agent destructive · confirm first
Delete database cluster {cluster}.
Remove the managed database cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/config Get a database cluster's configuration · Get databases by database cluster uuid config #
Ask an LLM
“What configuration settings does my database cluster have?”
“Can I read a cluster's config by UUID?”
Tell an agent
Get the configuration of database cluster {cluster}.
Show the config settings for cluster {cluster}.
PATCH /v2/databases/{database_cluster_uuid}/config Update a database cluster's configuration · Update databases by database cluster uuid config #
Ask an LLM
“How do I change the configuration of an existing database cluster?”
“Can I patch a cluster's config settings by UUID?”
Tell an agent
Update the configuration of database cluster {cluster}.
Patch the config settings on cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/ca Get a database cluster's CA certificate · Get databases by database cluster uuid ca #
Ask an LLM
“Where do I get the CA certificate for a managed database cluster?”
“Can I download the cluster's certificate by UUID?”
Tell an agent
Get the CA certificate for database cluster {cluster}.
Download the cluster certificate of {cluster}.
GET /v2/databases/{database_cluster_uuid}/online-migration List online migrations for a cluster · Get databases by database cluster uuid online migration #
Ask an LLM
“What online migrations are in progress on my database cluster?”
“Can I see migration history for a cluster by UUID?”
Tell an agent
List online migrations for database cluster {cluster}.
Show the migration history of cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/online-migration Replace a cluster's online migration · Replace databases by database cluster uuid online migration #
Ask an LLM
“How do I replace the online migration settings of a database cluster?”
“Can I overwrite a cluster's migration config by UUID?”
Tell an agent
Replace the online migration settings of database cluster {cluster}.
Overwrite the migration config on cluster {cluster}.
DELETE /v2/databases/{database_cluster_uuid}/online-migration/{migration_id} Cancel an online migration · Delete databases by database cluster uuid online migration by migration id #
Ask an LLM
“How do I cancel an online migration on a database cluster?”
“Can I remove a single migration by ID?”
Tell an agent destructive · confirm first
Cancel online migration {migration} on database cluster {cluster}.
Delete migration {migration} from cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/migrate Move a database cluster to a new plan · Replace databases by database cluster uuid migrate #
Ask an LLM
“How do I move an existing database cluster to a different plan?”
“Can I migrate a whole database cluster rather than rebuilding it?”
Tell an agent
Migrate database cluster {cluster}.
Replace cluster {cluster} with a new plan and migrate its data.
PUT /v2/databases/{database_cluster_uuid}/resize Resize a database cluster · Replace databases by database cluster uuid resize #
Ask an LLM
“How do I scale up a managed database cluster?”
“Can I change a cluster's size by UUID?”
Tell an agent
Resize database cluster {cluster}.
Scale cluster {cluster} to a larger size.
GET /v2/databases/{database_cluster_uuid}/firewall Get a database cluster's firewall · Get databases by database cluster uuid firewall #
Ask an LLM
“Which IP addresses are allowed to connect to my database cluster?”
“Can I read a cluster's firewall rules by UUID?”
Tell an agent
Get the firewall rules of database cluster {cluster}.
Show the allowed IPs for cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/firewall Replace a database cluster's firewall · Replace databases by database cluster uuid firewall #
Ask an LLM
“How do I replace the firewall rules of a database cluster?”
“Can I overwrite a cluster's firewall by UUID?”
Tell an agent
Replace the firewall rules of database cluster {cluster}.
Overwrite the firewall config on cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/do_settings Get a database cluster's DO settings · Get databases by database cluster uuid do settings #
Ask an LLM
“What DO-specific settings does my database cluster have?”
“Can I read a cluster's DO settings by UUID?”
Tell an agent
Get the DO settings of database cluster {cluster}.
Show the DO-specific settings for cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/do_settings Replace a database cluster's DO settings · Replace databases by database cluster uuid do settings #
Ask an LLM
“How do I replace the DO-specific settings of a database cluster?”
“Can I overwrite a cluster's DO settings by UUID?”
Tell an agent
Replace the DO settings of database cluster {cluster}.
Overwrite the DO-specific settings on cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/maintenance Replace a database cluster's maintenance settings · Replace databases by database cluster uuid maintenance #
Ask an LLM
“How do I replace the maintenance settings of a database cluster?”
“Can I overwrite a cluster's maintenance config by UUID?”
Tell an agent
Replace the maintenance settings of database cluster {cluster}.
Overwrite the maintenance config on cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/install_update Replace a database cluster's update settings · Replace databases by database cluster uuid install update #
Ask an LLM
“How do I replace the update settings of a database cluster?”
“Can I overwrite a cluster's update config by UUID?”
Tell an agent
Replace the update settings of database cluster {cluster}.
Overwrite the update config on cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/backups Get a database cluster's backups · Get databases by database cluster uuid backups #
Ask an LLM
“What backups exist for my database cluster?”
“Can I list a cluster's backups by UUID?”
Tell an agent
List backups for database cluster {cluster}.
Show the backup history of cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/replicas List read replicas of a database cluster · Get databases by database cluster uuid replicas #
Ask an LLM
“Which read replicas does my database cluster have?”
“Can I see the status of each replica on a cluster?”
Tell an agent
List the read replicas of database cluster {cluster}.
Show every replica on cluster {cluster}.
POST /v2/databases/{database_cluster_uuid}/replicas Add a read replica to a database cluster · Create databases by database cluster uuid replicas #
Ask an LLM
“How do I scale a database cluster by adding a read replica?”
“Can I promote a new replica to be a primary later?”
Tell an agent
Add a read replica to database cluster {cluster}.
Scale cluster {cluster} by adding another replica.
GET /v2/databases/{database_cluster_uuid}/events List events for a database cluster · Get databases by database cluster uuid events #
Ask an LLM
“What has happened on my database cluster recently?”
“Can I see the event history of a cluster?”
Tell an agent
List events for database cluster {cluster}.
Show the recent activity log of cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/replicas/{replica_name} Get one read replica of a cluster · Get databases by database cluster uuid replicas by replica name #
Ask an LLM
“Is a specific replica on my cluster up?”
“What is the status of one replica by name?”
Tell an agent
Get replica {replica} on database cluster {cluster}.
Show the status of replica {replica} in cluster {cluster}.
DELETE /v2/databases/{database_cluster_uuid}/replicas/{replica_name} Remove a read replica from a cluster · Delete databases by database cluster uuid replicas by replica name #
Ask an LLM
“How do I remove a read replica from a cluster?”
“Can I delete a replica I no longer need?”
Tell an agent destructive · confirm first
Delete replica {replica} from database cluster {cluster}.
Remove read replica {replica} on cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/replicas/{replica_name}/promote Promote a replica to primary · Replace databases by database cluster uuid replicas by replica name promote #
Ask an LLM
“Can I make a read replica the new primary?”
“What happens when I promote a replica?”
Tell an agent
Promote replica {replica} on database cluster {cluster} to primary.
Make replica {replica} the new primary of cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/users List users on a database cluster · Get databases by database cluster uuid users #
Ask an LLM
“Who are the database users on my cluster?”
“Can I see all user accounts for a database cluster?”
Tell an agent
List the users on database cluster {cluster}.
Show every database user account for cluster {cluster}.
POST /v2/databases/{database_cluster_uuid}/users Create a user on a database cluster · Create databases by database cluster uuid users #
Ask an LLM
“How do I add a new database user to a cluster?”
“Can I create a user with a password for my database?”
Tell an agent
Create a user on database cluster {cluster}.
Add a new database user to cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/users/{username} Get one user on a database cluster · Get databases by database cluster uuid users by username #
Ask an LLM
“What privileges does a specific database user have?”
“Can I look up one user by username on a cluster?”
Tell an agent
Get user {username} on database cluster {cluster}.
Show the database user {username} in cluster {cluster}.
DELETE /v2/databases/{database_cluster_uuid}/users/{username} Delete a database user · Delete databases by database cluster uuid users by username #
Ask an LLM
“How do I remove a database user from a cluster?”
“Can I delete a user account I no longer need?”
Tell an agent destructive · confirm first
Delete user {username} from database cluster {cluster}.
Remove the database user {username} on cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/users/{username} Replace a database user · Replace databases by database cluster uuid users by username #
Ask an LLM
“How do I change a database user's password or privileges?”
“Can I overwrite an existing user account on a cluster?”
Tell an agent
Replace user {username} on database cluster {cluster}.
Update the database user {username} in cluster {cluster}.
POST /v2/databases/{database_cluster_uuid}/users/{username}/reset_auth Reset a database user's password · Create databases by database cluster uuid users by username reset auth #
Ask an LLM
“How do I reset a database user's password?”
“Can I force a user to choose a new password?”
Tell an agent
Reset the password for user {username} on database cluster {cluster}.
Force a new password for database user {username} in cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/dbs List databases on a cluster · Get databases by database cluster uuid dbs #
Ask an LLM
“Which databases exist on my database cluster?”
“Can I see all the database names for a cluster?”
Tell an agent
List the databases on database cluster {cluster}.
Show every database in cluster {cluster}.
POST /v2/databases/{database_cluster_uuid}/dbs Create databases on a cluster · Create databases by database cluster uuid dbs #
Ask an LLM
“How do I create new databases within a database cluster?”
“Can I create multiple databases on one cluster in a single request?”
Tell an agent
Create databases on cluster {cluster}.
Add new databases to {cluster}.
GET /v2/databases/{database_cluster_uuid}/dbs/{database_name} Get one database on a cluster · Get databases by database cluster uuid dbs by database name #
Ask an LLM
“What are the details of a specific database on a cluster?”
“Can I look up one database by name?”
Tell an agent
Get database {database} on database cluster {cluster}.
Show the database {database} in cluster {cluster}.
DELETE /v2/databases/{database_cluster_uuid}/dbs/{database_name} Delete a database from a cluster · Delete databases by database cluster uuid dbs by database name #
Ask an LLM
“How do I drop a database from a cluster?”
“Can I remove a database I no longer use?”
Tell an agent destructive · confirm first
Delete database {database} from database cluster {cluster}.
Drop the database {database} on cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/pools List connection pools on a cluster · Get databases by database cluster uuid pools #
Ask an LLM
“Which connection pools exist on my database cluster?”
“Can I see the pool settings for a cluster?”
Tell an agent
List the connection pools on database cluster {cluster}.
Show every pool in cluster {cluster}.
POST /v2/databases/{database_cluster_uuid}/pools Create a connection pool on a cluster · Create databases by database cluster uuid pools #
Ask an LLM
“How do I add a connection pool to a database cluster?”
“Can I create a new pool for a cluster?”
Tell an agent
Create a connection pool on database cluster {cluster}.
Add a new pool to cluster {cluster}.
GET /v2/databases/{database_cluster_uuid}/pools/{pool_name} Get one connection pool on a cluster · Get databases by database cluster uuid pools by pool name #
Ask an LLM
“What are the settings of a specific connection pool?”
“Can I look up one pool by name on a cluster?”
Tell an agent
Get pool {pool} on database cluster {cluster}.
Show the connection pool {pool} in cluster {cluster}.
PUT /v2/databases/{database_cluster_uuid}/pools/{pool_name} Replace a connection pool on a cluster · Replace databases by database cluster uuid pools by pool name #
Ask an LLM
“How do I change the settings of an existing connection pool?”
“Can I overwrite a pool's configuration on a cluster?”
Tell an agent
Replace pool {pool} on database cluster {cluster}.
Update the connection pool {pool} in cluster {cluster}.
DELETE /v2/databases/{database_cluster_uuid}/pools/{pool_name} Delete a database pool · Delete databases by database cluster uuid pools by pool name #
Ask an LLM
“How do I remove a read pool from a database cluster?”
“Can I delete a pool by its name?”
Tell an agent destructive · confirm first
Delete pool {pool_name} from database cluster {database_cluster_uuid}.
Remove the read pool {pool_name} on {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/eviction_policy Get a database cluster's eviction policy · Get databases by database cluster uuid eviction policy #
Ask an LLM
“What eviction policy is set on my database cluster?”
“Can I check which keys get evicted first?”
Tell an agent
Show the eviction policy for database cluster {database_cluster_uuid}.
Get the eviction policy on {database_cluster_uuid}.
PUT /v2/databases/{database_cluster_uuid}/eviction_policy Replace a database cluster's eviction policy · Replace databases by database cluster uuid eviction policy #
Ask an LLM
“How do I change the eviction policy on a database cluster?”
“Can I set a new eviction policy for a cluster?”
Tell an agent
Replace the eviction policy on database cluster {database_cluster_uuid}.
Update the eviction policy for {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/sql_mode Get a database cluster's SQL mode · Get databases by database cluster uuid sql mode #
Ask an LLM
“What SQL mode is my database cluster running in?”
“Can I check the SQL mode of a cluster?”
Tell an agent
Show the SQL mode for database cluster {database_cluster_uuid}.
Get the SQL mode on {database_cluster_uuid}.
PUT /v2/databases/{database_cluster_uuid}/sql_mode Replace a database cluster's SQL mode · Replace databases by database cluster uuid sql mode #
Ask an LLM
“How do I change the SQL mode of a database cluster?”
“Can I switch a cluster's SQL mode?”
Tell an agent
Replace the SQL mode on database cluster {database_cluster_uuid}.
Update the SQL mode for {database_cluster_uuid}.
PUT /v2/databases/{database_cluster_uuid}/upgrade Upgrade a database cluster · Replace databases by database cluster uuid upgrade #
Ask an LLM
“How do I upgrade a database cluster to the latest version?”
“Can I trigger a cluster upgrade?”
Tell an agent
Upgrade database cluster {database_cluster_uuid}.
Start the upgrade on {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/autoscale Get a database cluster's autoscale settings · Get databases by database cluster uuid autoscale #
Ask an LLM
“Is autoscaling turned on for my database cluster?”
“Can I check the autoscale settings of a cluster?”
Tell an agent
Show the autoscale settings for database cluster {database_cluster_uuid}.
Get the autoscale settings on {database_cluster_uuid}.
PUT /v2/databases/{database_cluster_uuid}/autoscale Replace a database cluster's autoscale settings · Replace databases by database cluster uuid autoscale #
Ask an LLM
“How do I change the autoscale settings of a database cluster?”
“Can I turn autoscaling on or off for a cluster?”
Tell an agent
Replace the autoscale settings on database cluster {database_cluster_uuid}.
Update the autoscale settings for {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/topics List topics on a database cluster · Get databases by database cluster uuid topics #
Ask an LLM
“What topics are configured on my database cluster?”
“Can I list the topics of a cluster?”
Tell an agent
List the topics on database cluster {database_cluster_uuid}.
Show all topics configured on {database_cluster_uuid}.
POST /v2/databases/{database_cluster_uuid}/topics Create topics on a cluster · Create databases by database cluster uuid topics #
Ask an LLM
“How do I create topics on a database cluster?”
“Can I add topics on a cluster without creating a database first?”
Tell an agent
Create topics on cluster {cluster}.
Add a new topic to {cluster}.
GET /v2/databases/{database_cluster_uuid}/topics/{topic_name} Get a topic on a database cluster · Get databases by database cluster uuid topics by topic name #
Ask an LLM
“How do I look up one topic on a database cluster?”
“What settings does a specific topic have?”
Tell an agent
Get topic {topic_name} on database cluster {database_cluster_uuid}.
Show the settings of topic {topic_name} on {database_cluster_uuid}.
PUT /v2/databases/{database_cluster_uuid}/topics/{topic_name} Replace a topic on a database cluster · Replace databases by database cluster uuid topics by topic name #
Ask an LLM
“How do I update an existing topic on a database cluster?”
“Can I overwrite a topic's settings?”
Tell an agent
Replace topic {topic_name} on database cluster {database_cluster_uuid}.
Update the settings of topic {topic_name} on {database_cluster_uuid}.
DELETE /v2/databases/{database_cluster_uuid}/topics/{topic_name} Delete a topic from a database cluster · Delete databases by database cluster uuid topics by topic name #
Ask an LLM
“How do I remove a topic from a database cluster?”
“Can I delete a topic by name?”
Tell an agent destructive · confirm first
Delete topic {topic_name} from database cluster {database_cluster_uuid}.
Remove the topic {topic_name} on {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/logsink List log sinks on a database cluster · Get databases by database cluster uuid logsink #
Ask an LLM
“What log sinks are configured on my database cluster?”
“Can I list the log sinks of a cluster?”
Tell an agent
List the log sinks on database cluster {database_cluster_uuid}.
Show all log sinks configured on {database_cluster_uuid}.
POST /v2/databases/{database_cluster_uuid}/logsink Create a log sink on a database cluster · Create databases by database cluster uuid logsink #
Ask an LLM
“How do I create a log sink on a database cluster?”
“Can I add a log sink to a cluster?”
Tell an agent
Create a log sink on database cluster {database_cluster_uuid}.
Add a log sink to {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/logsink/{logsink_id} Get a log sink on a database cluster · Get databases by database cluster uuid logsink by logsink id #
Ask an LLM
“How do I look up one log sink on a database cluster?”
“What settings does a specific log sink have?”
Tell an agent
Get log sink {logsink_id} on database cluster {database_cluster_uuid}.
Show the settings of log sink {logsink_id} on {database_cluster_uuid}.
PUT /v2/databases/{database_cluster_uuid}/logsink/{logsink_id} Replace a log sink on a database cluster · Replace databases by database cluster uuid logsink by logsink id #
Ask an LLM
“How do I update an existing log sink on a database cluster?”
“Can I overwrite a log sink's settings?”
Tell an agent
Replace log sink {logsink_id} on database cluster {database_cluster_uuid}.
Update the settings of log sink {logsink_id} on {database_cluster_uuid}.
DELETE /v2/databases/{database_cluster_uuid}/logsink/{logsink_id} Delete a log sink from a database cluster · Delete databases by database cluster uuid logsink by logsink id #
Ask an LLM
“How do I remove a log sink from a database cluster?”
“Can I delete a log sink by id?”
Tell an agent destructive · confirm first
Delete log sink {logsink_id} from database cluster {database_cluster_uuid}.
Remove the log sink {logsink_id} on {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/schema-registry Get a database cluster's schema registry · Get databases by database cluster uuid schema registry #
Ask an LLM
“What schema registry is configured on my database cluster?”
“Can I check the schema registry settings of a cluster?”
Tell an agent
Show the schema registry for database cluster {database_cluster_uuid}.
Get the schema registry settings on {database_cluster_uuid}.
POST /v2/databases/{database_cluster_uuid}/schema-registry Create a schema registry on a database cluster · Create databases by database cluster uuid schema registry #
Ask an LLM
“How do I create a schema registry on a database cluster?”
“Can I add a schema registry to a cluster?”
Tell an agent
Create a schema registry on database cluster {database_cluster_uuid}.
Add a schema registry to {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/schema-registry/{subject_name} Get a schema registry subject · Get databases by database cluster uuid schema registry by subject name #
Ask an LLM
“What is the schema registry configuration for a given subject on my database cluster?”
“Can I read one subject's schema registry settings?”
Tell an agent
Get the schema registry subject {subject_name} on database cluster {database_cluster_uuid}.
Show schema registry settings for {subject_name} in cluster {database_cluster_uuid}.
DELETE /v2/databases/{database_cluster_uuid}/schema-registry/{subject_name} Delete a schema registry subject · Delete databases by database cluster uuid schema registry by subject name #
Ask an LLM
“How do I remove a schema registry subject from my database cluster?”
“Can I delete a subject from the schema registry?”
Tell an agent destructive · confirm first
Delete schema registry subject {subject_name} from database cluster {database_cluster_uuid}.
Remove the {subject_name} subject from the schema registry on cluster {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/schema-registry/{subject_name}/versions/{version} Get a schema registry subject version · Get databases by database cluster uuid schema registry by subject name versions… #
Ask an LLM
“What does a specific version of a schema registry subject contain?”
“Can I fetch one version of a schema subject?”
Tell an agent
Get version {version} of schema registry subject {subject_name} on cluster {database_cluster_uuid}.
Show the {version} schema for subject {subject_name} in cluster {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/schema-registry/config Get schema registry settings · Get databases by database cluster uuid schema registry config #
Ask an LLM
“What are the global schema registry settings for my database cluster?”
“Can I read the schema registry configuration for a cluster?”
Tell an agent
Get the schema registry configuration for database cluster {database_cluster_uuid}.
Show global schema registry settings on cluster {database_cluster_uuid}.
PUT /v2/databases/{database_cluster_uuid}/schema-registry/config Replace schema registry settings · Replace databases by database cluster uuid schema registry config #
Ask an LLM
“How do I change the global schema registry settings for my cluster?”
“Can I overwrite the schema registry configuration?”
Tell an agent
Replace the schema registry configuration on database cluster {database_cluster_uuid}.
Overwrite the global schema registry settings for cluster {database_cluster_uuid}.
GET /v2/databases/{database_cluster_uuid}/schema-registry/config/{subject_name} Get a schema registry subject's settings · Get databases by database cluster uuid schema registry config by subject name #
Ask an LLM
“What are the settings for one subject in the schema registry?”
“Can I read a single subject's schema registry configuration?”
Tell an agent
Get the schema registry settings for subject {subject_name} on cluster {database_cluster_uuid}.
Show the {subject_name} subject's schema registry configuration in cluster {database_cluster_uuid}.
PUT /v2/databases/{database_cluster_uuid}/schema-registry/config/{subject_name} Replace a schema registry subject's settings · Replace databases by database cluster uuid schema registry config by subject… #
Ask an LLM
“How do I change the settings of one subject in the schema registry?”
“Can I overwrite a single subject's schema registry configuration?”
Tell an agent
Replace the schema registry settings for subject {subject_name} on cluster {database_cluster_uuid}.
Overwrite the {subject_name} subject's schema registry configuration in cluster {database_cluster_uuid}.
GET /v2/databases/metrics/credentials Get database metrics credentials · Get databases metrics credentials #
Ask an LLM
“Where do I get the credentials to push database metrics?”
“Can I read the metrics credentials for my database clusters?”
Tell an agent
Get the database metrics credentials.
Show the credentials used to push metrics to my database clusters.
PUT /v2/databases/metrics/credentials Replace database metrics credentials · Replace databases metrics credentials #
Ask an LLM
“How do I rotate the metrics credentials for my database clusters?”
“Can I overwrite the database metrics credentials?”
Tell an agent
Replace the database metrics credentials.
Overwrite the metrics credentials for my database clusters.
GET /v2/databases/{database_cluster_uuid}/indexes List database indexes · Get databases by database cluster uuid indexes #
Ask an LLM
“Which indexes are defined on my database cluster?”
“Can I list the indexes on a database cluster?”
Tell an agent
List the indexes on database cluster {database_cluster_uuid}.
Show every index defined in cluster {database_cluster_uuid}.
DELETE /v2/databases/{database_cluster_uuid}/indexes/{index_name} Delete a database index · Delete databases by database cluster uuid indexes by index name #
Ask an LLM
“How do I drop an index from my database cluster?”
“Can I remove a single index by name?”
Tell an agent destructive · confirm first
Delete index {index_name} from database cluster {database_cluster_uuid}.
Drop the {index_name} index in cluster {database_cluster_uuid}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/digital-ocean:digital-ocean-databases-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

digital-ocean-databases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Databases API
  version: '2.0'
  description: 'DigitalOcean''s managed database service

    simplifies the creation and management of highly available database clusters. Currently, it

    offers support for PostgreSQL,

    Caching,

    Valkey,

    MySQL,

    MongoDB, and

    OpenSearch.


    By sending requests to the `/v2/databases` endpoint, you can list, create, or delete

    database clusters as well as scale the size of a cluster, add or remove read-only replicas,

    and manage other configuration details.


    Database clusters may be deployed in a multi-node, high-availability configuration.

    If your machine type is above the basic nodes, your node plan is above the smallest option,

    or you are running MongoDB, you may additionally include up to two standby nodes in your cluster.


    The size of individual nodes in a database cluster is represented by a human-readable slug,

    which is used in some of the following requests. Each slug denotes the node''s identifier,

    CPU count, and amount of RAM, in that order.


    For a list of currently available database slugs and options, use the `/v2/databases/options` endpoint or use the

    `doctl databases options` command.'
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  contact:
    name: DigitalOcean API Team
    email: api-engineering@digitalocean.com
  termsOfService: https://www.digitalocean.com/legal/terms-of-service-agreement/
servers:
- url: https://api.digitalocean.com
  description: production
security:
- bearer_auth: []
tags:
- name: Databases
  description: 'DigitalOcean''s managed database service

    simplifies the creation and management of highly available database clusters. Currently, it

    offers support for PostgreSQL,

    Caching,

    Valkey,

    MySQL,

    MongoDB, and

    OpenSearch.


    By sending requests to the `/v2/databases` endpoint, you can list, create, or delete

    database clusters as well as scale the size of a cluster, add or remove read-only replicas,

    and manage other configuration details.


    Database clusters may be deployed in a multi-node, high-availability configuration.

    If your machine type is above the basic nodes, your node plan is above the smallest option,

    or you are running MongoDB, you may additionally include up to two standby nodes in your cluster.


    The size of individual nodes in a database cluster is represented by a human-readable slug,

    which is used in some of the following requests. Each slug denotes the node''s identifier,

    CPU count, and amount of RAM, in that order.


    For a list of currently available database slugs and options, use the `/v2/databases/options` endpoint or use the

    `doctl databases options` command.'
paths:
  /v2/databases/options:
    get:
      $ref: resources/databases/databases_list_options.yml
      tags:
      - Databases
      summary: Get databases options
      x-summary-source: derived
      operationId: getV2DatabasesOptions
      x-operation-id-source: derived
  /v2/databases:
    get:
      $ref: resources/databases/databases_list_clusters.yml
      tags:
      - Databases
      summary: Get databases
      x-summary-source: derived
      operationId: getV2Databases
      x-operation-id-source: derived
    post:
      $ref: resources/databases/databases_create_cluster.yml
      tags:
      - Databases
      summary: Create databases
      x-summary-source: derived
      operationId: postV2Databases
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}:
    get:
      $ref: resources/databases/databases_get_cluster.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuid
      x-operation-id-source: derived
    delete:
      $ref: resources/databases/databases_destroy_cluster.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuid
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/config:
    get:
      $ref: resources/databases/databases_get_config.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid config
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidConfig
      x-operation-id-source: derived
    patch:
      $ref: resources/databases/databases_patch_config.yml
      tags:
      - Databases
      summary: Update databases by database cluster uuid config
      x-summary-source: derived
      operationId: patchV2DatabasesByDatabaseClusterUuidConfig
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/ca:
    get:
      $ref: resources/databases/databases_get_ca.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid ca
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidCa
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/online-migration:
    get:
      $ref: resources/databases/databases_get_migrationStatus.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid online migration
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidOnlineMigration
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_onlineMigration.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid online migration
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidOnlineMigration
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/online-migration/{migration_id}:
    delete:
      $ref: resources/databases/databases_delete_onlineMigration.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid online migration by migration id
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidOnlineMigrationByMigrationId
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/migrate:
    put:
      $ref: resources/databases/databases_update_region.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid migrate
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidMigrate
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/resize:
    put:
      $ref: resources/databases/databases_update_clusterSize.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid resize
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidResize
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/firewall:
    get:
      $ref: resources/databases/databases_list_firewall_rules.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid firewall
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidFirewall
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_firewall_rules.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid firewall
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidFirewall
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/do_settings:
    get:
      $ref: resources/databases/databases_get_do_settings.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid do settings
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidDoSettings
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_do_settings.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid do settings
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidDoSettings
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/maintenance:
    put:
      $ref: resources/databases/databases_update_maintenanceWindow.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid maintenance
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidMaintenance
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/install_update:
    put:
      $ref: resources/databases/databases_update_installUpdate.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid install update
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidInstallUpdate
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/backups:
    get:
      $ref: resources/databases/databases_list_backups.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid backups
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidBackups
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/replicas:
    get:
      $ref: resources/databases/databases_list_replicas.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid replicas
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidReplicas
      x-operation-id-source: derived
    post:
      $ref: resources/databases/databases_create_replica.yml
      tags:
      - Databases
      summary: Create databases by database cluster uuid replicas
      x-summary-source: derived
      operationId: postV2DatabasesByDatabaseClusterUuidReplicas
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/events:
    get:
      $ref: resources/databases/databases_events_logs.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid events
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidEvents
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/replicas/{replica_name}:
    get:
      $ref: resources/databases/databases_get_replica.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid replicas by replica name
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidReplicasByReplicaName
      x-operation-id-source: derived
    delete:
      $ref: resources/databases/databases_destroy_replica.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid replicas by replica name
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidReplicasByReplicaName
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/replicas/{replica_name}/promote:
    put:
      $ref: resources/databases/databases_promote_replica.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid replicas by replica name promote
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidReplicasByReplicaNamePromote
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/users:
    get:
      $ref: resources/databases/databases_list_users.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid users
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidUsers
      x-operation-id-source: derived
    post:
      $ref: resources/databases/databases_add_user.yml
      tags:
      - Databases
      summary: Create databases by database cluster uuid users
      x-summary-source: derived
      operationId: postV2DatabasesByDatabaseClusterUuidUsers
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/users/{username}:
    get:
      $ref: resources/databases/databases_get_user.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid users by username
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidUsersByUsername
      x-operation-id-source: derived
    delete:
      $ref: resources/databases/databases_delete_user.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid users by username
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidUsersByUsername
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_user.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid users by username
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidUsersByUsername
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/users/{username}/reset_auth:
    post:
      $ref: resources/databases/databases_reset_auth.yml
      tags:
      - Databases
      summary: Create databases by database cluster uuid users by username reset auth
      x-summary-source: derived
      operationId: postV2DatabasesByDatabaseClusterUuidUsersByUsernameResetAuth
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/dbs:
    get:
      $ref: resources/databases/databases_list.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid dbs
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidDbs
      x-operation-id-source: derived
    post:
      $ref: resources/databases/databases_add.yml
      tags:
      - Databases
      summary: Create databases by database cluster uuid dbs
      x-summary-source: derived
      operationId: postV2DatabasesByDatabaseClusterUuidDbs
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/dbs/{database_name}:
    get:
      $ref: resources/databases/databases_get.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid dbs by database name
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidDbsByDatabaseName
      x-operation-id-source: derived
    delete:
      $ref: resources/databases/databases_delete.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid dbs by database name
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidDbsByDatabaseName
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/pools:
    get:
      $ref: resources/databases/databases_list_connectionPools.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid pools
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidPools
      x-operation-id-source: derived
    post:
      $ref: resources/databases/databases_add_connectionPool.yml
      tags:
      - Databases
      summary: Create databases by database cluster uuid pools
      x-summary-source: derived
      operationId: postV2DatabasesByDatabaseClusterUuidPools
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/pools/{pool_name}:
    get:
      $ref: resources/databases/databases_get_connectionPool.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid pools by pool name
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidPoolsByPoolName
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_connectionPool.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid pools by pool name
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidPoolsByPoolName
      x-operation-id-source: derived
    delete:
      $ref: resources/databases/databases_delete_connectionPool.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid pools by pool name
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidPoolsByPoolName
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/eviction_policy:
    get:
      $ref: resources/databases/databases_get_evictionPolicy.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid eviction policy
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidEvictionPolicy
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_evictionPolicy.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid eviction policy
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidEvictionPolicy
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/sql_mode:
    get:
      $ref: resources/databases/databases_get_sql_mode.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid sql mode
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidSqlMode
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_sql_mode.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid sql mode
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidSqlMode
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/upgrade:
    put:
      $ref: resources/databases/databases_upgrade_major_version.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid upgrade
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidUpgrade
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/autoscale:
    get:
      $ref: resources/databases/databases_get_autoscale.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid autoscale
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidAutoscale
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_autoscale.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid autoscale
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidAutoscale
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/topics:
    get:
      $ref: resources/databases/databases_list_kafka_topics.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid topics
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidTopics
      x-operation-id-source: derived
    post:
      $ref: resources/databases/databases_create_kafka_topic.yml
      tags:
      - Databases
      summary: Create databases by database cluster uuid topics
      x-summary-source: derived
      operationId: postV2DatabasesByDatabaseClusterUuidTopics
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/topics/{topic_name}:
    get:
      $ref: resources/databases/databases_get_kafka_topic.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid topics by topic name
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidTopicsByTopicName
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_kafka_topic.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid topics by topic name
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidTopicsByTopicName
      x-operation-id-source: derived
    delete:
      $ref: resources/databases/databases_delete_kafka_topic.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid topics by topic name
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidTopicsByTopicName
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/logsink:
    get:
      $ref: resources/databases/databases_list_logsink.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid logsink
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidLogsink
      x-operation-id-source: derived
    post:
      $ref: resources/databases/databases_create_logsink.yml
      tags:
      - Databases
      summary: Create databases by database cluster uuid logsink
      x-summary-source: derived
      operationId: postV2DatabasesByDatabaseClusterUuidLogsink
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/logsink/{logsink_id}:
    get:
      $ref: resources/databases/databases_get_logsink.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid logsink by logsink id
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidLogsinkByLogsinkId
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_logsink.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid logsink by logsink id
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidLogsinkByLogsinkId
      x-operation-id-source: derived
    delete:
      $ref: resources/databases/databases_delete_logsink.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid logsink by logsink id
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidLogsinkByLogsinkId
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/schema-registry:
    get:
      $ref: resources/databases/databases_list_kafka_schemas.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid schema registry
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidSchemaRegistry
      x-operation-id-source: derived
    post:
      $ref: resources/databases/databases_create_kafka_schema.yml
      tags:
      - Databases
      summary: Create databases by database cluster uuid schema registry
      x-summary-source: derived
      operationId: postV2DatabasesByDatabaseClusterUuidSchemaRegistry
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/schema-registry/{subject_name}:
    get:
      $ref: resources/databases/databases_get_kafka_schema.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid schema registry by subject name
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidSchemaRegistryBySubjectName
      x-operation-id-source: derived
    delete:
      $ref: resources/databases/databases_delete_kafka_schema.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid schema registry by subject name
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidSchemaRegistryBySubjectName
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/schema-registry/{subject_name}/versions/{version}:
    get:
      $ref: resources/databases/databases_get_kafka_schema_version.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid schema registry by subject name versions…
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidSchemaRegistryBySubjectNameVersionsByVersion
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/schema-registry/config:
    get:
      $ref: resources/databases/databases_get_kafka_schema_config.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid schema registry config
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidSchemaRegistryConfig
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_kafka_schema_config.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid schema registry config
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidSchemaRegistryConfig
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/schema-registry/config/{subject_name}:
    get:
      $ref: resources/databases/databases_get_kafka_schema_subject_config.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid schema registry config by subject name
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidSchemaRegistryConfigBySubjectName
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_kafka_schema_subject_config.yml
      tags:
      - Databases
      summary: Replace databases by database cluster uuid schema registry config by subject…
      x-summary-source: derived
      operationId: putV2DatabasesByDatabaseClusterUuidSchemaRegistryConfigBySubjectName
      x-operation-id-source: derived
  /v2/databases/metrics/credentials:
    get:
      $ref: resources/databases/databases_get_cluster_metrics_credentials.yml
      tags:
      - Databases
      summary: Get databases metrics credentials
      x-summary-source: derived
      operationId: getV2DatabasesMetricsCredentials
      x-operation-id-source: derived
    put:
      $ref: resources/databases/databases_update_cluster_metrics_credentials.yml
      tags:
      - Databases
      summary: Replace databases metrics credentials
      x-summary-source: derived
      operationId: putV2DatabasesMetricsCredentials
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/indexes:
    get:
      $ref: resources/databases/databases_list_opensearch_indexes.yml
      tags:
      - Databases
      summary: Get databases by database cluster uuid indexes
      x-summary-source: derived
      operationId: getV2DatabasesByDatabaseClusterUuidIndexes
      x-operation-id-source: derived
  /v2/databases/{database_cluster_uuid}/indexes/{index_name}:
    delete:
      $ref: resources/databases/databases_delete_opensearch_index.yml
      tags:
      - Databases
      summary: Delete databases by database cluster uuid indexes by index name
      x-summary-source: derived
      operationId: deleteV2DatabasesByDatabaseClusterUuidIndexesByIndexName
      x-operation-id-source: derived
components:
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: '## OAuth Authentication


        In order to interact with the DigitalOcean API, you or your application must

        authenticate.


        The DigitalOcean API handles this through OAuth, an open standard for

        authorization. OAuth allows you to delegate access to your account.

        Scopes can be used to grant full access, read-only access, or access to

        a specific set of endpoints.


        You can generate an OAuth token by visiting the [Apps & API](https://cloud.digitalocean.com/account/api/tokens)

        section of the DigitalOcean control panel for your account.


        An OAuth token functions as a complete authentication request. In effect, it

        acts as a substitute for a username and password pair.


        Because of this, it is absolutely **essential** that you keep your OAuth

        tokens secure. In fact, upon generation, the web interface will only display

        each token a single time in order to prevent the token from being compromised.


        DigitalOcean access tokens begin with an identifiable prefix in order to

        distinguish them from other similar tokens.


        - `dop_v1_` for personal access tokens generated in the control panel

        - `doo_v1_` for tokens generated by applications using [the OAuth flow](https://docs.digitalocean.com/reference/api/oauth-api/)

        - `dor_v1_` for OAuth refresh tokens


        ### Scopes


        Scopes act like permissions assigned to an API token. These permissions

        determine what actions the token can perform. You can create API

        tokens that grant read-only access, full access, or limited access to

        specific endpoints by using custom scopes.


        Generally, scopes are designed to match HTTP verbs and common CRUD

        operations (Create, Read, Update, Delete).


        | HTTP Verb | CRUD Operation | Scope |

        |---|---|---|

        | GET | Read | `<resource>:read` |

        | POST | Create | `<resource>:create` |

        | PUT/PATCH | Update | `<resource>:update` |

        | DELETE | Delete | `<resource>:delete` |


        For example, creating a new Droplet by making a `POST` request to the

        `/v2/droplets` endpoint requires the `droplet:create` scope while

        listing Droplets by making a `GET` request to the `/v2/droplets`

        endpoint requires the `droplet:read` scope.


        Each endpoint below specifies which scope is required to access it when

        using custom scopes.


        ### How to Authenticate with OAuth


        In order to make an authenticated request, include a bearer-type

        `Authorization` header containing your OAuth token. All requests must be

        made over HTTPS.


        ### Authenticate with a Bearer Authorization Header


        ```

        curl -X $HTTP_METHOD -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/$OBJECT"

        ```

        '
    inference_bearer_auth:
      type: http
      scheme: bearer
      description: '## OAuth Authentication


        In order to interact with the DigitalOcean API, you or your application must

        authenticate.


        The DigitalOcean API handles this through OAuth, an open standard for

        authorization. OAuth allows you to delegate access to your account.

        Scopes can be used to grant full access, read-only access, or access to

        a specific set of endpoints.


        You can generate an OAuth token by visiting the [Apps & API](https://cloud.digitalocean.com/account/api/tokens)

        section of the DigitalOcean control panel for your account.


        An OAuth token functions as a complete authentication request. In effect, it

        acts as a substitute for a username and password pair.


        Because of this, it is absolutely **essential** that you keep your OAuth

        tokens secure. In fact, upon generation, the web interface will only display

        each token a single time in order to prevent the token from being compromised.


        DigitalOcean access tokens begin with an identifiable prefix in order to

        distinguish them from other similar tokens.


        - `dop_v1_` for personal access tokens generated in the control panel

        - `doo_v1_` for tokens generated by applications using [the OAuth flow](https://docs.digitalocean.com/reference/api/oauth-api/)

        - `dor_v1_` for OAuth refresh tokens


        ### Authenticate with a Bearer Authorization Header


        **Serverless Inference:**


        ```

        curl -X POST -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://inference.do-ai.run/v1/chat/completions"

        ```


        **Agent Inference:**


        ```

        curl -X POST -H "Authorization: Bearer $AGENT_ACCESS_KEY" "https://{your-agent-url}.agents.do-ai.run/v1/chat/completions?agent=true"

        ```


        **Note:** Agent Inference APIs use an `agent_access_key` (endpoint access

        key) instead of a DigitalOcean OAuth token. The `agent_access_key` is

        provided when you provision an agent endpoint and is scoped to that

        specific agent. It is not interchangeable with DigitalOcean OAuth tokens

        (`dop_v1_*`, `doo_v1_*`, `dor_v1_*`), which are used with Serverless

        Inference and the control-plane API at `https://api.digitalocean.com`.

        '
x-tagGroups:
- name: Public APIs
  tags:
  - Public APIs Introduction
  - 1-Click Applications
  - Account
  - Actions
  - Add-Ons
  - Action Gateway
  - Action Gateway Data Plane
  - Agent Platform API
  - Apps
  - Billing
  - Block Storage
  - Block Storage Actions
  - BYOIP Prefixes
  - CDN Endpoints
  - Certificates


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/digital-ocean/openapi/digital-ocean-databases-api-openapi.yml