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

nametypedescription
workspace_idstrWorkspace identification string e.g. "demo"
includelist[str]Entities to include. Available: datasets, labels, attributeHierarchies, dataset, defaultView, ALL
rsql_filterstrAn optional filter to be passed to API.

Returns

typedescription
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=[]
#   ),
# ...
# ]