Clones an existing policy to quickly create a policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:ClonePolicyGroup |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the regions supported by Elastic Desktop Service (EDS). |
cn-hangzhou |
| PolicyGroupId |
string |
Yes |
The ID of the destination cloud computer policy that you want to clone. |
pg-gx2x1dhsmthe9**** |
| Name |
string |
Yes |
The name of the cloud computer policy that you want to create. |
testPolicyGroupName |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| PolicyGroupId |
string |
The ID of the new cloud computer policy. |
pg-7jcaznnx6go6n**** |
| RequestId |
string |
The ID of the request. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"PolicyGroupId": "pg-7jcaznnx6go6n****",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPolicyGroup.Status | The target policy group is being created. Please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.