查询参数列表
更新时间:2023-09-22
接口描述
本接口用于查询参数列表。
请求结构
Plain Text
1GET /v{version}/gaiadb/cluster/{clusterId}/compute/params HTTP/1.1
2HOST: gaiadb.bj.baidubce.com
3Content-Type: application/json
4Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号 |
clusterId | String | 是 | URL参数 | 集群ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
params | Array<Param> | 参数列表 |
Param
参数名称 | 类型 | 描述 |
---|---|---|
id | Long | 参数ID |
name | String | 参数名 |
type | String | 参数类型 |
value | String | 参数值 |
bestValue | String | 最佳实践 |
description | String | 描述 |
allowEmpty | Boolean | 是否允许为空 |
allowedValues | String | 允许的取值范围 |
precision | Integer | 精度 |
attention | String | 注意事项 |
modifiable | Boolean | 是否可修改 |
caseSensitive | Boolean | 是否大小写敏感 |
status | String | 状态 |
createTime | String | 创建时间 |
updateTime | String | 更新时间 |
请求示例
Plain Text
1GET /v1/gaiadb/cluster/gaiadbxxxx8/compute/params HTTP/1.1
2HOST: gaiadb.bj.baidubce.com
3Content-Type: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
3Content-Type: application/json
4Content-Length: 0
5
6{
7 "params": [
8 {
9 "status": "available",
10 "updateTime": "2023-09-13 17:37:20",
11 "type": "integer",
12 "name": "auto_increment_increment",
13 "caseSensitive": false,
14 "modifiable": true,
15 "createTime": "2023-09-13 15:40:37",
16 "attention": "参数修改后,只对新连接有效。",
17 "precision": 0,
18 "value": "2",
19 "allowedValues": "1-65535",
20 "bestValue": "1",
21 "id": 45,
22 "description": "该参数为自增字段步长,默认值1,控制AUTO_INCREMENT属性字段连续列值之间的间隔。",
23 "allowEmpty": false
24 }
25 ]
26}