catalog_workspace.
list_workspaces
list_workspaces() -> list[CatalogWorkspace]
Returns a list of all workspaces in current organization.
Parameters
NoneReturns
| type | description |
|---|---|
| list[CatalogWorkspace] | 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)
# ]