Get list of datasets with a tag
![Sunaina](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar1.png)
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
-
Ioannis Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 28 ✭✭✭✭✭
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']]