获取集群策略
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeClusterPolicy |
系统规定参数。取值:DescribeClusterPolicy |
ClusterId | String | 是 | gws-xxx |
集群 id |
TaskId | String | 否 | t-xxx |
说明 此值只在
AsyncMode 为 true 时有效
非空时用来获得之前查询命令的执行状态。 |
AsyncMode | Boolean | 否 | true |
异步模式调用:
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Audio | String | on |
音频:
|
Clipboard | String | readwrite |
本地剪贴板在云桌面中:
|
DomainList | String | *.abc.com,*.xyz.com |
域名白名单
|
LocalDrive | String | readwrite |
本地磁盘在云桌面中的映射驱动器:
|
RequestId | String | XXX-XXX |
Request Id |
TaskFinished | Boolean | true |
说明 此值只在
AsyncMode 为 true 时有效
当前查询命令的运行状态
|
TaskId | String | t-xxx |
说明 此值只在
AsyncMode 为 true 时有效
当前查询命令的任务 id。 |
UdpPort | String | on |
UDP 端口:
|
UsbRedirect | String | off |
USB 重定向:
|
Watermark | String | off |
水印:
|
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeClusterPolicy
&ClusterId=gws-xxx
&<公共请求参数>
正常返回示例
XML
格式
<TaskId>t-xxx</TaskId>
<UdpPort>on</UdpPort>
<RequestId>XXX-XXX</RequestId>
<LocalDrive>readwrite</LocalDrive>
<UsbRedirect>off</UsbRedirect>
<TaskFinished>true</TaskFinished>
<DomainList>*.abc.com,*.xyz.com</DomainList>
<Clipboard>readwrite</Clipboard>
<Audio>on</Audio>
<Watermark>off</Watermark>
JSON
格式
{
"TaskId": "t-xxx",
"UdpPort": "on",
"RequestId": "XXX-XXX",
"LocalDrive": "readwrite",
"UsbRedirect": "off",
"TaskFinished": true,
"DomainList": "*.abc.com,*.xyz.com",
"Clipboard": "readwrite",
"Audio": "on",
"Watermark": "off"
}
错误码
访问错误中心查看更多错误码。