Cockroach Labs Clusters API

Create, list, retrieve, update, and delete CockroachDB Serverless and Dedicated clusters within an organization.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 9

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 /api/v1/clusters List clusters in the organization · List clusters #
Ask an LLM
“Which CockroachDB clusters exist in my organization?”
“Can I include inactive clusters when listing clusters?”
Tell an agent
List all clusters in my organization.
List clusters including inactive ones, showing {show_inactive}.
POST /api/v1/clusters Create a Serverless or Dedicated cluster · Create a cluster #
Ask an LLM
“How do I spin up a new CockroachDB cluster in the cloud?”
“Can I choose the cloud provider and regions when creating a cluster?”
Tell an agent
Create a cluster named {name} on {provider} with spec {spec}.
Create cluster {name} on {provider} in regions {regions} using spec {spec}.
GET /api/v1/clusters/{cluster_id} Get a cluster's configuration and status · Get a cluster #
Ask an LLM
“What is the current state and configuration of a cluster?”
“Can I check which regions a cluster runs in?”
Tell an agent
Get cluster {cluster_id}.
Show the configuration and status of cluster {cluster_id}.
PATCH /api/v1/clusters/{cluster_id} Scale or upgrade a cluster · Update a cluster #
Ask an LLM
“How do I scale compute or storage on an existing cluster?”
“Can I upgrade a cluster to a newer CockroachDB version?”
Tell an agent
Scale cluster {cluster_id} to dedicated settings {dedicated}.
Upgrade cluster {cluster_id} to CockroachDB version {cockroach_version}.
DELETE /api/v1/clusters/{cluster_id} Permanently delete a cluster and its data · Delete a cluster #
Ask an LLM
“How do I delete a cluster and all its data?”
“Can I delete a cluster that has delete protection on?”
Tell an agent destructive · confirm first
Delete cluster {cluster_id} permanently.
Permanently remove cluster {cluster_id} and everything in it.
GET /api/v1/clusters/{cluster_id}/connection-string Get a connection string for a cluster · Get connection string #
Ask an LLM
“What connection string do I need to connect to a cluster?”
“Can I get a connection string scoped to one database and user?”
Tell an agent
Get the connection string for cluster {cluster_id}.
Get a connection string for cluster {cluster_id} to database {database} as user {sql_user}.
GET /api/v1/clusters/{cluster_id}/nodes List the nodes of a cluster · List cluster nodes #
Ask an LLM
“Which nodes make up a cluster?”
“Can I list only the nodes in one region?”
Tell an agent
List the nodes of cluster {cluster_id}.
List nodes in region {region_name} for cluster {cluster_id}.
GET /api/v1/clusters/available-regions List regions where clusters can be created · List available regions #
Ask an LLM
“Which cloud regions support cluster creation?”
“Can I see only the regions that support serverless clusters?”
Tell an agent
List regions available for cluster creation.
List regions on {provider} that support serverless clusters.
GET /api/v1/cluster-versions List major CockroachDB cluster versions · List major cluster versions #
Ask an LLM
“Which major CockroachDB versions can I use for a cluster?”
“What cluster versions are available for creating or upgrading clusters?”
Tell an agent
List the major cluster versions available.
Show the next major cluster versions I can create or upgrade to.

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/cockroach-labs:cockroach-labs-clusters-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

cockroach-labs-clusters-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cockroach Labs Clusters API
  version: '1.0'
  description: 'Operations tagged Clusters across 2 of this provider''s published API definitions: cockroach-labs-cloud-api-openapi.yml, cockroach-labs-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cockroachlabs.cloud
  description: CockroachDB Cloud Production Server
tags:


# --- truncated at 32 KB (68 KB total) ---
# Full source: https://artifacts.apis.io/cockroach-labs/openapi/cockroach-labs-clusters-api-openapi.yml