Creates a cloud computer policy.
Operation description
A cloud computer policy is a set of rules for performance and security. These rules configure features such as local disk mapping, USB redirection, watermarks, and DNS control. For more information, see Policy overview.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Call the DescribeRegions operation to obtain the list of regions that support WUYING Workspace. |
cn-hangzhou |
| Clipboard |
string |
No |
The clipboard permission. Valid values:
|
off |
| LocalDrive |
string |
No |
The local disk mapping permission. Valid values:
|
off |
| UsbRedirect |
string |
No |
USB redirection. Valid values:
|
off |
| VisualQuality |
string |
No |
The image display quality policy. Valid values:
|
medium |
| Html5Access |
string |
No |
The policy for access from web clients. Note
Use the Valid values:
|
off |
| Html5FileTransfer |
string |
No |
The file transfer policy for web clients. Valid values:
|
off |
| Watermark |
string |
No |
The watermark feature. Valid values:
|
off |
| Name |
string |
No |
The policy name. |
testPolicyGroupName |
| WatermarkType |
string |
No |
The type of watermark. You can specify up to three types. Separate multiple types with commas (,). Note
If you set this parameter to Valid values:
|
EndUserId |
| WatermarkTransparency |
string |
No |
The transparency of the watermark. Valid values:
|
LIGHT |
| PreemptLogin |
string |
No |
The preemption policy. Note
To ensure the user experience and data security of the end users who are using cloud computers, mutual preemption among multiple users is not allowed. This parameter is set to Valid values:
|
off |
| DomainList |
string |
No |
The policy for controlling access to domain names. You can use a wildcard character (*). Separate multiple domain names with commas (,). Valid values:
|
off |
| PrinterRedirection |
string |
No |
The printer redirection policy. Valid values:
|
on |
| PreemptLoginUser |
array |
No |
The usernames of the users that are allowed to preempt the cloud computer. You can specify up to five usernames. Note
To ensure the user experience and data security of the end users who are using cloud computers, mutual preemption among multiple users is not allowed. |
Alice |
|
string |
No |
The username of a user that can preempt the cloud computer. |
Alice |
|
| AuthorizeSecurityPolicyRule |
array<object> |
No |
The list of security group rules. |
|
|
object |
No |
A 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 of this parameter depends on the value of the `IpProtocol` parameter.
For more information about 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 indicates a higher priority. |
1 |
| CidrIp |
string |
No |
The object of the security group rule. The value is an IPv4 CIDR block. |
47.100.XX.XX/16 |
| AuthorizeAccessPolicyRule |
array<object> |
No |
The client IP address whitelist. After you configure this parameter, only IP addresses in the whitelist can access the cloud computer. |
|
|
object |
No |
The client IP address whitelist. |
||
| Description |
string |
No |
The description of the client IP address whitelist. |
华北分公司 |
| CidrIp |
string |
No |
The client IP address CIDR block. The value is an IPv4 CIDR block. |
47.100.XX.XX/16 |
| ClientType |
array<object> |
No |
The list of logon method control rules. These rules control which clients can be used to access the cloud computer. |
|
|
object |
No |
A logon method control rule. |
||
| Status |
string |
No |
Logon method control. Specifies whether to allow a specific type of client to log on to the cloud computer. Note
If you do not configure the Valid values:
|
ON |
| ClientType |
string |
No |
Logon method control. Specifies the client type. Note
If you do not configure the Valid values:
|
windows |
| GpuAcceleration |
string |
No |
Specifies whether to enable the image quality policy for graphics cloud computers. Enable this policy for scenarios that require high performance and user experience, such as professional design. Valid values:
|
off |
| UsbSupplyRedirectRule |
array<object> |
No |
The USB redirection rules. |
|
|
object |
No |
A USB redirection rule. |
||
| VendorId |
string |
No |
The vendor ID (VID). For more information, see Valid USB Vendor IDs (VIDs). |
04** |
| ProductId |
string |
No |
The product ID (PID). |
08** |
| Description |
string |
No |
The rule description. |
测试规则 |
| UsbRedirectType |
integer |
No |
The USB redirection type. Valid values:
|
1 |
| DeviceClass |
string |
No |
The device class. This parameter is required when |
0Eh |
| DeviceSubclass |
string |
No |
The device subclass. This parameter is required when |
xxh |
| UsbRuleType |
integer |
No |
The USB redirection rule type. Valid values:
|
1 |
| DomainResolveRuleType |
string |
No |
The type of the domain name resolution policy. Valid values:
|
OFF |
| DomainResolveRule |
array<object> |
No |
The details of the domain name resolution policy. |
|
|
object |
No |
A domain name resolution policy. |
||
| Domain |
string |
No |
The domain name. |
*.example.com |
| Policy |
string |
No |
The resolution policy. Valid values:
|
allow |
| Description |
string |
No |
The policy description. |
测试规则 |
| Recording |
string |
No |
Specifies whether to enable screen recording. Valid values:
|
OFF |
| RecordingStartTime |
string |
No |
The time when screen recording starts. The value is in the HH:MM:SS format. This parameter is valid only when `Recording` is set to `PERIOD`. |
08:00:00 |
| RecordingEndTime |
string |
No |
The time when screen recording ends. The value is in the HH:MM:SS format. This parameter is valid only when `Recording` is set to `PERIOD`. |
08:59:00 |
| RecordingFps |
integer |
No |
The frame rate for screen recording. Unit: frames per second (fps). Valid values:
|
2 |
| RecordingExpires |
integer |
No |
The retention period of the recording file. Valid values: 1 to 180. Unit: days. |
15 |
| CameraRedirect |
string |
No |
Specifies whether to enable local camera redirection. Valid values:
|
on |
| NetRedirect |
string |
No |
Specifies whether to enable network redirection. Note
This feature is in invitational preview and is not available to the public. Valid values:
|
off |
| AppContentProtection |
string |
No |
Specifies whether to enable the anti-screenshot feature. Valid values:
|
off |
| RecordContent |
string |
No |
Specifies whether to enable custom screen recording. Valid values:
|
OFF |
| RecordContentExpires |
integer |
No |
The expiration time of custom recording files. The default value is 30. Unit: days. |
30 |
| RemoteCoordinate |
string |
No |
The keyboard and mouse control permissions for remote assistance. Valid values:
|
fullControl |
| RecordingDuration |
integer |
No |
The duration for viewing the recording file. Unit: minutes. The recording file is automatically split based on the specified duration and uploaded to a bucket. If a file reaches 300 MB, it is rolled over first. Valid values:
|
10 |
| Scope |
string |
No |
The scope of the policy. Valid values:
|
GLOBAL |
| ScopeValue |
array |
No |
This parameter is required when |
|
|
string |
No |
The CIDR block that takes effect. |
47.100.XX.XX/24 |
|
| RecordingAudio |
string |
No |
The option to record audio from the cloud computer. Valid values:
|
on |
| InternetCommunicationProtocol |
string |
No |
The network communication protocol. Valid values:
|
both |
| VideoRedirect |
string |
No |
Multimedia redirection. Valid values:
|
on |
| WatermarkTransparencyValue |
integer |
No |
The opacity of the watermark. A larger value indicates lower transparency. Valid values: 10 to 100. |
10 |
| WatermarkColor |
integer |
No |
The font color of the watermark. Valid values: 0 to 16777215. |
0 |
| WatermarkDegree |
number |
No |
The rotation angle of the watermark. 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. Note
This parameter is not yet available. |
5 |
| EndUserApplyAdminCoordinate |
string |
No |
Specifies whether to allow end users to request assistance from administrators. Valid values:
|
ON |
| EndUserGroupCoordinate |
string |
No |
Specifies whether to enable stream collaboration between users. Valid values:
|
ON |
| WatermarkSecurity |
string |
No |
The security priority rule for invisible watermarks. Valid values:
|
on |
| AdminAccess |
string |
No |
Specifies whether a user has administrative permissions after logging on to the cloud computer. Note
This feature is in invitational preview and is not available to the public. |
deny |
| WatermarkAntiCam |
string |
No |
The anti-screen-recording feature for invisible watermarks. Valid values:
|
off |
| WatermarkPower |
string |
No |
The enhanced feature for invisible watermarks. Valid values:
|
medium |
| RecordingUserNotify |
string |
No |
The feature that sends notifications to the client when screen recording is in progress. Valid values:
|
off |
| RecordingUserNotifyMessage |
string |
No |
The content of the notification that is sent to the client when screen recording is in progress. You do not need to specify this parameter. |
您的云电脑正在被录屏 |
| MaxReconnectTime |
integer |
No |
The maximum amount of time to retry the connection if the cloud computer is disconnected due to an unexpected event. Valid values: 30 to 7200. Unit: seconds. |
120 |
| DeviceRedirects |
array<object> |
No |
The list of device redirection rules. |
|
|
object |
No |
A device redirection rule. |
||
| DeviceType |
string |
No |
The peripheral type. Valid values:
|
camera |
| RedirectType |
string |
No |
The redirection type. Valid values:
|
deviceRedirect |
| DeviceRules |
array<object> |
No |
The list of custom peripheral rules. |
|
|
object |
No |
A custom peripheral rule. |
||
| DeviceType |
string |
No |
The peripheral type. Valid values:
|
storage |
| DeviceName |
string |
No |
The device name. |
sandisk |
| DeviceVid |
string |
No |
The vendor ID (VID). For more information, see Valid USB Vendor IDs (VIDs). |
0x0781 |
| DevicePid |
string |
No |
The product ID (PID). |
0x55b1 |
| RedirectType |
string |
No |
The redirection type. Valid values:
|
usbRedirect |
| OptCommand |
string |
No |
The link optimization instruction. |
2:0 |
| Platforms |
string |
No |
||
| WyAssistant |
string |
No |
When you connect to a cloud computer from a desktop client (including a Windows client and a macOS client), specifies whether to display the entry for the WUYING AI assistant in the floating ball on the cloud computer. Note
This feature is available only for desktop clients of V7.7 or later. Valid values:
|
on |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| PolicyGroupId |
string |
The ID of the cloud computer policy. |
pg-gx2x1dhsmthe9**** |
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"PolicyGroupId": "pg-gx2x1dhsmthe9****",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.