搜索本产品文档关键词
查询参数列表
所有文档
menu

云数据库 RDS

查询参数列表

返回该实例下数据库参数列表。

请求结构

Plain Text
1GET /v{version}/instance/{instanceId}/parameter?keyword=keyword HTTP/1.1
2HOST: rds.bj.baidubce.com
3Authorization: authorization string

请求头域

除公共头域外,无其它特殊头域。

请求参数

参数名称
类型
是否必须
参数位置
示例值
描述
versionIntegerURL参数1API 版本号
instanceIdStringURL参数rds-87Tx7SwY实例ID
keywordStringQuery参数auto关键词

返回头域

除公共头域外,无其它特殊头域。

返回参数

参数名称
类型
描述
etag String 当前数据版本号,如:v1
parameters List<OpenApiConfigItem> OpenApiConfigItem对象

OpenApiConfigItem 对象

参数名称
类型
描述
name String 参数名
defaultValue String 参数的默认值
value String 当前参数值
pendingValue String 待定值,默认为""
type String 参数类型:"integer","string","float"等
dynamic String 是否热加载,"true":为热加载参数,"false":为非热加载参数
modifiable String 是否可修改参数,"true":是,"false":不是
allowedValues String 可修改参数值
desc String 描述信息
etag String 修改版本号,如V1
configType String 参数类型:
other options
replication options
binlog row image options
character options
connection options
max connections options
tmp table size options
timeout options
log options
innodb options
flush neighbor page options
file/table options
semi-sync options
thread options

The maximum number of instrumented thread objects

The optimizer_switch system variable enables control over optimizer behavior

This parameter is used to configure the opening or closing of the performance schema tool.

The maximum number of metadata lock tools, which controls the number of metadata lock table records
bestValue String 建议实践值
attention String 注意事项
ifCluster Boolean 是否重启, true:是 、false:否

请求示例

Plain Text
1GET /v1/instance/rds-87Tx7SwY/parameter?keyword=auto HTTP/1.1
2HOST: rds.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
3ETag:v1
4ontent-Type: application/json
5{
6"parameters": [
7    {
8        "name": "auto_increment_increment",
9        "defaultValue": "1",
10        "value": "1",
11        "pendingValue": "",
12        "type": "integer",
13        "dynamic": "true",
14        "modifiable": "true",
15        "allowedValues": "1-65535",
16        "desc": "该参数为自增字段步长,默认值1,控制AUTO_INCREMENT属性字段连续列值之间的间隔。",
17        "etag": "v1",
18        "configType": "other options",
19        "bestValue": "1",
20        "attention": "参数修改后,只对新连接有效。",
21        "ifCluster": false
22    },
23    {
24        "name": "auto_increment_offset",
25        "defaultValue": "1",
26        "value": "1",
27        "pendingValue": "",
28        "type": "integer",
29        "dynamic": "true",
30        "modifiable": "true",
31        "allowedValues": "1-65535",
32        "desc": "该参数为自增字段偏移量,默认值1,决定AUTO_INCREMENT属性字段列值的起始点。当前自增字段值的公式:auto_increment_offset + (N-1)*auto_increment_increment, N为自增字段插入的序数。",
33        "etag": "v1",
34        "configType": "other options",
35        "bestValue": "1",
36        "attention": "对新连接生效。如果设置auto_increment_offset大于auto_increment_increment,则auto_increment_increment的值默认为1。",
37        "ifCluster": false
38    },
39    {
40        "name": "innodb_autoinc_lock_mode",
41        "defaultValue": "1",
42        "value": "1",
43        "pendingValue": "",
44        "type": "string",
45        "dynamic": "false",
46        "modifiable": "true",
47        "allowedValues": "0,1,2",
48        "desc": "该参数控制在向有auto_increment 列的表插入数据时的锁相关行为,通过对它的设置可以达到性能与安全(主从的数据一致性)的平衡:0:tradition,所有的insert语句在开始前都要获得一个表级别的auto_inc锁,在语句结束时释放。优点是保证了基于语句复制的安全,缺点是影响并发插入性能;1:consecutive,对simple insert,mysql可以一次生成几个连续的值。优点是auto_inc锁在语句得到相应的值后就释放,也保证了基于语句复制的安全;2:interleaved,这个模式没有了auto_inc锁。优点是性能最好,缺点是同一个语句的auto_incremant值可能不连续。",
49        "etag": "v1",
50        "configType": "innodb options",
51        "bestValue": "1",
52        "attention": "",
53        "ifCluster": false
54    }
55],
56"etag": "v1"
57}
上一篇
修改配置参数
下一篇
查询修改历史