修改容器文件防御规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| RuleId | long | 是 | 规则 ID。 | 200634 |
| RuleName | string | 否 | 规则名称。 | wwwwwww |
| PathConfDTOList | array<object> | 否 | 规则防御路径列表。 | |
| object | 否 | 规则防御路径列表。 | ||
| DefensePath | string | 是 | 防御路径。 | /test/home/ |
| BackupPath | string | 否 | 备份路径。 | /tmp/test |
| ExcludeFilePath | string | 否 | 排除文件路径。 | /test/home/qq |
| ExcludeFileType | string | 否 | 排除文件类型。 | php |
| ExcludeFile | string | 否 | 排除的文件。 | /usr/test |
| GuardType | integer | 是 | 防护模式 。
| 0 |
| IncludeFileType | string | 否 | 包含文件的类型。 | jsp |
| IncludeFile | string | 否 | 包含的文件。 | /home/admin/test |
| DefenseMode | string | 是 | 执行动作。
| audit |
| ProcessPathList | array | 否 | 白名单进程列表。 | |
| string | 否 | 白名单进程列表。 | /bin/bash | |
| PathConfId | long | 否 | 路径 ID。 | 12345678 |
返回参数
示例
正常返回示例
JSON格式
{
"RequestId": "A447E4E3-42A3-58B7-A7D4-2287745BEFDC"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 403 | NoPermission | caller has no permission | 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。 |
| 500 | ServerError | ServerError | 服务故障,请稍后重试! |
访问错误中心查看更多错误码。
