Queries the details of a parameter template.
Operation description
Parameter templates allow you to manage cluster parameters in batches. You can then quickly apply a parameter template to a PolarDB cluster. 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:DescribeParameterGroup |
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 information about all available regions for your account, including region IDs. |
cn-hangzhou |
| DBType |
string |
No |
||
| ParameterGroupId |
string |
Yes |
The ID of the parameter template. Note
Call the DescribeParameterGroups operation to query the details of all parameter templates in the destination region, including the parameter template IDs. |
pcpg-************** |
| 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. |
F1F16757-D31B-49CA-9BF4-305BAF****** |
| ParameterGroup |
array<object> |
The list of parameter template details. |
|
|
array<object> |
|||
| ParameterDetail |
array<object> |
The list of parameters. |
|
|
object |
|||
| ParamValue |
string |
The value of the parameter. |
3000 |
| ParamName |
string |
The name of the parameter. |
back_log |
| DBVersion |
string |
The version of the database engine. |
8.0 |
| ParameterGroupId |
string |
The ID of the parameter template. |
pcpg-************** |
| ParameterGroupName |
string |
The name of the parameter template. |
test |
| ForceRestart |
string |
Indicates whether the cluster must be restarted for the parameter template to take effect. Valid values:
|
1 |
| ParameterGroupType |
string |
The type of the parameter template. Valid values:
|
1 |
| 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 |
| ParameterCounts |
integer |
The number of parameters in the parameter template. |
2 |
| DBType |
string |
The type of the database engine. |
MySQL |
Examples
Success response
JSON format
{
"RequestId": "F1F16757-D31B-49CA-9BF4-305BAF******",
"ParameterGroup": [
{
"ParameterDetail": [
{
"ParamValue": "3000",
"ParamName": "back_log"
}
],
"DBVersion": "8.0",
"ParameterGroupId": "pcpg-**************",
"ParameterGroupName": "test",
"ForceRestart": "1",
"ParameterGroupType": "1",
"ParameterGroupDesc": "testgroup",
"CreateTime": "2023-03-10T08:40:39Z",
"ParameterCounts": 2,
"DBType": "MySQL"
}
]
}
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 | InvalidParameterGroupId.Malformed | The Specified parameter ParameterGroupId is not valid. | The specified ParameterGroupId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.