GET /v2/db-connections/types
Назначение
Справочник типов подключений (clickhouse, postgres, s3, smbprotocol, custom…) со схемами свойств и секретов.
Авторизация и права
Схема: Bearer (JWT) или Basic — см. Аутентификация.
При
V2_AUTH_ENABLED=false— без авторизации.
Параметры
Нет параметров пути и запроса.
Заголовки
Тело запроса
Нет тела запроса.
Ответы
Ошибки
Побочные эффекты
Нет.
Идемпотентность и конкурентность
Только чтение.
Соответствие v1
Нет аналога в v1.
Примеры
**Запрос** ```bash curl -X GET "https://dcc.example.com/api/v2/db-connections/types" \ -H "Authorization: Bearer <TOKEN>" ``` **Ответ `200`** ```json { "success": true, "data": [ { "name": "clickhouse", "kind": "sql", "default_driver": "native", "drivers": [ { "name": "native", "options_schema": { "additionalProperties": false, "properties": {}, "title": "NoDriverOptions", "type": "object" }, "public_options_schema": { "additionalProperties": false, "properties": {}, "title": "NoDriverOptions", "type": "object" }, "tags": [] }, { "name": "http", "options_schema": { "additionalProperties": false, "properties": {}, "title": "NoDriverOptions", "type": "object" }, "public_options_schema": { "additionalProperties": false, "properties": {}, "title": "NoDriverOptions", "type": "object" }, "tags": [] } ], "supported_drivers": [ "http", "native" ], "capabilities": [ "check", "client" ], "tags": [], "properties_schema": { "properties": { "host": { "title": "Host", "type": "string" }, "port": { "title": "Port", "type": "integer" }, "username": { "title": "Username", "type": "string" }, "database": { "title": "Database", "type": "string" }, "secure": { "default": false, "title": "Secure", "type": "boolean" }, "connect_timeout": { "anyOf": [ { "type": "integer" }, { "type": "null" // … ещё 2481 строк; полный ответ — в .json рядом ```
Связанное
Модуль: db_connection