Clones an existing policy.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region. | cn-hangzhou |
PolicyGroupId | string | Yes | The ID of the policy that you want to clone. | pg-gx2x1dhsmthe9**** |
Name | string | Yes | The name of the policy. | testPolicyGroupName |
Response parameters
Examples
Sample success responses
JSON
format
{
"PolicyGroupId": "pg-7jcaznnx6go6n****",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidPolicyGroup.Status | The target policy group is being created. Please try again later. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history