Retrieves the dataset IDs of all datasets accessible within a project.

Input Parameters

Type

Default

Description

project_id

str

None

The unique identifier for the project.

PROJECT_ID = "example_project"

client.list_datasets(
    project_id=PROJECT_ID
)

Return Type

Description

list

A list containing the project ID string for each project.

[
    'dataset_a',
    'dataset_b',
    'dataset_c'
]