catalog_workspace.

list_workspaces

list_workspaces()

Gets a list of all existing workspaces.

Parameters

None

Returns

typedescription
List[CatalogWorkspace]List of workspaces in the current organization.

Example

# List workspaces
workspaces = sdk.catalog_workspace.list_workspaces()

print(workspaces)
# [
#   CatalogWorkspace(id=demo, name=Demo),
#   CatalogWorkspace(id=demo_west, name=Demo West),
#   CatalogWorkspace(id=demo_west_california, name=Demo West California)
# ]