All Products
Search
Document Center

WUYING Workspace:ClonePolicyGroup

Last Updated:Mar 26, 2024

Clones an existing policy.

Debugging

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

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region.

cn-hangzhou
PolicyGroupIdstringYes

The ID of the policy that you want to clone.

pg-gx2x1dhsmthe9****
NamestringYes

The name of the policy.

testPolicyGroupName

Response parameters

ParameterTypeDescriptionExample
object

The information that is returned.

PolicyGroupIdstring

The ID of the new policy.

pg-7jcaznnx6go6n****
RequestIdstring

The ID of the request.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

Examples

Sample success responses

JSONformat

{
  "PolicyGroupId": "pg-7jcaznnx6go6n****",
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}

Error codes

HTTP status codeError codeError message
400InvalidPolicyGroup.StatusThe target policy group is being created. Please try again later.

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

Change history

Change timeSummary of changesOperation
No change history