This operation queries the parameter templates in a specified region.
Operation description
Parameter templates allow you to manage cluster parameters in batches and quickly apply them to PolarDB clusters. For more information, see Use parameter templates.
This feature is available only for PolarDB for MySQL clusters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeParameterGroups |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region. Note
Call the DescribeRegions operation to query the information about all available regions of your account, including the region IDs. |
cn-hangzhou |
| DBType |
string |
No |
The database engine type. Only MySQL is supported. |
MySQL |
| DBVersion |
string |
No |
The version of the database engine. Valid values:
|
8.0 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-************ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
944CED46-A6F7-40C6-B6DC-C6E5CC****** |
| ParameterGroups |
array<object> |
The list of parameter templates. |
|
|
object |
|||
| DBType |
string |
The type of the database engine. |
MySQL |
| DBVersion |
string |
The version of the database engine. |
8.0 |
| ParameterGroupName |
string |
The name of the parameter template. |
test |
| ForceRestart |
string |
Indicates whether a cluster restart is required for the parameter template to take effect. Valid values:
|
1 |
| ParameterGroupType |
string |
The type of the parameter template. Valid values:
|
1 |
| ParameterCounts |
integer |
The number of parameters in the parameter template. |
2 |
| ParameterGroupDesc |
string |
The description of the parameter template. |
testgroup |
| CreateTime |
string |
The time when the parameter template was created. The time is in the |
2023-03-10T08:40:39Z |
| ParameterGroupId |
string |
The ID of the parameter template. |
pcpg-************** |
Examples
Success response
JSON format
{
"RequestId": "944CED46-A6F7-40C6-B6DC-C6E5CC******",
"ParameterGroups": [
{
"DBType": "MySQL",
"DBVersion": "8.0",
"ParameterGroupName": "test",
"ForceRestart": "1",
"ParameterGroupType": "1",
"ParameterCounts": 2,
"ParameterGroupDesc": "testgroup",
"CreateTime": "2023-03-10T08:40:39Z",
"ParameterGroupId": "pcpg-**************"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified parameter RegionId is not valid. | The specified RegionId parameter is invalid. |
| 400 | InvalidEngine.Unsupported | The specified Engine does not support this feature. | This feature is not supported by the specified engine. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.