查看PolarDB集群当前参数运行列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
polardb:DescribeDBClusterParameters |
get |
*dbcluster
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DBClusterId |
string |
是 |
集群 ID。 |
pc-********** |
| DescribeType |
string |
否 |
内核参数,取值范围如下:
|
Normal |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RunningParameters |
object |
||
| Parameter |
array<object> |
PolarDB 集群中当前运行的参数列表。 |
|
|
object |
|||
| CheckingCode |
string |
目标参数的取值范围。 |
[utf8|latin1|gbk|utf8mb4] |
| DataType |
string |
参数值类型。取值范围如下:
|
INT |
| ParameterName |
string |
参数名。 |
character_set_server |
| ParameterValue |
string |
参数值。 |
utf8 |
| ForceRestart |
boolean |
是否需要重启生效。取值范围如下:
|
true |
| ParameterDescription |
string |
参数描述。 |
The server's default character set. |
| ParameterStatus |
string |
参数状态。取值范围如下:
|
Normal |
| DefaultParameterValue |
string |
参数默认值。 |
utf8 |
| IsModifiable |
boolean |
是否可修改。取值范围如下:
|
true |
| IsNodeAvailable |
string |
是否是全局参数。取值范围如下:
|
0 |
| ParamRelyRule |
string |
参数依赖。 |
utf8 |
| Factor |
string |
整除因子。对于整数和字节类型的参数,参数值除了必须满足参数的可选范围,还须是 Factor(不等于 0)的倍数。 |
20 |
| DBVersion |
string |
数据库引擎版本号。 MySQL 版本号取值范围如下:
PostgreSQL 版本号取值范围如下:
Oracle 版本号取值范围如下:
|
5.6 |
| RequestId |
string |
请求 ID。 |
EBEAA83D-1734-42E3-85E3-E25F6E****** |
| DBType |
string |
数据库类型,取值范围如下:
|
MySQL |
| Engine |
string |
引擎。 |
POLARDB |
| DBClusterId |
string |
集群 ID。 |
pc-bp1s826a1up****** |
| ParameterNumbers |
string |
参数个数。 |
1 |
| Parameters |
object |
||
| Parameters |
array<object> |
RDS 实例迁移 PolarDB 集群中当前运行的参数比对列表。 |
|
|
object |
|||
| rdsParameterName |
string |
源实例参数名称。 |
character_set_server |
| rdsParameterValue |
string |
源实例参数值。 |
utf8 |
| rdsParameterOptional |
string |
源实例参数取值范围。 |
- utf8 - gbk |
| distParameterName |
string |
集群参数名称。 |
character_set_server |
| distParameterValue |
string |
集群参数值。 |
utf8 |
| distParameterOptional |
string |
集群参数取值范围。 |
- utf8 - gbk |
| IsEqual |
string |
参数取值是否相同 |
true |
| distParameterDescription |
string |
集群参数说明。 |
The server's default character set. |
| rdsParameterDescription |
string |
源实例参数说明。 |
The server's default character set. |
| IsRdsKey |
string |
是否是主要的源实例参数。取值范围如下:
|
1 |
| IsPolarDBKey |
string |
是否是主要的目标实例参数。
|
0 |
| IsInstancePolarDBKey |
string |
是否是主要的目标实例参数。
|
1 |
| IsInstanceRdsKey |
string |
是否是主要的源实例参数。
|
0 |
示例
正常返回示例
JSON格式
{
"RunningParameters": {
"Parameter": [
{
"CheckingCode": "[utf8|latin1|gbk|utf8mb4]",
"DataType": "INT",
"ParameterName": "character_set_server",
"ParameterValue": "utf8",
"ForceRestart": true,
"ParameterDescription": "The server's default character set.",
"ParameterStatus": "Normal",
"DefaultParameterValue": "utf8",
"IsModifiable": true,
"IsNodeAvailable": "0",
"ParamRelyRule": "utf8",
"Factor": "20"
}
]
},
"DBVersion": "5.6",
"RequestId": "EBEAA83D-1734-42E3-85E3-E25F6E******",
"DBType": "MySQL",
"Engine": "POLARDB",
"DBClusterId": "pc-bp1s826a1up******\t\n",
"ParameterNumbers": "1",
"Parameters": {
"Parameters": [
{
"rdsParameterName": "character_set_server",
"rdsParameterValue": "utf8",
"rdsParameterOptional": "- utf8\n- gbk",
"distParameterName": "character_set_server",
"distParameterValue": "utf8",
"distParameterOptional": "- utf8\n- gbk",
"IsEqual": "true",
"distParameterDescription": "The server's default character set.",
"rdsParameterDescription": "The server's default character set.",
"IsRdsKey": "1",
"IsPolarDBKey": "0",
"IsInstancePolarDBKey": "1",
"IsInstanceRdsKey": "0"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API does not support RAM. | |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | 当前的记录中不存在提供的DBClusterId。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。