Clones a policy.

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 ClonePolicyGroup

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

Name String Yes testPolicyGroupName

The name of the policy.

PolicyGroupId String Yes pg-kadadfqkhjhe9****

The ID of the policy you want to clone.

RegionId String Yes cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
PolicyGroupId String pg-gx2x1dhsmthe9****

The ID of the new policy.

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=ClonePolicyGroup
&Name=testPolicyGroupName
&PolicyGroupId=pg-kadadfqkhjhe9****
&RegionId=cn-hangzhou
&<Common request parameters>|

Sample success responses

XML format

<ClonePolicyGroupResponse>
  <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
  <PolicyGroupId>pg-gx2x1dhsmthe9****</PolicyGroupId>
</ClonePolicyGroupResponse>

JSON format

{
    "ClonePolicyGroupResponse": {
        "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
        "PolicyGroupId": "pg-gx2x1dhsmthe9****"
    }
}