Replicates a parameter template to a region.

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 CloneParameterGroup

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

RegionId String Yes cn-hangzhou

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

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.

TargetRegionId String Yes cn-qingdao

The ID of the destination region to which you want to replicate the parameter template. You can call the DescribeRegions operation to query the most recent region list.

ParameterGroupName String Yes tartestgroup

The new name to use for the parameter template in the destination region.

ParameterGroupDesc String Yes CloneGroup1

The new description to use for the parameter template in the destination region.

AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description
RequestId String 1D3D5995-6BDD-43B5-93B8-2C41A2ACD6AA

The ID of the request.

Examples

Sample requests


http(s)://rds.aliyuncs.com/? Action=CloneParameterGroup
&RegionId=cn-hangzhou
&ParameterGroupId=rpg-xxxxxxx
&TargetRegionId=cn-qingdao
&ParameterGroupName=tartestgroup
&ParameterGroupDesc=CloneGroup1
&<Common request parameters>

Sample success responses

XML format

<CloneParameterGroupResponse>
  <RequestId>1D3D5995-6BDD-43B5-93B8-2C41A2ACD6AA</RequestId>
</CloneParameterGroupResponse>

JSON format

{
	"RequestId":"1D3D5995-6BDD-43B5-93B8-2C41A2ACD6AA"
}

Error codes

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