An API for managing CockroachDB Cloud resources
from cockroach_cloud_py import Client
from os import getenv
client = Client(token=getenv("API_TOKEN"))
from cockroach_cloud_py import AsyncClient
from os import getenv
client = AsyncClient(token=getenv("API_TOKEN"))
- create - Create a new API Key
- delete - Delete an API Key
- get - Get an API Key by ID
- list - List API Keys
- patch - Update an API Key
- list - List audit logs
- list - List available major cluster versions
- create - Create and initialize a new cluster
- delete - Delete a cluster and all of its data
- get - Get extended information about a cluster
- list - List clusters owned by an organization
- patch - Scale, edit or upgrade a cluster
- list - List the regions available for new clusters and nodes
- list - Get the backup configuration for a cluster
- patch - Update the backup configuration for a cluster
- create - Set Client CA Cert for a cluster
- delete - Delete Client CA Cert for a cluster
- list - Get Client CA Cert information for a cluster
- patch - Update Client CA Cert for a cluster
- create - Enable CMEK for a cluster
- list - Get CMEK-related information for a cluster
- patch - Update the CMEK-related status for a cluster
- update - Enable or update the CMEK spec for a cluster
- create - Create a new database
- delete - Delete a database
- get_connection_string - Get a formatted generic connection string for a cluster
- list - List databases for a cluster
- patch - Update a database
- patch_1 - Update a database
- list - Get disruption specifications for a cluster
- update - Update disruption specifications for a cluster
- create - Create or update the Log Export configuration for a cluster
- delete - Delete the Log Export configuration for a cluster
- list - Get the Log Export configuration for a cluster
- delete - Delete the maintenance window for a cluster
- list - Get the maintenance window for a cluster
- update - Set the maintenance window for a cluster
- create - Create or update the CloudWatch Metric Export configuration for a cluster
- delete - Delete the CloudWatch Metric Export configuration for a cluster
- list - Get the CloudWatch Metric Export configuration for a cluster
- create - Create or update the Datadog Metric Export configuration for a cluster
- delete - Delete the Datadog Metric Export configuration for a cluster
- list - Get the Datadog Metric Export configuration for a cluster
- create - Enable Prometheus Metric Export for a cluster
- delete - Disable Prometheus Metric Export for a cluster
- list - Get the Prometheus Metric Export configuration for a cluster
- create - Add a new CIDR address to the IP allowlist
- delete - Delete an IP allowlist entry
- list - Get the IP allowlist and propagation status for a cluster
- patch - Update an IP allowlist entry
- update - Add a new CIDR address to the IP allowlist
- create - Add an egress rule
- delete - Delete an existing egress rule
- get - Get an existing egress rule
- list - List all egress rules associated with a cluster
- patch - Edit an existing egress rule
- create - Outbound traffic management
- create - Add a connection to a cluster's private endpoint service.
- delete - Delete a connection from a cluster's private endpoint service.
- list - List all connections to a cluster's private endpoint service.
- create - Create all PrivateEndpointServices for a cluster
- list - List all PrivateEndpointServices for a cluster
- create - Add a private endpoint trusted owner to a cluster
- delete - Remove a private endpoint trusted owner from a cluster
- get - Get a private endpoint trusted owner entry for a cluster
- list - List all private endpoint trusted owners for a cluster
- list - List nodes for a cluster
- update - Update a SQL user's password
- list - Get the version upgrade deferral policy for a cluster.
- update - Set the version upgrade deferral policy for a cluster
- create - Create a folder
- delete - Delete a folder
- get - Get folder info for a folder
- list - List folders owned by an organization
- patch - Update a folder
- list - List contents of a folder
- create - Add a JWT Issuer
- delete - Delete a JWT Issuer
- get - Get a JWT Issuer
- list - List all JWT Issuers
- patch - Update a JWT Issuer
- get_info - Get information about the caller's organization
- create - Create a replication stream
- get - Get a replication stream
- list - List replication streams
- patch - Update a replication stream
- create - Add a role to a user or service account
- delete - Remove a role from a user or service account
- get - Get all Role Grants for a user
- list - List all RoleGrants
- update - Replace the roles for a user or service account with exactly those provided
- create - Create a group
- delete - Delete a group based on ID
- find - Search groups (Deprecated)
- find_all - Search a group by ID
- get - Get a group by ID
- get_by_id - Search a group by ID (Deprecated)
- list - List groups
- search - Search groups
- update - Update a group by supplying all values of the user object
- list - Return the SCIM Service Provider configuration
- create - Create a user
- delete - Delete a user based on ID
- find - Search for a user by ID
- get - Get a user by ID
- get_user - Search for a user by ID (Deprecated)
- get_users - Search User (Deprecated)
- list - List Users
- search - Search Users
- update - Update a user by supplying all values of the user object
- create - Create a service account
- delete - Delete a service account
- get - Get a service account by ID
- list - List service accounts for an organization
- patch - Update a service account
- list_by_email - Search person users by email address