singlestoredb.manage_clusters¶
- singlestoredb.manage_clusters(access_token: str | None = None, version: str | None = None, base_url: str | None = None, *, organization_id: str | None = None) ClusterManager¶
Retrieve a SingleStoreDB cluster manager.
- Parameters:
access_token (str, optional) – The API key or other access token for the cluster management API
version (str, optional) – Version of the API to use. Defaults to the
management.versionoption (theSINGLESTOREDB_MANAGEMENT_VERSIONenvironment variable), or toDEFAULT_CLUSTER_VERSIONwhen that is unset.base_url (str, optional) – Base URL of the cluster management API
organization_id (str, optional) – ID of organization, if using a JWT for authentication
- Return type:
- Raises:
ManagementError – If
v1is the resolved version, whether requested by the caller or by themanagement.versionoption. Clusters were introduced in v2; the v1 equivalents are workspaces, reached withsinglestoredb.manage_workspaces().