All Products
Search
Document Center

ApsaraDB RDS:CloneParameterGroup

Last Updated:Apr 25, 2024

Replicates a parameter template to the current region or another region.

Operation description

Supported database engines

  • MySQL
  • PostgreSQL

References

Note Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
rds:CloneParameterGroupWRITE
  • DBInstance
    acs:rds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
  • rds:ResourceTag
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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.

cn-hangzhou
TargetRegionIdstringYes

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

cn-qingdao
ParameterGroupIdstringYes

The ID of the parameter template. You can call the DescribeParameterGroups operation to query the parameter template ID.

rpg-13ppdh****
ParameterGroupNamestringYes

The name of the parameter template in the destination region.

tartestgroup
ParameterGroupDescstringYes

The description of the parameter template in the destination region.

CloneGroup1
ResourceGroupIdstringNo

The ID of the resource group. You can leave this parameter empty.

rg-acfmy****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

1D3D5995-6BDD-43B5-93B8-2C41A2ACD6AA

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterGroupId.MalformedSpecified parameterGroupId is not valid.The parameter template ID that is specified by the parameterGroupId parameter is invalid. You can call the DescribeParameterGroups operation to query the IDs of parameter templates.
400InvalidEngine.MalformedSpecified engine is not valid.The database engine is invalid. Specify a valid database engine.
400InvalidEngineVersion.MalformedSpecified engine version is not valid.The database engine version is invalid. Check the database engine version and try again.
400ParamNotExistThis param Not ExistThe parameter does not exist. Check parameter configurations.
400ParamTypeErrorThe parameter type error.The parameter type is invalid.
400ParamGroupOptionValue.NotSupportSpecified option value unsupported.-
400ParamGroupsNotExistThe specified paramGroups does not exist.The parameter template cannot be found. You can call the DescribeParameterGroups operation to query the parameter templates that are available to a specified region.
400InvalidParameters.MalformedOne or more of the request parameters provided are not valid.One or more of the request parameters provided are not valid, please check the API document
400%sThe following parameters are prohibited: <br />%s-
404ParamGroupOptionKey.NotFoundSpecified system parameter group option unregistered.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-25The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 404
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ResourceGroupId
2023-06-09The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 404
2023-05-09The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
    delete Error Codes: 404
2022-10-28The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change