Get list of datasets with a tag

Sunaina
Sunaina Dataiku DSS Core Designer, Registered Posts: 4

Hi,

I want to extract a list of all datasets in Dataiku with a particular tag. I can do that on project level.

But how can I get the list from all projects with tagged dataset. Is this stored somewhere in snowflake?

Tagged:

Answers

  • JordanB
    JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 296 Dataiker

    Hi @Sunaina
    ,

    You can use your DSS "Catalog" to get a list of datasets with a specific tag (instance wide).

    Screen Shot 2023-05-08 at 6.21.14 PM.png

    Filter by Tags:

    Screen Shot 2023-05-08 at 6.22.21 PM.png

    Thanks!

    Jordan

  • Ioannis
    Ioannis Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 28 ✭✭✭✭✭
    edited July 17

    if you want to do this through code you can use dataikuapi.

    import dataiku
    import dataikuapi

    client = dataiku.api_client()
    project = client.get_project("your_project_name")
    datasets = project.list_datasets(as_type='listitems')
    datasets = [dataset for dataset in datasets if "your_tag_name" in dataset['tags']]

Setup Info
    Tags
      Help me…