Skip to content

πŸ“Š DataLens

Workbooks, connections, datasets, charts, dashboards.

134 operations Β· CLI Β· MCP Β· Python

Sign in

You need Set
a token YANDEX_CLOUD_IAM_TOKEN: an IAM token, or a service account's key in YANDEX_CLOUD_SERVICE_ACCOUNT_KEY_FILE. A Yandex ID OAuth token is not taken
an organization YANDEX_CLOUD_ORGANIZATION_ID (Yandex Cloud, sent as x-dl-org-id)

How to get each of them: Authenticate.

Typical tasks

See what a collection holds

ycli datalens collections content-list col00000000001 --limit 45
{
  "name": "datalens_collections_content_list",
  "arguments": {
    "collection_id": "col00000000001",
    "limit": 45
  }
}
datalens.collections.content_list("col00000000001", limit=45)

List the workbooks

ycli datalens workbooks list --collection-id col00000000001 --limit 45
{
  "name": "datalens_workbooks_list",
  "arguments": {
    "collection_id": "col00000000001",
    "limit": 45
  }
}
datalens.workbooks.list(collection_id="col00000000001", limit=45)

See what a workbook holds

ycli datalens workbooks entries-list wb000000000001 --limit 45
{
  "name": "datalens_workbooks_entries_list",
  "arguments": {
    "workbook_id": "wb000000000001",
    "limit": 45
  }
}
datalens.workbooks.entries_list("wb000000000001", limit=45)

Find entries anywhere

ycli datalens entries list --scope dash --limit 45
{
  "name": "datalens_entries_list",
  "arguments": {
    "scope": "dash",
    "limit": 45
  }
}
datalens.entries.list(scope="dash", limit=45)

Reference