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. createConnection

DataLens API: Create connection

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

HTTP requestHTTP request

Creates the specified connection.

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

Body parametersBody parameters

Request schema: application/json

{
  "<oneOf>": [
    // To create AppMetrica connection
    {
      "accuracy": "number | null",
      "counter_id": "string",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "dir_path": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "token": "string",
      "type": "appmetrica_api",
      "updated_at": "string",
      "workbook_id": "string | null"
    },
    // To create CHYT with authentication by OAuth token connection
    {
      "additional_cluster": "string",
      "alias": "string",
      "cache_ttl_sec": "integer | null",
      "cluster": "string",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "dir_path": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "raw_sql_level": "string",
      "token": "string",
      "type": "ch_over_yt",
      "updated_at": "string",
      "workbook_id": "string | null"
    },
    // To create CHYT with authentication as user connection
    {
      "additional_cluster": "string",
      "alias": "string",
      "cache_ttl_sec": "integer | null",
      "cluster": "string",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "dir_path": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "raw_sql_level": "string",
      "type": "ch_over_yt_user_auth",
      "updated_at": "string",
      "workbook_id": "string | null"
    },
    // To create ClickHouse connection
    {
      "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",
      "dir_path": "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",
      "readonly": "integer",
      "secure": "unknown",
      "ssl_ca": "unknown",
      "type": "clickhouse",
      "updated_at": "string",
      "username": "string | null",
      "workbook_id": "string | null"
    },
    // To create Greenplum connection
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "dir_path": "string",
      "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",
      "workbook_id": "string | null"
    },
    // To create Google Sheets connection
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "dir_path": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "type": "gsheets",
      "updated_at": "string",
      "url": "string",
      "workbook_id": "string | null"
    },
    // To create API Connector connection
    {
      "allowed_methods": [
        "string"
      ],
      "created_at": "string",
      "description": "string | null",
      "dir_path": "string",
      "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",
      "workbook_id": "string | null"
    },
    // To create Yandex Metrica API connection
    {
      "accuracy": "number | null",
      "counter_id": "string",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "description": "string | null",
      "dir_path": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "token": "string",
      "type": "metrika_api",
      "updated_at": "string",
      "workbook_id": "string | null"
    },
    // To create Microsoft SQL Server connection
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "dir_path": "string",
      "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",
      "workbook_id": "string | null"
    },
    // To create MySQL connection
    {
      "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",
      "dir_path": "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": "mysql",
      "updated_at": "string",
      "username": "string | null",
      "workbook_id": "string | null"
    },
    // To create Oracle Database connection
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_connect_method": "string",
      "db_name": "string | null",
      "description": "string | null",
      "dir_path": "string",
      "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",
      "workbook_id": "string | null"
    },
    // To create PostgreSQL connection
    {
      "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",
      "dir_path": "string",
      "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",
      "workbook_id": "string | null"
    },
    // To create Prometheus connection
    {
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string | null",
      "description": "string | null",
      "dir_path": "string",
      "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",
      "workbook_id": "string | null"
    },
    // To create DataLens Usage Tracking connection
    {
      "created_at": "string",
      "description": "string | null",
      "dir_path": "string",
      "id": "string",
      "key": "string",
      "meta": {
        "string": "unknown"
      },
      "name": "string",
      "type": "usage_tracking_ya_team",
      "updated_at": "string",
      "workbook_id": "string | null"
    },
    // To create YDB connection
    {
      "auth_type": "string | null",
      "cache_ttl_sec": "integer | null",
      "created_at": "string",
      "data_export_forbidden": "unknown",
      "db_name": "string",
      "description": "string | null",
      "dir_path": "string",
      "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",
      "workbook_id": "string | null"
    }
  ]
}

One of:

To create the AppMetrica connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the CHYT with authentication by OAuth token connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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)

Type of the connection.

updated_at

string

Timestamp when the connection was last updated.

workbook_id

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.

To create the CHYT with authentication as user connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the ClickHouse connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the Greenplum connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the Google Sheets connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the API Connector connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the Yandex Metrica API connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the Microsoft SQL Server connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the MySQL connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the Oracle connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the PostgreSQL connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the Prometheus connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

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.

workbook_id

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.

To create the Usage Tracking connection. For details, see documentation.

Field

Description

created_at

string

Timestamp when the connection was created.

description

string | null

Description of the connection.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

To create the YDB connection. 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.

dir_path

string

Required field. If you use folder navigation, provide path to the folder to create 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.

workbook_id

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.

When something went wrong and the connection was not created.

Field

Description

Empty

ResponseResponse

HTTP Code: 200

Response schema: application/json

{
  "id": "string"
}

Field

Description

id

string

Required field. ID of the created connection.

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

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