Queries rules for container tamper-proofing.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Criteria | string | No | The search conditions for assets. The value of this parameter is in the JSON format and contains the following fields:
| [{\"name\":\"ruleName\",\"value\":\"test-1818\",\"logicalExp\":\"AND\"}] |
LogicalExp | string | No | The logical relation for multiple search conditions. Valid values:
| OR |
PageSize | integer | No | The number of entries per page. Default value: 20. | 50 |
CurrentPage | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"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"
]
}
]
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.