Queries the details of a parameter template.
Operation description
Parameter templates allow you to manage cluster parameters in batches. You can use parameter templates to quickly apply a 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 region ID. Note Call the DescribeRegions operation to query the available regions. | cn-hangzhou |
| ParameterGroupId | string | Yes | pcpg-************** | |
| ResourceGroupId | string | No | The ID of the resource group. Note Call the DescribeParameterGroups operation to query the details of all parameter templates in the destination region, including the parameter template IDs. | rg-************ |
Response parameters
| Parameter | Type | Description | Example |
| object | The response. | ||
| RequestId | string | The request ID. | F1F16757-D31B-49CA-9BF4-305BAF****** |
| ParameterGroup | array<object> | A 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 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 |
| 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 |
| 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 |
| ParameterGroupId | string | The ID of the parameter template. | pcpg-************** |
Examples
Success response
JSON format
{ "RequestId": "F1F16757-D31B-49CA-9BF4-305BAF******", "ParameterGroup": [ { "DBType": "MySQL", "DBVersion": "8.0", "ParameterGroupName": "test", "ForceRestart": "1", "ParameterGroupType": "1", "ParameterCounts": 2, "ParameterGroupDesc": "testgroup", "CreateTime": "2023-03-10T08:40:39Z", "ParameterDetail": [ { "ParamValue": "3000", "ParamName": "back_log" } ], "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 | 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.