Describes the system rules for web application protection.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeBaseSystemRules |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call DescribeInstance to query the ID of your WAF instance. |
waf_cdnsdf3**** |
| PageNumber |
integer |
No |
The number of the page to return. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 100. |
100 |
| RuleId |
integer |
No |
The ID of the system protection rule to query. |
113089 |
| RuleStatus |
integer |
No |
The status of the rule. Valid values:
|
1 |
| RuleAction |
string |
No |
The action of the rule. Valid values:
|
block |
| Lang |
string |
No |
The language of the response. Valid values:
|
zh |
| RegionId |
string |
No |
The region where the WAF instance is deployed. Valid values:
|
cn-hangzhou |
| DetectType |
string |
No |
The detection module. Valid values:
|
sqli |
| RiskLevel |
string |
No |
The risk level. Valid values:
|
loose |
| RuleName |
string |
No |
The name of the system protection rule. |
systemRuleTest |
| TemplateId |
integer |
No |
The ID of the protection template. Note
|
24354 |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfm***q |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The ID of the request. |
80736FA5-FA87-55F6-AA69-C5477C6FE6D0 |
| Rules |
array<object> |
The list of system protection rules. |
|
|
object |
The system protection rule. |
||
| RuleId |
integer |
The rule ID. |
113089 |
| UpdateTime |
integer |
The time when the rule was updated. |
1665460629000 |
| RuleName |
string |
The name of the protection rule. |
systemRuleTest |
| RuleStatus |
integer |
The status of the rule. Valid values:
|
1 |
| Description |
string |
The description of the rule. |
rule description |
| RuleAction |
string |
The action of the rule. Valid values:
|
block |
| CveId |
string |
The CVE ID of the vulnerability that is associated with the system rule. |
CVE-2021-34538 |
| RiskLevel |
string |
The risk level. Valid values:
|
super_strict |
| DetectType |
string |
The detection module. Valid values:
|
sqli |
| TotalCount |
integer |
The total number of entries returned. |
2 |
Examples
Success response
JSON format
{
"RequestId": "80736FA5-FA87-55F6-AA69-C5477C6FE6D0",
"Rules": [
{
"RuleId": 113089,
"UpdateTime": 1665460629000,
"RuleName": "systemRuleTest",
"RuleStatus": 1,
"Description": "rule description",
"RuleAction": "block",
"CveId": "CVE-2021-34538",
"RiskLevel": "super_strict",
"DetectType": "sqli"
}
],
"TotalCount": 2
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.