Yandex Cloud
Поиск
Связаться с намиПопробовать бесплатно
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
  • Marketplace
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Акции и free tier
  • Истории успеха
  • Документация
  • Блог
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Yandex DataLens
  • Нейроаналитик DataLens
  • DataLens Gallery
    • Как пользоваться Public API
      • Overview
      • getConnection
      • createConnection
      • updateConnection
      • deleteConnection
      • getDashboard
      • createDashboard
      • updateDashboard
      • deleteDashboard
      • getDataset
      • createDataset
      • updateDataset
      • deleteDataset
      • validateDataset
      • getEntriesRelations
      • getEntries
      • getQLChart
      • deleteQLChart
      • getWizardChart
      • deleteWizardChart
      • getEditorChart
      • deleteEditorChart
      • createEditorChart
      • updateEditorChart
      • getEntriesPermissions
      • getAuditEntriesUpdates
      • listDirectory
  • Аудитные логи Audit Trails

В этой статье:

  • HTTP request
  • Body parameters
  • Response
  1. DataLens Public API
  2. DataLens API (англ.)
  3. getConnection

DataLens API: Get connection

Статья создана
Yandex Cloud
Обновлена 16 января 2026 г.
  • HTTP request
  • Body parameters
  • Response

HTTP requestHTTP request

Returns the specified connection.

POST https://api.datalens.yandex.net/rpc/getConnection

Body parametersBody parameters

Request schema: application/json

{
  "connectionId": "string" ,
  "workbookId": "string | null",
  "rev_id": "string"
}

Field

Description

connectionId

string

Required field. ID of the connection to return. You can find it in the connection settings in DataLens interface.

workbookId

string | null

ID of the workbook the connection belongs to. If navigation across folders is enabled and the connection belongs to a folder, the value must be null.

rev_id

string

Version ID for the connection. For details, see documentation.

If the field is empty, you will get the current version of the connection.

ResponseResponse

HTTP Code: 200 - OK

Response schema: application/json

