Get list of datasets with a tag

Sunaina
Level 2
Get list of datasets with a tag

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?

0 Kudos
2 Replies
JordanB
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

0 Kudos
imanousar
Level 3

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']]

 

0 Kudos