Skip to main content
POST
Error

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
name
string
必填

Display name for the connection.

示例:

"Production ClickHouse"

host
string
必填

ClickHouse HTTP endpoint URL.

示例:

"https://clickhouse.example.com:8443"

username
string
必填

ClickHouse username.

示例:

"default"

password
string
write-only

ClickHouse password. Never returned by the API.

示例:

"my-secret-password"

hyperdxSettingPrefix
string | null

Optional prefix for HyperDX-specific ClickHouse settings. Must only contain alphanumeric characters and underscores.

示例:

"hyperdx_"

isPrometheusEndpoint
boolean

Optional. When true, host is treated as a Prometheus-compatible API endpoint (e.g. Prometheus or Thanos) and PromQL queries are proxied to it. When false or omitted, host is a ClickHouse HTTP endpoint.

示例:

false

响应

Successfully created connection

data
object

The connection object.

最后修改于 2026年7月15日