查询集群配置

接口URL

/api/v1/cluster/tidbs/{clusterID}/config

请求方式

GET

Content-Type

application/json

认证方式

Bearer auth

路径变量

参数名 示例值 参数描述
clusterID tidb-43bd353978db0af4 操作的集群ID

成功响应示例

{
    "Data": {
        "ClusterID": "tidb-43bd353978db0af4",
        "ServerConfigs": {
            "pd": {
                "replication.location-labels": [
                    "zone",
                    "rack",
                    "host",
                    "port"
                ]
            },
            "tidb": {
                "binlog.enable": false,
                "binlog.ignore-error": false,
                "enable-telemetry": false,
                "log.slow-threshold": 400
            }
        },
        "Variables": {
            "tidb_distsql_scan_concurrency": "15"
        }
    },
    "Success": true
}
参数名 示例值 参数类型 参数描述
Data - Object
Data.ClusterID tidb-43bd353978db0af4 String 集群ID, 集群的全局唯一编号
Data.ServerConfigs - Object 集群各组件配置
Data.ServerConfigs.pd - Object
Data.ServerConfigs.pd.replication.location-labels zone Array
Data.ServerConfigs.tidb - Object
Data.ServerConfigs.tidb.binlog.enable false Boolean
Data.ServerConfigs.tidb.binlog.ignore-error false Boolean
Data.ServerConfigs.tidb.enable-telemetry false Boolean
Data.ServerConfigs.tidb.log.slow-threshold 400 Integer
Data.Variables - Object 集群全局变量配置
Data.Variables.tidb_distsql_scan_concurrency 15 String
Success true Boolean
© 2024 平凯星辰(北京)科技有限公司 all right reserved,powered by GitbookFile Modify: 2024-04-02 15:37:04

results matching ""

    No results matching ""