Queries the default parameters of a database cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeParameterTemplates |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBType |
string |
Yes |
The database engine type. Only MySQL is supported. |
MySQL |
| DBVersion |
string |
Yes |
The database version. Valid values:
|
5.7 |
| RegionId |
string |
Yes |
The region ID. Note
Call the DescribeRegions operation to query the IDs of available regions. |
cn-hangzhou |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-************ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ParameterCount |
string |
The number of parameters. |
183 |
| DBVersion |
string |
The database engine version. |
5.7 |
| Parameters |
object |
||
| TemplateRecord |
array<object> |
A list of parameters. |
|
|
object |
|||
| CheckingCode |
string |
The valid values for the parameter. |
[ROW|STATEMENT|MIXED] |
| ParameterName |
string |
The parameter name. |
binlog_format |
| ParameterValue |
string |
The default value of the parameter. |
ROW |
| ForceModify |
string |
Indicates whether the parameter can be modified. Valid values:
|
true |
| ForceRestart |
string |
Indicates whether a restart is required for a new parameter value to take effect. Valid values:
|
false |
| ParameterDescription |
string |
The parameter description. |
What form of binary logging the master will use. |
| IsNodeAvailable |
string |
Indicates whether the parameter is a global parameter. Valid values:
|
1 |
| ParamRelyRule |
string |
The parameter dependencies. |
utf8 |
| RequestId |
string |
The request ID. |
D963934D-8605-4473-8EAC-54C719****** |
| DBType |
string |
The database engine type. |
MySQL |
| Engine |
string |
The database engine. |
POLARDB |
Examples
Success response
JSON format
{
"ParameterCount": "183",
"DBVersion": "5.7",
"Parameters": {
"TemplateRecord": [
{
"CheckingCode": "[ROW|STATEMENT|MIXED]",
"ParameterName": "binlog_format",
"ParameterValue": "ROW",
"ForceModify": "true",
"ForceRestart": "false",
"ParameterDescription": "What form of binary logging the master will use.",
"IsNodeAvailable": "1",
"ParamRelyRule": "utf8"
}
]
},
"RequestId": "D963934D-8605-4473-8EAC-54C719******",
"DBType": "MySQL",
"Engine": "POLARDB"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBType.NotFound | The Specified DBType does not found. | |
| 400 | InvalidDBVersion.Malformed | The Specified DBVersion is not valid. | The specified DBVersion parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.