列表查询容器文件防御规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:ListSasContainerWebDefenseRule |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Criteria |
string |
否 |
设置搜索资产的条件。该参数 JSON 格式,包含以下字段:
|
[{\"name\":\"ruleName\",\"value\":\"test-1818\",\"logicalExp\":\"AND\"}] |
| LogicalExp |
string |
否 |
设置多个搜索条件间生效的逻辑关系。取值:
|
OR |
| PageSize |
integer |
否 |
设置分页查询时,每页显示的资产的数量。默认值为 20,表示每页显示 20 条资产信息。 |
50 |
| CurrentPage |
integer |
否 |
分页查询时,显示的当前页的页码。起始值为 1,默认值为 1。 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求的 ID。用于定位日志,排查问题。 |
8C376***AE74FB4 |
| PageInfo |
object |
查询结果的分页信息。 |
|
| CurrentPage |
integer |
分页查询时,当前页的页码。 |
1 |
| PageSize |
integer |
分页查询时,每页最多显示的数据条数。 |
20 |
| TotalCount |
integer |
查询到的数据总条数。 |
42 |
| Count |
integer |
分页查询时,当前页显示的数据条数。 |
4 |
| ContainerWebDefenseRuleList |
array<object> |
容器文件防御规则列表。 |
|
|
array<object> |
容器文件防御规则。 |
||
| RuleStatus |
integer |
规则状态。取值说明如下:
|
1 |
| AliUid |
integer |
用户 ID。 |
1766185894104675 |
| ApptotalCount |
integer |
配置的应用数量。 |
10 |
| Id |
integer |
规则 ID。 |
420336648 |
| RuleName |
string |
规则名称。 |
test2 |
| GmtCreate |
integer |
创建时间。单位:毫秒。 |
1698978109000 |
| GmtModified |
integer |
告警事件最后修改的时间戳。单位:毫秒。 |
1678852686000 |
| PathConfDTOList |
array<object> |
规则防御路径列表。 |
|
|
object |
规则防御路径。 |
||
| ExcludeFile |
string |
排除的文件。 |
php |
| GuardType |
integer |
防护模式 。
|
0 |
| ExcludeFilePath |
string |
排除文件路径。 |
/usr/tt |
| IncludeFile |
string |
包含的文件。 |
/usr/test |
| IncludeFileType |
string |
包含文件的类型 |
php |
| DefensePath |
string |
防御路径。 |
/usr/test/ |
| ExcludeFileType |
string |
排除文件类型。 |
jsp |
| DefenseMode |
string |
执行动作。
|
audit |
| BackupPath |
string |
备份路径。 |
/tmp/test |
| ProcessPathList |
array |
白名单进程列表。 |
|
|
string |
白名单进程。 |
/usr/bin/mv |
示例
正常返回示例
JSON格式
{
"RequestId": "8C376***AE74FB4",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 42,
"Count": 4
},
"ContainerWebDefenseRuleList": [
{
"RuleStatus": 1,
"AliUid": 1766185894104675,
"ApptotalCount": 10,
"Id": 420336648,
"RuleName": "test2",
"GmtCreate": 1698978109000,
"GmtModified": 1678852686000,
"PathConfDTOList": [
{
"ExcludeFile": "php",
"GuardType": 0,
"ExcludeFilePath": "/usr/tt",
"IncludeFile": "/usr/test",
"IncludeFileType": "php",
"DefensePath": "/usr/test/",
"ExcludeFileType": "jsp",
"DefenseMode": "audit",
"BackupPath": "/tmp/test",
"ProcessPathList": [
"/usr/bin/mv"
]
}
]
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。