Tenants
Endpoint to list workspaces.
Only superusers can list all workspaces, without membership.
Args: tenant_id: Deprecated, use workspace_id instead. tenant_name: Deprecated, use workspace_name instead. workspace_id: Workspace ID to filter by. workspace_name: Workspace name to filter by. url: Workspace service URL to filter by. organization_id: Organization ID to filter by. status: Filter by workspace status. is_managed: Filter by whether the workspace is managed by ZenML Pro. owner_id: Id of the Workspace owner offset: Offset for pagination. limit: Limit for pagination. auth_context: Auth context. workspace_manager: Workspace manager. organization_manager: Organization manager. rbac: RBAC component.
Returns: List of all workspaces within the given filter params.
Raises: IllegalOperationError: If the operation is not allowed.
Enum that represents the desired state or status of a workspace.
These values can be used in two places:
- in the
desired_statefield of a workspace object, to indicate the desired state of the workspace (with the exception ofPENDINGandFAILEDwhich are not valid values fordesired_state) - in the
statusfield of a workspace object, to indicate the current state of the workspace
0100Successful Response
Validation Error
Create or enroll a workspace.
Args: workspace_create: Workspace create model. organization_id: ID of the organization to which the workspace belongs to. force: If it should be created regardless of workspace limits. enroll: Set if this is an unmanaged workspace that is being enrolled. name: Name of the workspace. description: Description of the workspace. rbac: RBAC component. auth_context: Auth context. workspace_manager: Workspace manager. organization_manager: Organization manager.
Returns: Model of the created workspace.
Raises: IllegalOperationError: If the operation is not allowed.
falsefalseSuccessful Response
Validation Error
Delete all workspaces.
Args: user: Authenticated user. workspace_manager: Workspace manager.
Raises: IllegalOperationError: If a regular user tries to force delete or if the operation is not allowed in the current environment.
Successful Response
Successful Response
No content
Last updated
Was this helpful?