Modifies a parameter template.

You can batch configure parameters in a parameter template and then apply it to your ApsaraDB for RDS instance. For more information, see Operate parameter templates.

Note This API operation is only available to ApsaraDB for RDS instances running MySQL.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyParameterGroup

The operation that you want to perform. Set the value to ModifyParameterGroup.

RegionId String Yes cn-hangzhou

The region ID of the parameter template. You can call the DescribeRegions operation to query the most recent region list.

Note The region of a parameter template cannot be changed. You can call the CloneParameterGroup operation to replicate a parameter template to a specific region.
ParameterGroupId String Yes rpg-xxxxxxx

The ID of the parameter template. You can call the DescribeParameterGroups operation to query the most recent parameter templates in a specific region.

ParameterGroupName String No testgroup1

The name of the parameter template.

  • The name must be 8 to 64 characters in length. The name must start with a letter and can contain letters, digits, dots (.),
  • and underscores (_).
Note If you do not specify this parameter, the original name of the parameter template is retained.
Parameters String No {"back_log":"3000"}

A JSON string that consists of parameters and their values to be modified in the parameter template. Format: {"Parameter 1":"Value of Parameter 1","Parameter 2":"Value of Parameter 2 "......}. For information about configurable parameters, see Reconfigure parameters for an RDS for MySQL instance.

Note
  • If you specify this parameter, the new parameters replace the original ones.
  • If you do not specify this parameter, the original parameters in the parameter template are retained.
ParameterGroupDesc String No test

The new description of the parameter template. The description can be up to 200 characters in length.

Note If you do not specify this parameter, the original description of the parameter template is retained.
AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description
RequestId String 857DC00B-7B85-4853-8B27-AD65EB618BC6

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ModifyParameterGroup
&RegionId=cn-hangzhou
&ParameterGroupId=rpg-xxxxxxx
&Parameters={"back_log":"3000"}
&<Common request parameters>

Sample success responses

XML format

<ModifyParameterGroupResponse>
  <RequestId>857DC00B-7B85-4853-8B27-AD65EB618BC6</RequestId>
</ModifyParameterGroupResponse>

JSON format

{
	"RequestId":"857DC00B-7B85-4853-8B27-AD65EB618BC6"
}

Error codes

For a list of error codes, visit the API Error Center.