{
  "<oneOf>": [
    // For AppMetrica connections
    {
      "accuracy": "number | null",
      "counter_id": "string",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "token": "string",
      "type": "appmetrica_api",
      "updated_at": "string"
    },
    // For CHYT with authentication by OAuth token connections
    {
      "additional_cluster": "string",
      "alias": "string",
      "cache_ttl_sec": "integer | null",
      "cluster": "string",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "raw_sql_level": "string",
      "token": "string",
      "type": "ch_over_yt",
      "updated_at": "string"
    },
    // For CHYT with authentication as user connections
    {
      "additional_cluster": "string",
      "alias": "string",
      "cache_ttl_sec": "integer | null",
      "cluster": "string",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "raw_sql_level": "string",
      "type": "ch_over_yt_user_auth",
      "updated_at": "string"
    },
    // For ClickHouse connections
    {
      "cache_ttl_sec": "integer | null",
      "connection_manager_cloud_id": "string | null",
      "connection_manager_connection_id": "string | null",
      "connection_manager_delegation_is_set": "boolean | null",
      "connection_manager_folder_id": "string | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "host": "string",
      "id": "string",
      "key": "string",
      "mdb_cluster_id": "string | null",
      "mdb_folder_id": "string | null",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "password": "string | null",
      "port": "integer",
      "raw_sql_level": "string",
      "readonly": "integer",
      "secure": "unknown",
      "ssl_ca": "unknown",
      "type": "clickhouse",
      "updated_at": "string",
      "username": "string | null"
    },
    // For Greenplum connections
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "enforce_collate": "string",
      "host": "string",
      "id": "string",
      "key": "string",
      "mdb_cluster_id": "string | null",
      "mdb_folder_id": "string | null",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "password": "string",
      "port": "integer",
      "raw_sql_level": "string",
      "ssl_ca": "unknown",
      "ssl_enable": "unknown",
      "type": "greenplum",
      "updated_at": "string",
      "username": "string"
    },
    // For Google Sheets connections
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "type": "gsheets",
      "updated_at": "string",
      "url": "string"
    },
    // For API Connector connections
    {
      "allowed_methods": [
        "string"
      ],
      "created_at": "string",
      "description": "string | null",
      "host": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "path": "string | null",
      "plain_headers": "object | null",
      "port": "integer",
      "secret_headers": "object | null",
      "secure": "boolean",
      "tvm_dst_id": "integer | null",
      "type": "json_api",
      "updated_at": "string"
    },
    // For Yandex Metrica API connections
    {
      "accuracy": "number | null",
      "counter_id": "string",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "token": "string",
      "type": "metrika_api",
      "updated_at": "string"
    },
    // For Microsoft SQL Server connections
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "host": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "password": "string",
      "port": "integer",
      "raw_sql_level": "string",
      "type": "mssql",
      "updated_at": "string",
      "username": "string"
    },
    // For MySQL connections
    {
      "cache_ttl_sec": "integer | null",
      "connection_manager_cloud_id": "string | null",
      "connection_manager_connection_id": "string | null",
      "connection_manager_delegation_is_set": "boolean | null",
      "connection_manager_folder_id": "string | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "host": "string",
      "id": "string",
      "key": "string",
      "mdb_cluster_id": "string | null",
      "mdb_folder_id": "string | null",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "password": "string | null",
      "port": "integer",
      "raw_sql_level": "string",
      "ssl_ca": "unknown",
      "ssl_enable": "unknown",
      "type": "mysql",
      "updated_at": "string",
      "username": "string | null"
    },
    // For Oracle Database connections
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_connect_method": "string",
      "db_name": "string | null",
      "description": "string | null",
      "host": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "password": "string",
      "port": "integer",
      "raw_sql_level": "string",
      "ssl_ca": "unknown",
      "ssl_enable": "unknown",
      "type": "oracle",
      "updated_at": "string",
      "username": "string"
    },
    // For PostgreSQL connections
    {
      "cache_ttl_sec": "integer | null",
      "connection_manager_cloud_id": "string | null",
      "connection_manager_connection_id": "string | null",
      "connection_manager_delegation_is_set": "boolean | null",
      "connection_manager_folder_id": "string | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "enforce_collate": "string",
      "host": "string",
      "id": "string",
      "key": "string",
      "mdb_cluster_id": "string | null",
      "mdb_folder_id": "string | null",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "password": "string | null",
      "port": "integer",
      "raw_sql_level": "string",
      "ssl_ca": "unknown",
      "ssl_enable": "unknown",
      "type": "postgres",
      "updated_at": "string",
      "username": "string | null"
    },
    // For Prometheus connections
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "host": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "password": "string | null",
      "path": "string | null",
      "port": "integer",
      "secure": "boolean",
      "type": "promql",
      "updated_at": "string",
      "username": "string | null"
    },
    // For Monitoring connections
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "description": "string | null",
      "host": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "type": "solomon",
      "updated_at": "string"
    },
    // For DataLens Usage Tracking connections
    {
      "created_at": "string",
      "description": "string | null",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "type": "usage_tracking_ya_team",
      "updated_at": "string"
    },
    // For YDB connections
    {
      "auth_type": "string | null",
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string",
      "description": "string | null",
      "host": "string",
      "id": "string",
      "key": "string",
      "name": "string",
      "port": "integer",
      "raw_sql_level": "string",
      "ssl_ca": "unknown",
      "ssl_enable": "unknown",
      "token": "string | null",
      "type": "ydb",
      "updated_at": "string",
      "username": "string | null"
    }
  ]
}

One of:

If the AppMetrica connection was retrieved. For details, see documentation.

Field

Description

accuracy

number | null

Accuracy of the metric data.

counter_id

string

Required field. AppMetrica counter (app) ID.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

description

string | null

Description of the connection.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

token

string

Required field. OAuth token of the connection.

type

