{ "opencollection": "1.0.0", "info": { "name": "CockroachDB Cloud APIKeys SQLUsers API", "version": "2024-09-16" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "SQLUsers", "type": "folder" }, "items": [ { "info": { "name": "List SQL users", "type": "http" }, "http": { "method": "GET", "url": "https://cockroachlabs.cloud/api/v1/clusters/:cluster_id/sql-users", "params": [ { "name": "cluster_id", "value": "", "type": "path", "description": "Unique identifier of the CockroachDB Cloud cluster." }, { "name": "pagination.page", "value": "", "type": "query", "description": "Page number for paginated results, starting from 1." }, { "name": "pagination.limit", "value": "", "type": "query", "description": "Maximum number of results to return per page." }, { "name": "pagination.as_of_time", "value": "", "type": "query", "description": "RFC3339 timestamp to return results as they were at a specific point in time (time-travel query)." }, { "name": "pagination.sort_order", "value": "", "type": "query", "description": "Sort direction for paginated results. Accepted values are ASC and DESC." } ] }, "docs": "Returns a list of SQL users for the specified cluster. Accessible to users with CLUSTER_ADMIN, CLUSTER_OPERATOR_WRITER, or CLUSTER_DEVELOPER roles." }, { "info": { "name": "Create a SQL user", "type": "http" }, "http": { "method": "POST", "url": "https://cockroachlabs.cloud/api/v1/clusters/:cluster_id/sql-users", "params": [ { "name": "cluster_id", "value": "", "type": "path", "description": "Unique identifier of the CockroachDB Cloud cluster." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new SQL user for the specified cluster. Requires CLUSTER_ADMIN role at organization, folder, or cluster scope." }, { "info": { "name": "Delete a SQL user", "type": "http" }, "http": { "method": "DELETE", "url": "https://cockroachlabs.cloud/api/v1/clusters/:cluster_id/sql-users/:name", "params": [ { "name": "cluster_id", "value": "", "type": "path", "description": "Unique identifier of the CockroachDB Cloud cluster." }, { "name": "name", "value": "", "type": "path", "description": "Username of the SQL user." } ] }, "docs": "Deletes a SQL user from the specified cluster by username. Requires CLUSTER_ADMIN role." }, { "info": { "name": "Update SQL user password", "type": "http" }, "http": { "method": "PUT", "url": "https://cockroachlabs.cloud/api/v1/clusters/:cluster_id/sql-users/:name/password", "params": [ { "name": "cluster_id", "value": "", "type": "path", "description": "Unique identifier of the CockroachDB Cloud cluster." }, { "name": "name", "value": "", "type": "path", "description": "Username of the SQL user." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the password for the specified SQL user on the given cluster. Requires CLUSTER_ADMIN role at organization, folder, or cluster scope." } ] } ], "bundled": true }