CockroachDB

Databases API access token

Manage CockroachDB Cloud clusters, users, allowlists and private endpoints from any Windmill script, flow or app.

Set up in 3 steps

1

Create an API key

In the CockroachDB Cloud console, open Access Management then Service Accounts. Create one with the roles your scripts need, then create an API key for it.

2

Add the resource in Windmill

Open Resources, add a resource of type cockroachdb, and paste the token.

3

Run your first script

Fork any script below and read before writing anything. There are hundreds here, so search by the verb you need.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Update the backup configuration for a cluster

Script cockroachdb Verified

Update the CMEK-related status for a cluster

Script cockroachdb Verified

Update disruption specifications for a cluster

Script cockroachdb Verified

Update an IP allowlist entry

Script cockroachdb Verified

Update an API Key

Script cockroachdb Verified

Update a user by supplying all values of the user object

Script cockroachdb Verified

Update a service account

Script cockroachdb Verified

Update a physical replication stream

Script cockroachdb Verified

Update a group by supplying all values of the user object

Script cockroachdb Verified

Update a folder

Script cockroachdb Verified

Update a database

Script cockroachdb Verified

Update a SQL user's password

Script cockroachdb Verified

Update a JWT Issuer

Script cockroachdb Verified

Update Client CA Cert for a cluster

Script cockroachdb Verified

Set the version upgrade deferral policy for a cluster

Script cockroachdb Verified

Set the maintenance window for a cluster

Script cockroachdb Verified

Set the AWS Endpoint Connection state

Script cockroachdb Verified

Set Client CA Cert for a cluster

Script cockroachdb Verified

Search person users by email address

Script cockroachdb Verified

Search groups

Script cockroachdb Verified

Search for a user by ID

Script cockroachdb Verified

Search a group by ID

Script cockroachdb Verified

Search Users

Script cockroachdb Verified

Scale, edit or upgrade a cluster

Script cockroachdb Verified

Return the SCIM Service Provider configuration

Script cockroachdb Verified

Replace the roles for a user or service account with exactly those provided

Script cockroachdb Verified

Remove a role from a user or service account

Script cockroachdb Verified

Remove a private endpoint trusted owner from a cluster

Script cockroachdb Verified

Patch a user by supplying partial updates

Script cockroachdb Verified

Patch a group by supplying partial updates

Script cockroachdb Verified

Resource type

cockroachdb — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
tokenstringYesAccess token retrieved from the dashboard.

Questions

Is this for running SQL?

No. This manages the Cloud account — clusters, users, networking. To query a database, add a postgresql resource pointing at the cluster.

Creating clusters costs money

A cluster bills from the moment it exists. Scripts that create one should have a matching path that deletes it.

Is my token stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.