分页查询客户端规则策略列表
接口说明
按策略类型(PolicyType)分页查询客户端规则策略,详情可通过 GetClientRuleStrategyDetail 查询。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| CurrentPage |
integer |
否 |
分页查询,当前第几页,默认值为 1。 |
1 |
| PageSize |
integer |
否 |
分页查询,每页几条,默认值为 20。 |
20 |
| PolicyType |
integer |
是 |
策略类型。
|
0 |
| Name |
string |
否 |
按策略名称进行包含匹配,未传时不按名称过滤。 |
test |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求返回参数。 |
||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识 |
45B2D3AF-0E5F-5D67-944C-2AD5E354B5C9 |
| List |
array<object> |
策略列表。 |
|
|
object |
策略信息。 |
||
| Id |
integer |
策略 ID |
1938 |
| Name |
string |
策略名称。 |
test |
| Priority |
integer |
策略优先级。数字越小,优先级越高。取值:大于 0。 |
1 |
| Description |
string |
策略描述。 |
test |
| SupportsApproval |
integer |
是否支持报备审批。取值:
|
1 |
| ApprovalId |
string |
审批实例 ID。 |
approval-3f9bcedb9643b956 |
| ZhTitle |
string |
弹窗提示配置,中文标题。 |
test |
| ZhContent |
string |
弹窗提示配置,中文内容。 |
test |
| UsTitle |
string |
弹窗提示配置,英文标题。 |
test |
| UsContent |
string |
弹窗提示配置,英文内容。 |
test |
| Status |
integer |
策略状态。取值:
|
1 |
| PolicyType |
integer |
策略类型。
|
0 |
| ActionType |
integer |
策略动作。 取值:
主动防御(PolicyType=2)的自定义规则取值:
|
1 |
| AllGroup |
integer |
是否对全部用户组生效。
|
0 |
| IncludeGroupIdList |
array |
生效范围目标列表。 |
|
|
string |
一个兼容范围目标,含义由 MatchMode 决定。 |
111 |
|
| ExcludeUserNameList |
array |
不生效的用户名列表。 |
|
|
string |
一个不生效的用户名。 |
testUser |
|
| SoftWareOnList |
array |
开启完整度校验的软件主进程名列表,元素对应 GetSwitchInfoListByType 返回的 Process。 |
|
|
string |
一个软件主进程名称。 |
mshta.exe |
|
| PortOnList |
array |
开启的端口列表。 |
|
|
string |
端口号。 |
80 |
|
| InSwitch |
boolean |
网络流入开关。 |
true |
| OutSwitch |
boolean |
网络流出开关。 |
true |
| MainButtonTextCh |
string |
中文按钮配置,主要按钮。 |
test |
| MinorButtonTextCh |
string |
中文按钮配置,次要按钮。 |
test |
| MainButtonTextEn |
string |
英文按钮配置,主要按钮。 |
test |
| MinorButtonTextEn |
string |
英文按钮配置,次要按钮。 |
test |
| SelectionKey |
string |
策略配置的关联键,用于关联策略及其进程或开关配置。 |
a8d64565-ab8b-41a6-bd3d-14d0fc639285 |
| MatchMode |
string |
生效范围模式。取值:
MatchTargetIds 的含义由本字段决定。 |
UserGroupNormal |
| MatchTargetIds |
array |
生效范围目标列表。UserGroupNormal 对应用户组 ID,DeviceGroupNormal 对应设备组 ID,DevTagNormal 对应设备标签;UserGroupAll 不需要指定目标。 |
|
|
string |
一个生效范围目标,其含义由 MatchMode 决定。 |
1 |
|
| StrategySourceType |
string |
主动防御(PolicyType=2)的规则来源。
|
SYSTEM |
| CreateTime |
integer |
策略创建时间的时间戳,单位为毫秒。 |
1792627200000 |
| PageInfo |
object |
分页内容。 |
|
| CurrentPage |
integer |
分页查询时,当前页的页码。 |
1 |
| PageSize |
integer |
分页查询时,每页最多显示的数据条数。 |
10 |
| TotalCount |
integer |
查询结果的总数。 |
15 |
返回策略列表及分页信息。
示例
正常返回示例
JSON格式
{
"RequestId": "45B2D3AF-0E5F-5D67-944C-2AD5E354B5C9",
"List": [
{
"Id": 1938,
"Name": "test",
"Priority": 1,
"Description": "test",
"SupportsApproval": 1,
"ApprovalId": "approval-3f9bcedb9643b956",
"ZhTitle": "test",
"ZhContent": "test",
"UsTitle": "test",
"UsContent": "test",
"Status": 1,
"PolicyType": 0,
"ActionType": 1,
"AllGroup": 0,
"IncludeGroupIdList": [
"111"
],
"ExcludeUserNameList": [
"testUser"
],
"SoftWareOnList": [
"mshta.exe"
],
"PortOnList": [
"80"
],
"InSwitch": true,
"OutSwitch": true,
"MainButtonTextCh": "test",
"MinorButtonTextCh": "test",
"MainButtonTextEn": "test",
"MinorButtonTextEn": "test",
"SelectionKey": "a8d64565-ab8b-41a6-bd3d-14d0fc639285",
"MatchMode": "UserGroupNormal",
"MatchTargetIds": [
"1"
],
"StrategySourceType": "SYSTEM",
"CreateTime": 1792627200000
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 10,
"TotalCount": 15
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。