获取指定参数模板的参数 - ShowConfiguration
调试
您可以在API Explorer中调试该接口。
授权信息
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,需具备如下身份策略权限。
|
授权项 |
访问级别 |
资源类型(*为必须) |
条件键 |
别名 |
依赖的授权项 |
|---|---|---|---|---|---|
|
rds:param:get |
read |
- |
- |
rds:param:list |
- |
接口约束
- 支持的数据库引擎:MySQL、PostgreSQL、Microsoft SQL Server。
URI
- URI格式
- 参数说明
表1 参数说明 名称
是否必选
说明
project_id
是
参数解释:
租户在某一Region下的项目ID。
获取方法请参见获取项目ID。
约束限制:
不涉及。
取值范围:
不涉及。
默认取值:
不涉及。
config_id
是
参数解释:
参数模板ID。
约束限制:
不涉及。
取值范围:
当“config_id”为空(非空格)时,相当于获取参数模板列表的URL,具体请参见获取参数模板列表 - ListConfigurations。
默认取值:
不涉及。
请求消息
响应消息
- 正常响应要素说明
表2 要素说明 名称
参数类型
说明
id
String
参数解释:
参数模板ID。
取值范围:
不涉及。
name
String
参数解释:
参数模板名称。
取值范围:
不涉及。
datastore_version_name
String
参数解释:
数据库版本名称。
取值范围:
不涉及。
datastore_name
String
参数解释:
数据库名称。
取值范围:
不涉及。
description
String
参数解释:
描述。
取值范围:
不涉及。
created
String
参数解释:
创建时间。
取值范围:
格式为"yyyy-MM-ddTHH:mm:ssZ"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
updated
String
参数解释:
更新时间。
取值范围:
格式为"yyyy-MM-ddTHH:mm:ssZ"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
configuration_parameters
Array of objects
参数解释:
参数对象,用户基于默认参数模板自定义的参数配置。
详情请参见表3。
表3 configuration_parameters字段数据结构说明 名称
参数类型
说明
name
String
参数解释:
参数名称。
取值范围:
不涉及。
value
String
参数解释:
参数值。
取值范围:
不涉及。
restart_required
Boolean
参数解释:
是否需要重启。
取值范围:
- “false”表示否。
- “true”表示是。
readonly
Boolean
参数解释:
是否只读。
取值范围:
- “false”表示否。
- “true”表示是。
value_range
String
参数解释:
参数值范围。
取值范围:
如integer取值0-1、boolean取值true或者false等。
type
String
参数解释:
参数类型。
取值范围:
取值为“string”、“integer”、“boolean”、“list”或“float”之一。
description
String
参数解释:
参数描述。
取值范围:
不涉及。
- 正常响应样例
{ "id": "07fc12a8e0e94df7a3fcf53d0b5e1605pr01", "name": "default-mysql-5.7", "datastore_version_name": "5.7", "datastore_name": "mysql", "description": "Default parameter group for mysql 5.7", "created": "2017-05-05T04:40:51+0800", "updated": "2017-05-05T04:40:51+0800", "configuration_parameters": [ { "name": "auto_increment_increment", "value": "1", "restart_required": false, "readonly": true, "value_range": "1-65535", "type": "integer", "description": "auto_increment_increment and auto_increment_offset are intended for use with master-to-master replication, and can be used to control the operation of AUTO_INCREMENT columns." }, { "name": "autocommit", "value": "ON", "restart_required": false, "readonly": true, "value_range": "ON|OFF", "type": "boolean", "description": "The autocommit mode. If set to ON, all changes to a table take effect immediately. If set to OFF, you must use COMMIT to accept a transaction or ROLLBACK to cancel it. " } ] } - 异常响应
请参见异常请求结果。
状态码
- 正常
- 异常
请参见状态码。
错误码
请参见错误码。