You can call this operation to modify 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 ModifyPolicyGroup

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

PolicyGroupId String Yes pg-gx2x1dhsmthe9****

The ID of the policy.

RegionId String Yes cn-hangzhou

The ID of the region.

Name String No testPolicyGroupName

The name of the policy.

Clipboard String No off

The permission on clipboards. Valid values:

  • read: read-only. You can copy data from a local device to a cloud desktop, but cannot copy data from a cloud desktop to a local device.
  • readwrite: read and write. You can copy data from a local device to a cloud desktop and from a cloud desktop to a local device.
  • off: disabled. You cannot copy data between a cloud desktop and a local device.
LocalDrive String No off

The permission on local disk mapping. Valid values:

  • read: read-only. Local disks are mapped to cloud desktops. You can only read (copy) local files but cannot modify them.
  • readwrite: read and write. Local disks are mapped to cloud desktops. You can read (copy) and modify local files.
  • off: disabled. Local disks are not mapped to cloud desktops.
UsbRedirect String No off

Specifies whether to enable USB redirection. Valid values:

  • on: enables USB redirection.
  • off: disable USB redirection.
Watermark String No off

Specifies whether to enable watermarking. Valid values:

  • on: enables watermarking.
  • off: disables watermarking.
WatermarkType String No EndUserId

The type of the watermark. You can specify multiple watermark types at a time. Separate the watermark types with commas (,). Valid values:

  • EndUserId: username
  • HostName: the rightmost 15 characters of the cloud desktop ID
WatermarkTransparency String No LIGHT

The transparency of the watermark. Valid values:

  • LIGHT
  • MIDDLE
  • DARK

Response parameters

Parameter Type Example Description
RequestId String 1CBAFFAB-B697-4049-A9B1-67E1FC5FEB53

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=ModifyPolicyGroup
&PolicyGroupId=pg-gx2x1dhsmthe9****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ModifyPolicyGroupResponse>
      <RequestId>1CBAFFAB-B697-4049-A9B1-67E1FC5FEB53</RequestId>
</ModifyPolicyGroupResponse>

JSON format

{
    "RequestId":"1CBAFFAB-B697-4049-A9B1-67E1FC5FEB53"
}

Error codes

For a list of error codes, visit the API Error Center.