获取容器文件防御规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:GetSasContainerWebDefenseRule |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RuleId |
integer |
否 |
规则 ID。 说明
您可以调用 ListSasContainerWebDefenseRule 接口获取该参数。 |
1600009 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
BA674E4**62FB5133 |
| ContainerWebDefenseRule |
object |
容器文件防御规则详情。 |
|
| RuleStatus |
integer |
规则状态。取值说明如下:
|
1 |
| AliUid |
integer |
用户 ID。 |
1000**0002 |
| AppTotalCount |
integer |
应用总数。 |
1 |
| Id |
integer |
规则 ID。 |
100 |
| RuleName |
string |
规则名称。 |
防篡改规则 |
| GmtCreate |
integer |
创建规则的时间戳。单位:毫秒。 |
1709173360000 |
| GmtModified |
integer |
修改规则的时间戳。单位:毫秒。 |
1655432638000 |
| PathConfDTOList |
array<object> |
配置的文件路径列表。 |
|
|
object |
|||
| ExcludeFile |
string |
排除的文件。 |
file1 |
| GuardType |
integer |
防护模式 。
|
0 |
| ExcludeFilePath |
string |
排除文件路径。 |
/test2/sub1,/test2/sub2 |
| IncludeFile |
string |
包含的文件。 |
webapp |
| DefensePath |
string |
防御路径。 |
/test11* |
| ExcludeFileType |
string |
排除文件类型。 |
doc |
| DefenseMode |
string |
执行动作。
|
audit |
| BackupPath |
string |
备份路径。 |
/usr/path/ |
| IncludeFileType |
string |
包含文件的类型。 |
doc |
| ProcessPathList |
array |
白名单进程列表。 |
|
|
string |
白名单进程。 |
/bin/proc1a,/bin/proc1b |
示例
正常返回示例
JSON格式
{
"RequestId": "BA674E4**62FB5133",
"ContainerWebDefenseRule": {
"RuleStatus": 1,
"AliUid": 0,
"AppTotalCount": 1,
"Id": 100,
"RuleName": "防篡改规则",
"GmtCreate": 1709173360000,
"GmtModified": 1655432638000,
"PathConfDTOList": [
{
"ExcludeFile": "file1",
"GuardType": 0,
"ExcludeFilePath": "/test2/sub1,/test2/sub2",
"IncludeFile": "webapp",
"DefensePath": "/test11*",
"ExcludeFileType": "doc",
"DefenseMode": "audit",
"BackupPath": "/usr/path/",
"IncludeFileType": "doc",
"ProcessPathList": [
"/bin/proc1a,/bin/proc1b"
]
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。