Skip to main content
Workspace methods let you query the workspaces (teams) you belong to, inspect their nodes, and check resource quotas. Every CVM belongs to a workspace, and quotas are enforced at the workspace level.

list_workspaces

GET /workspaces Lists all workspaces the authenticated user has access to. Parameters: Optional dictionary of query parameters. Returns: List of workspace summaries. Example:

get_workspace

GET /workspaces/{teamSlug} Retrieves detailed information about a specific workspace. You can pass the team slug as a plain string or as a dictionary. Parameters: Returns: Workspace detail response. Example:

get_workspace_nodes

GET /workspaces/{teamSlug}/nodes Lists the TEE nodes available to a workspace. Supports pagination. Parameters: Returns: Paginated list of workspace nodes. Example:

get_workspace_quotas

GET /workspaces/{teamSlug}/quotas Returns the resource quotas and current usage for a workspace. This includes limits on CVMs, vCPUs, memory, and other resources. Like get_workspace, you can pass the team slug as a string or dictionary. Parameters: Returns: Workspace quotas response with limits and current usage. Example: