DataLens API: Create connection
HTTP request
Creates the specified connection.
POST https://api.datalens.yandex.net/rpc/createConnection
Body 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 |
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:
|
|
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 |
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:
|
|
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 |
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:
|
|
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 |
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:
|
|
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:
|
|
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 |
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 |
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:
|
|
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 |
|
secure |
boolean Secure connection flag. |
|
tvm_dst_id |
integer | null |
|
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 |
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 |
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:
|
|
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 |
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:
|
|
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 |
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.
|
|
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:
|
|
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 |
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:
|
|
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:
|
|
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 |
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 |
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 |
To create the YDB connection. For details, see documentation
.
|
Field |
Description |
|
auth_type |
enum Authentication type:
|
|
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:
|
|
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 |
When something went wrong and the connection was not created.
|
Field |
Description |
|
Empty |
|
Response
HTTP Code: 200
Response schema: application/json
{
"id": "string"
}
|
Field |
Description |
|
id |
string Required field. ID of the created connection. |