Creates a policy that applies unified settings to cloud phones. These settings include features such as network redirection, watermarks, resolution, and the clipboard.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Html5FileTransfer |
string |
No |
The file transfer policy for the web client. Valid values:
|
off |
| LocalDrive |
string |
No |
The local disk mapping permission. Valid values:
|
off |
| PolicyGroupName |
string |
No |
The policy name. |
默认策略 |
| CameraRedirect |
string |
No |
Specifies whether to enable local camera redirection. Valid values:
|
off |
| Clipboard |
string |
No |
The clipboard permission. Valid values:
|
readwrite |
| ResolutionHeight |
integer |
No |
The resolution height, in pixels. |
1280 |
| ResolutionWidth |
integer |
No |
The resolution width, in pixels. |
720 |
| LockResolution |
string |
No |
Specifies whether to lock the resolution. Valid values:
|
off |
| NetRedirectPolicy |
object |
No |
Network redirection. |
|
| NetRedirect |
string |
No |
Specifies whether to enable network redirection. Valid values:
|
off |
| CustomProxy |
string |
No |
Specifies whether to manually configure a transparent proxy. Valid values:
|
off |
| ProxyType |
string |
No |
The proxy protocol type. Valid values:
|
socks5 |
| HostAddr |
string |
No |
The IP address of the transparent proxy. The IP address must be in IPv4 format. |
47.100.XX.XX |
| Port |
string |
No |
The port of the transparent proxy. Valid values: 1 to 65535. |
1145 |
| ProxyUserName |
string |
No |
The proxy username. The username must be 1 to 256 characters in length. It cannot contain Chinese characters or whitespace characters. |
username |
| ProxyPassword |
string |
No |
The proxy password. The password must be 1 to 256 characters in length. It cannot contain Chinese characters or whitespace characters. |
password |
| Rules |
array |
No |
The list of proxy rules. You can specify up to 100 rules. |
|
|
object |
No |
A proxy rule. |
||
| Target |
string |
No |
The application package name or domain name. |
*.baidu.com |
| RuleType |
string |
No |
The rule type. Valid values:
|
domain |
| PolicyType |
string |
No |
The policy type. |
Instance |
| Watermark |
object |
No |
Screen watermark. |
|
| WatermarkSwitch |
string |
No |
Specifies whether to enable the screen watermark. Valid values:
|
off |
| WatermarkTypes |
array |
No |
The screen watermark content. |
|
|
string |
No |
The screen watermark content. Valid values:
|
Username |
|
| WatermarkCustomText |
string |
No |
The custom text for the watermark. The text can be up to 10 characters long and cannot contain emojis. |
custom text |
| WatermarkFontSize |
integer |
No |
The font size of the watermark. Valid values: 10 to 20. |
12 |
| WatermarkColor |
integer |
No |
The font color of the watermark. Valid values: 0 to 16777215. |
0 |
| WatermarkTransparencyValue |
integer |
No |
The opacity of the watermark. A larger value indicates lower transparency. Valid values: 10 to 100. |
25 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC****** |
| PolicyGroupId |
string |
The policy ID. |
pg-exbuu6yrpvb****** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC******",
"PolicyGroupId": "pg-exbuu6yrpvb******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.