Queries system defense rules.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
RuleName | string | No | The name of the system defense rule. | Rule\*\*\*\* |
CurrentPage | integer | Yes | The number of the page to return. | 1 |
PageSize | integer | Yes | The number of entries to return on each page. | 20 |
RuleTypes | array | No | The types of the system defense rules. | |
integer | No | The type of the system defense rule. Valid values:
| 1 | |
SystemType | integer | No | The type of the operating system. Valid values:
| 0 |
AggregationIds | array | No | The IDs of the aggregation types for rules. | |
integer | No | The ID of the aggregation type for the rule. | 38 | |
IsContainer | integer | No | Specifies whether to query only container images. Valid values:
| 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C43CA30F-EF67-51BB-8C95-F31B8303****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 17
},
"RuleList": [
{
"Status": 0,
"RuleType": 0,
"Platform": "linux",
"SwitchId": "USER-ENABLE-SWITCH-TYPE_****",
"RuleId": 0,
"RuleName": "Rule\\*\\*\\*\\*\n",
"AggregationName": "Initial entry\n",
"Description": "Supports alerting or blocking of images that have high-risk vulnerabilities\\*\\*\\*\\*\n",
"Policies": [
{
"PolicyName": "System self-starting task\\*\\*\\*\\*\n",
"PolicyKey": "system_auto_****"
}
]
}
]
}
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.