This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
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)
# ]