Tenants
Last updated
Was this helpful?
Last updated
Was this helpful?
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
No content
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:
desired_state
field of a workspace object, to indicate the
desired state of the workspace (with the exception of PENDING
and FAILED
which are not valid values for desired_state
)status
field of a workspace object, to indicate the current state
of the workspace0
100
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. user: Authenticated user. workspace_manager: Workspace manager. organization_manager: Organization manager.
Returns: Model of the created workspace.
Raises: IllegalOperationError: If the operation is not allowed.
false
false
Pydantic Model for creating a workspace.
Custom workspace ID. Use to enroll an existing workspace or to restore a deleted workspace.
The name of the workspace.
The display name of the workspace.
The description of the workspace.
The logo URL of the workspace.
The UUID of the workspace owner. If not set, the current user is set as the owner.
The UUID of the organization the workspace belongs to. If not set, the organization where the current user is owner is set as the workspace's organization.
Whether the workspace is managed by ZenML Pro or managed externally and enrolled.
true
Credentials generated externally for enrolled workspaces. If not set, credentials are generated as part of the enrollment process.
The ZenML service configuration. If not set, a default configuration is generated.
The MLflow service configuration. If not set, the MLflow service is not configured.