catalog_workspace_content.
get_attributes_catalog
get_attributes_catalog(workspace_id: str, include: list[str], rsql_filter: str) -> list[CatalogAttribute]
Retrieve all attributes in a given workspace.
Parameters
| name | type | description |
|---|---|---|
| workspace_id | str | Workspace identification string e.g. "demo" |
| include | list[str] | Entities to include. Available: datasets, labels, attributeHierarchies, dataset, defaultView, ALL |
| rsql_filter | str | An optional filter to be passed to API. |
Returns
| type | description |
|---|---|
| list[CatalogAttribute] | list[CatalogAttribute]: List of all attributes in a given workspace. |
Example
# Get attributes
attributes = sdk.catalog_workspace_content.get_attributes_catalog(workspace_id="123")
# [
# CatalogAttribute(
# id=campaign_channel_id,
# title=Campaign channel id,
# labels=[]
# ),
# CatalogAttribute(
# id=campaign_channels.category,
# title=Category,
# labels=[]
# ),
# CatalogAttribute(
# id=type,
# title=Type,
# labels=[]
# ),
# ...
# ]