Modifies a center policy.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| ecd:ModifyCenterPolicy | update | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID. Set the value to | cn-shanghai |
| PolicyGroupId | string | Yes | The cloud computer policy ID. | pg-53iyi2aar0nd6**** |
| BusinessType | integer | Yes | The business type. Valid values:
| 1 |
| ResourceType | string | Yes | The resource type. Valid values:
| desktop |
| Clipboard | string | No | The read/write permissions on the clipboard. Valid values:
| off |
| LocalDrive | string | No | The read/write permissions on the on-premises drive. Valid values:
| off |
| UsbRedirect | string | No | Specifies whether to enable the USB redirection feature. Valid values:
| off |
| PrinterRedirect | string | No | The printer redirection policy. This parameter only applies if DeviceRedirects does not include a printer redirection policy. Valid values:
| off |
| VisualQuality | string | No | The image display quality. Valid values:
| low |
| GpuAcceleration | string | No | Specifies whether to enable Image Quality Control. This feature is highly recommended for professional design scenarios where performance and user experience are critical. Valid values:
| off |
| Html5FileTransfer | string | No | The file transfer policy on the web client. Valid values:
| off |
| Watermark | string | No | The watermark policy. Valid values:
| off |
| Name | string | No | The policy name. | testPolicyGroupName |
| WatermarkType | string | No | The watermark type. You can specify up to three types. Separate multiple values with commas (,). Note
If you provide custom as the value for this parameter, you must configure WatermarkCustomText to specify custom text.
Valid values:
| EndUserId |
| WatermarkCustomText | string | No | If you set | test |
| WatermarkTransparencyValue | integer | No | The watermark opacity. A higher value makes the watermark more opaque. Valid values: 10 to 100. | 10 |
| WatermarkSecurity | string | No | Specifies whether to enable security priority for invisible watermarks. Valid values:
| off |
| CameraRedirect | string | No | The on-premises camera redirection policy. This parameter only applies if DeviceRedirects does not include an on-premises camera redirection policy. Valid values:
| on |
| NetRedirect | string | No | The network redirection policy. Note
This parameter is in private preview and only available to specific users.
Valid values:
| on |
| AppContentProtection | string | No | The anti-screenshot policy. Valid values:
| on |
| RemoteCoordinate | string | No | The keyboard and mouse control permissions during remote assistance. Valid values:
| fullControl |
| InternetCommunicationProtocol | string | No | The network communication protocol. Valid values:
| both |
| VideoRedirect | string | No | The multimedia redirection policy. Valid values:
| on |
| WatermarkColor | integer | No | The font color of the watermark. Valid values: 0 to 16777215. | 0 |
| WatermarkDegree | double | No | The watermark rotation. Valid values: -10 to -30. | -10 |
| WatermarkFontSize | integer | No | The font size of the watermark. Valid values: 10 to 20. | 10 |
| WatermarkFontStyle | string | No | The font style of the watermark. Valid values:
| plain |
| WatermarkRowAmount | integer | No | The number of watermark rows. Valid values: 3 to 10. | 5 |
| CpuProtectedMode | string | No | The CPU spike protection policy. Valid values:
| off |
| CpuRateLimit | integer | No | The overall CPU usage. Valid values: 70 to 90. Unit: percentage (%). | 70 |
| CpuSampleDuration | integer | No | The overall CPU sampling duration. Valid values: 10 to 60. Unit: seconds. | 30 |
| CpuSingleRateLimit | integer | No | The single-CPU usage. Valid values: 70 to 100. Unit: %. | 80 |
| CpuDownGradeDuration | integer | No | The CPU underclocking duration. Valid values: 30 to 120. Unit: seconds. | 50 |
| MemoryProtectedMode | string | No | The memory spike protection policy. Valid values:
| off |
| MemoryRateLimit | integer | No | The overall memory usage. Valid values: 70 to 90. Unit: %. | 70 |
| MemorySampleDuration | integer | No | The overall memory sampling duration. Valid values: 30 to 60. Unit: seconds. | 40 |
| MemorySingleRateLimit | integer | No | The memory usage per process. Valid values: 30 to 60. Unit: %. | 40 |
| MemoryDownGradeDuration | integer | No | The memory underclocking duration per process. Valid values: 30 to 120. Unit: seconds. | 40 |
| EndUserApplyAdminCoordinate | string | No | Specifies whether to enable end users to request administrator help. Valid values:
| off |
| EndUserGroupCoordinate | string | No | Specifies whether to allow end users from the same office network to share cloud computers. Valid values:
| off |
| Scope | string | No | The effective scope of the policy. Valid values:
| GLOBAL |
| Recording | string | No | The screen recording policy. Valid values:
| off |
| RecordingAudio | string | No | Specifies whether to record audio files generated by cloud computers. Valid values:
| on |
| RecordingStartTime | string | No | The screen recording's start time in HH:MM:SS format. The value is meaningful only if | 08:00:00 |
| RecordingEndTime | string | No | The screen recording's end time in HH:MM:SS format. The value is meaningful only if | 08:59:00 |
| RecordingFps | string | No | The frame rate of screen recording. Unit: fps. | 5 |
| RecordingDuration | integer | No | The length of the screen recording file (in minutes). Screen recordings are split based on the specified duration and uploaded to Object Storage Service (OSS) buckets. If a file reaches 300 MB, the system prioritizes rolling updates for that file. Valid values: 10 to 60. | 10 |
| RecordingExpires | integer | No | The retention period of the screen recording file. Valid values: 1 to 180. Unit: days. | 15 |
| RecordingUserNotify | string | No | Specifies whether to notify end users when screen recording is enabled. Valid values:
| off |
| RecordingUserNotifyMessage | string | No | The notification sent to end users when screen recording is enabled. | |
| AdminAccess | string | No | Specifies whether to grant the admin permissions to end users. Note
This parameter is in private preview and only available to specific users.
Valid values:
| deny |
| EnableSessionRateLimiting | string | No | Specifies whether to enforce a bandwidth limit for sessions. Valid values:
| off |
| SessionMaxRateKbps | integer | No | The bandwidth peak allowed for sessions. Unit: Kbit/s. Valid values: 2000 to 100000. | 2000 |
| DisplayMode | string | No | The display mode. Valid values:
| clientCustom |
| StreamingMode | string | No | The streaming mode. Valid values:
| smooth |
| ColorEnhancement | string | No | Specifies whether to enable color enhancement for design and 3D applications. Valid values:
| off |
| SmoothEnhancement | string | No | Specifies whether to enable smoothness enhancement for daily office use. Valid values:
| off |
| QualityEnhancement | string | No | Specifies whether to enable image quality enhancement for design and 3D applications. Valid values:
| off |
| VideoEncPolicy | string | No | The video encoding policy. Valid values:
| qualityFirst |
| TargetFps | integer | No | The target frame rate. Valid values: 10 to 60. | 30 |
| VideoEncMinQP | integer | No | The minimum quantizer parameter (QP) for video files. A lower QP means better video quality. Valid values: 0 to 51. | 30 |
| VideoEncMaxQP | integer | No | The maximum QP for video files. Higher QP values result in lower video quality. Valid values: 0 to 51. | 30 |
| VideoEncAvgKbps | integer | No | The average bitrate for video encoding. Unit: Kbit/s. Valid values: 1000 to 50000. | 2000 |
| VideoEncPeakKbps | integer | No | The peak bitrate allowed for video encoding. Unit: Kbit/s. Valid values: 1000 to 50000. | 2000 |
| MaxReconnectTime | integer | No | The maximum duration to retry reconnecting to cloud computers after an unexpected disconnection (non-human causes). Valid values: 30 to 7200. Unit: seconds. | 120 |
| WyAssistant | string | No | Specifies whether to display the Xiaoying AI Assistant option in the DesktopAssistant menu when end users connect to cloud computers via desktop clients (Windows and macOS). Note
This feature applies to only desktop clients of version 7.7.0 or later.
Valid values:
| on |
| WatermarkAntiCam | string | No | Specifies whether to enable anti-screen capture for invisible watermarks. Valid values:
| off |
| WatermarkPower | string | No | The enhancement level for invisible watermarks. Valid values:
| medium |
| CpuProcessors | array | No | The CPU processors. | |
| string | No | The CPU processor. | chrome.exe | |
| MemoryProcessors | array | No | The memory processors. | |
| string | No | The memory processor. | notepad.exe | |
| DomainResolveRule | array<object> | No | The domain resolution policies. | |
| object | No | The domain resolution policy. | ||
| Domain | string | No | The domain name. | *.example.com |
| Policy | string | No | Specifies whether to allow the domain name resolution rule. Valid values:
| allow |
| Description | string | No | The policy description. | |
| NetRedirectRule | array<object> | No | The network redirection rules. Note
This parameter is in private preview and only available to specific users.
| |
| object | No | The network redirection rule. Note
This parameter is in invitational preview and not available to the public.
| ||
| Domain | string | No | The domain name. | *.taobao.com |
| RuleType | string | No | The rule type. Valid values:
| domain |
| Policy | string | No | The redirection policy. | Allow |
| ScopeValue | array | No | The effective scopes. This parameter is required when | |
| string | No | The effective scope specified by a CIDR block. | 47.100.XX.XX/24 | |
| ClientType | array<object> | No | The types of Alibaba Cloud Workspace clients that end users can use to connect to cloud computers. | |
| object | No | The type of the Alibaba Cloud Workspace client that end users can use to connect to cloud computers. | ||
| Status | string | No | Specifies whether end users can use the specified type of Alibaba Cloud Workspace client to connect to cloud computers. Note
If you don't specify ClientType, any client can be used to connect to cloud computers.
Valid values:
| off |
| ClientType | string | No | The type of the Alibaba Cloud Workspace client that end users can use to connect to cloud computers. Valid values:
| android |
| UsbSupplyRedirectRule | array<object> | No | The USB redirection rules. | |
| object | No | The USB redirection rule. | ||
| VendorId | string | No | The vendor ID (VID). For more information, see Valid USB Vendor IDs (VIDs). | 04** |
| UsbRuleType | string | No | The type of the USB redirection rule. Valid values:
| 1 |
| Description | string | No | The rule description. | |
| UsbRedirectType | string | No | Specifies whether to allow USB redirection. Valid values:
| 1 |
| ProductId | string | No | The product ID (PID). | 08** |
| AuthorizeSecurityPolicyRule | array<object> | No | The security group rules. | |
| object | No | The security group rule. | ||
| Type | string | No | The direction of the security group rule. Valid values:
| inflow |
| Policy | string | No | The authorization policy of the security group rule. Valid values:
| accept |
| PortRange | string | No | The port range of the security group rule. The value range of this parameter varies based on the value of IpProtocol.
For more information about the common ports, see Common ports. | 22/22 |
| Description | string | No | The description of the security group rule. | test |
| IpProtocol | string | No | The protocol type of the security group rule. Valid values:
| TCP |
| Priority | string | No | The priority of the security group rule. A smaller value specifies a higher priority. Valid values: 1 to 60. Default value: 1. | 1 |
| CidrIp | string | No | The object of the security group rule. Specify an IPv4 CIDR block. | 47.100.XX.XX/16 |
| RevokeSecurityPolicyRule | array<object> | No | The security group rules that you want to delete. | |
| object | No | The security group rule that you want to delete. | ||
| Type | string | No | The direction of the security group rule that you want to delete. Valid values:
| outflow |
| Policy | string | No | The authorization of the security group rule that you want to delete. Valid values:
| accept |
| PortRange | string | No | The port range of the security group rule that you want to delete. The value range of this parameter varies based on the value of IpProtocol.
For more information about the common ports, see Common ports. | 22/22 |
| Description | string | No | The description of the security group rule that you want to delete. | test |
| IpProtocol | string | No | The protocol type of the security group rule that you want to delete. Valid values:
| TCP |
| Priority | string | No | The priority of the security group rule that you want to delete. A smaller value specifies a higher priority. Valid values: 1 to 60. Default value: 1. | 1 |
| CidrIp | string | No | The object of the security group rule that you want to delete. Specify an IPv4 CIDR block. | 47.100.XX.XX/16 |
| AuthorizeAccessPolicyRule | array<object> | No | The client IP address whitelists that you want to add. | |
| object | No | The client IP address whitelist that you want to add. | ||
| Description | string | No | The description of the client IP address whitelist. | test |
| CidrIp | string | No | The client CIDR block from which end users can connect to cloud computers. Specify an IPv4 CIDR block. | 47.100.XX.XX/16 |
| RevokeAccessPolicyRule | array<object> | No | The client IP address whitelists that you want to delete. | |
| object | No | The client IP address whitelist that you want to delete. | ||
| Description | string | No | The description of the client IP address whitelist that you want to delete. | test |
| CidrIp | string | No | The client CIDR block that you want to delete. Specify an IPv4 CIDR block. | 47.100.XX.XX/16 |
| DeviceRedirects | array<object> | No | The device redirection rules. | |
| object | No | The device redirection rule. | ||
| RedirectType | string | No | The redirection type. Valid values:
| deviceRedirect |
| DeviceType | string | No | The peripheral type. Valid values:
| camera |
| DeviceRules | array<object> | No | The custom peripheral rules. | |
| object | No | The custom peripheral rule. | ||
| DeviceName | string | No | The device name. | sandisk |
| RedirectType | string | No | The redirection type. Valid values:
| usbRedirect |
| DeviceType | string | No | The peripheral type. Valid values:
Enumeration Value:
| storage |
| OptCommand | string | No | The link optimization command. | 2:0 |
| DevicePid | string | No | The product ID (PID). | 0x55b1 |
| DeviceVid | string | No | The vendor ID (VID). For more information, see Valid USB VIDs. | 0x0781 |
| WatermarkColumnAmount | integer | No | The number of watermark columns. Valid values: 3 to 10. | 3 |
| DomainResolveRuleType | string | No | Specifies whether to enforce the domain resolution policy. Valid values:
| off |
| StatusMonitor | string | No | Specifies whether to display the metric status entry in the DesktopAssistant menu. Valid values:
| off |
| MobileRestart | string | No | Specifies whether to display the Restart button in the DesktopAssistant menu when end users connect to cloud computers from Android clients. Note
This feature applies to only mobile clients of version 7.4.0 or later.
Valid values:
| off |
| MobileShutdown | string | No | Specifies whether to display the Stop button in the DesktopAssistant menu when end users connect to cloud computers from Android clients. Note
This feature applies to only mobile clients of version 7.4.0 or later.
Valid values:
| off |
| ResolutionModel | string | No | The resolution type. Valid values:
| adaptive |
| ResolutionWidth | integer | No | The width of the resolution. Unit: pixel. Valid values for cloud applications: 500 to 50000. Valid values for cloud computers: 480 to 4096. | 720 |
| ResolutionHeight | integer | No | The height of the resolution. Unit: pixel. Valid values for cloud applications: 500 to 50000. Valid values for cloud computers: 480 to 4096. | 1280 |
| Taskbar | string | No | Specifies whether to display the application taskbar. Note
This parameter applies only to cloud application policies.
Valid values:
| off |
| NoOperationDisconnect | string | No | Specifies whether to enforce a disconnection upon inactivity. Note
This parameter applies only to cloud application policies.
Valid values:
| off |
| NoOperationDisconnectTime | integer | No | The duration of disconnection after inactivity. Valid values: 120 to 7200. Unit: seconds. Note
This parameter applies only to cloud application policies.
| 120 |
| DisconnectKeepSession | string | No | Specifies whether to retain the session upon disconnection. Note
This parameter applies only to cloud application policies.
Valid values:
| customTime |
| DisconnectKeepSessionTime | integer | No | The retention period of the session after disconnection. Valid values: 30 to 7200. Unit: seconds. Note
This parameter applies only to cloud application policies.
| 120 |
| RecordEvents | array | No | The events that trigger screen recording. | |
| string | No | The event that triggers screen recording. Valid values:
| transferWithLocal | |
| RecordEventFilePaths | array | No | The absolute paths to screen recording files. | |
| string | No | The absolute path to the screen recording file. | C://test.txt | |
| RecordEventRegisters | array | No | The absolute paths to screen recording registries. | |
| string | No | The absolute path to the screen recording registry. | ||
| RecordEventDuration | integer | No | The duration of screen recording after the specified event is detected. Unit: minutes. Valid values: 10 to 60. | 10 |
| ResetDesktop | string | No | The computer reset setting. Valid values:
| off |
| DeviceConnectHint | string | No | Specifies whether to display the peripheral connection prompt. Valid values:
| off |
| FileMigrate | string | No | Specifies whether to enable file transfer. Valid values:
| off |
| WuyingKeeper | string | No | Specifies whether to enable Cloud Computer Manager. Valid values:
| off |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "5CED7F18-43B1-5035-BBB6-2538B***"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-10-27 | The request parameters of the API has changed | View Change Details |