appmetrica_api (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

If the CHYT with authentication by OAuth token connection was retrieved. For details, see documentation.

Field

Description

additional_cluster

string

Backup cluster from the connection.

alias

string

Required field. CHYT clique alias.

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

cluster

string

Required field. Cluster from the connection.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

description

string | null

Description of the connection.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

token

string

Required field. OAuth token from the connection.

type

ch_over_yt (const)

updated_at

string

Timestamp when the connection was last updated.

If the CHYT with authentication as user connection was retrieved. For details, see documentation.

Field

Description

additional_cluster

string

Backup cluster from the connection.

alias

string

Required field. CHYT clique alias.

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

cluster

string

Required field. Cluster from the connection.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

description

string | null

Description of the connection.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

type

ch_over_yt_user_auth (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

If the ClickHouse connection was retrieved. For details, see documentation.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

connection_manager_cloud_id

string | null

ID of the cloud where the connection to the cluster was created in Connection Manager.

connection_manager_connection_id

string | null

Connection ID from Connection Manager.

connection_manager_delegation_is_set

boolean | null

Type of connection management. If true, connections are created automatically by a managed database cluster. Else connections are created by a user or a third-party service.

connection_manager_folder_id

string | null

ID of the folder where the connection to the cluster was created in Connection Manager.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

db_name

string | null

Database name.

description

string | null

Description of the connection.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

mdb_cluster_id

string | null

ID of the MDB cluster.

mdb_folder_id

string | null

ID of the MDB folder.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

password

string | null

Password for the connection.

port

integer

Required field. Connection port. The default port is 8443.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

readonly

integer

Read-only flag.

secure

unknown

Secure connection flag.

ssl_ca

unknown

SSL certificate authority.

type

clickhouse (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

username

string | null

Username for the connection.

If the Greenplum connection was retrieved. For details, see documentation.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

db_name

string | null

Database name.

description

string | null

Description of the connection.

enforce_collate

enum

Mode of setting collate in a query:

  • auto — Default setting is used, DataLens decides whether to enable the en_US locale.
  • on — DataLens setting is used, the en_US locale is specified for individual expressions in a query.
  • off — Applies the default setting. DataLens uses database-level locale settings.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

mdb_cluster_id

string | null

ID of the MDB cluster.

mdb_folder_id

string | null

ID of the MDB folder.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

password

string

Required field. Password for the connection.

port

integer

Required field. Connection port.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

ssl_ca

unknown

SSL certificate authority.

ssl_enable

unknown

SSL flag.

type

greenplum (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

username

string

Required field. Username for the connection.

If the Google Sheets connection was retrieved. For details, see documentation.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

description

string | null

Description of the connection.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

type

gsheets (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

url

string

Required field. Path to the Google Sheets file.

If the API Connector connection was retrieved. For details, see documentation.

Field

Description

allowed_methods[]

enum

Required field. A method to send an HTTP request to the API. The available methods are:

  • GET
  • POST

created_at

string

Timestamp when the connection was created.

description

string | null

Description of the connection.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

path

string | null

Path to the API (part of the URL without a protocol, host name, or port).

plain_headers

object | null

Public request headers represented by key-value pair.

port

integer

Required field. Connection port.

secret_headers

object | null

Private request headers represented by key-value pair. For private headers value will return null.

secure

boolean

Secure connection flag.

tvm_dst_id

integer | null
ID for TVM authentication.

type

json_api (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

If the Yandex Metrica API connection was retrieved. For details, see documentation.

Field

Description

accuracy

number | null

Accuracy of the metric data.

counter_id

string

Required field. AppMetrica counter (app) ID.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

description

string | null

Description of the connection.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

token

string

Required field. OAuth token from the connection.

type

metrika_api (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

If the Microsoft SQL Server connection was retrieved. For details, see documentation.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

db_name

string | null

Database name.

description

string | null

Description of the connection.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

password

string

Required field. Password for the connection.

port

integer

Required field. Connection port.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

type

mssql (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

username

string

Required field. Username for the connection.

If the MySQL connection was retrieved. For details, see documentation.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

connection_manager_cloud_id

string | null

ID of the cloud where the connection to the cluster was created in Connection Manager.

connection_manager_connection_id

string | null

Connection ID from Connection Manager.

connection_manager_delegation_is_set

boolean | null

Type of connection management. If true, connections are created automatically by a managed database cluster. Else connections are created by a user or a third-party service.

connection_manager_folder_id

string | null

ID of the folder where the connection to the cluster was created in Connection Manager.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

db_name

string | null

Database name.

description

string | null

Description of the connection.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

mdb_cluster_id

string | null

ID of the MDB cluster.

mdb_folder_id

string | null

ID of the MDB folder.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

password

string | null

Password for the connection.

port

integer

Required field. Connection port.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

ssl_ca

unknown

SSL certificate authority.

ssl_enable

unknown

SSL flag.

type

mysql (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

username

string | null

Username for the connection.

If the Oracle connection was retrieved. For details, see documentation.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

db_connect_method

enum

Required field. Specified service name or the system ID of the database.

  • sid — system ID.
  • service_name — service name.

db_name

string | null

Database name.

description

string | null

Description of the connection.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

password

string

Required field. Password for the connection.

port

integer

Required field. Connection port.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

ssl_ca

unknown

SSL certificate authority.

ssl_enable

unknown

SSL flag.

type

oracle (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

username

string

Required field. Username for the connection.

If the PostgreSQL connection was retrieved. For details, see documentation.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

connection_manager_cloud_id

string | null

ID of the cloud where the connection to the cluster was created in Connection Manager.

connection_manager_connection_id

string | null

Connection ID from Connection Manager.

connection_manager_delegation_is_set

boolean | null

Type of connection management. If true, connections are created automatically by a managed database cluster. Else connections are created by a user or a third-party service.

connection_manager_folder_id

string | null

ID of the folder where the connection to the cluster was created in Connection Manager.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

db_name

string | null

Database name.

description

string | null

Description of the connection.

enforce_collate

enum

Mode of setting collate in a query:

  • auto — Default setting is used, DataLens decides whether to enable the en_US locale.
  • on — DataLens setting is used, the en_US locale is specified for individual expressions in a query.
  • off — Applies the default setting. DataLens uses database-level locale settings.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

mdb_cluster_id

string | null

ID of the MDB cluster.

mdb_folder_id

string | null

ID of the MDB folder.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

password

string | null

Password for the connection.

port

integer

Required field. Connection port.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

ssl_ca

unknown

SSL certificate authority.

ssl_enable

unknown

SSL flag.

type

postgres (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

username

string | null

Username for the connection.

If the Prometheus connection was retrieved. For details, see documentation.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

db_name

string | null

Database name.

description

string | null

Description of the connection.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

password

string | null

Password for the connection.

path

string | null

port

integer

Required field. Connection port.

secure

boolean

Secure connection flag.

type

promql (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

username

string | null

Username for the connection.

If the Monitoring connection was retrieved.

Field

Description

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

created_at

string

Timestamp when the connection was created.

description

string | null

Description of the connection.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

type

solomon (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

If the Usage Tracking connection was retrieved. For details, see documentation.

Field

Description

created_at

string

Timestamp when the connection was created.

description

string | null

Description of the connection.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

meta

object (map<string, unknown>)

Metadata associated with the connection.

name

string

Required field. Name of the connection.

type

usage_tracking_ya_team (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

If the YDB connection was retrieved. For details, see documentation.

Field

Description

auth_type

enum

Authentication type:

  • anonymous — anonymously.
  • password — with password.
  • oauth — with OAuth token.
  • null — not specified.

cache_ttl_sec

integer | null

Cache time-to-live in seconds.

created_at

string

Timestamp when the connection was created.

data_export_forbidden

unknown

Indicates if data export is forbidden.

db_name

string

Required field. Database name.

description

string | null

Description of the connection.

host

string

Required field. Host name.

id

string

Unique identifier of the connection.

key

string

Key used to identify the connection. Indicates the path and name of the connection.

name

string

Required field. Name of the connection.

port

integer

Required field. Connection port.

raw_sql_level

enum

Raw SQL level:

  • off — The option is disabled.
  • subselect — Allowed subqueries in datasets.
  • template — Allowed subqueries in datasets and source parameterization.
  • dashsql — Allowed subqueries in datasets, source parameterization, and QL charts.

ssl_ca

unknown

SSL certificate authority.

ssl_enable

unknown

SSL flag.

token

string | null

OAuth token from the connection.

type

ydb (const)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

username

string | null

Username for the connection.

The response is empty.

Field

Description

Empty

Была ли статья полезна?

Предыдущая
Overview
Следующая
createConnection
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ООО «Яндекс.Облако»