|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The WAF rule configurations. |
||
| Status |
string |
The status of the WAF rule. |
on |
| Action |
string |
The operation to perform after the WAF rule is matched. |
deny |
| Actions |
object |
The extended action configurations. |
|
| Response |
object |
The custom error page. |
|
| Id |
integer |
The ID of the custom error page, which can be obtained by calling the ListPages operation. |
50000001 |
| Code |
integer |
The custom response code. |
403 |
| Bypass |
object |
The skip configuration specified by the whitelist rule. |
|
| Skip |
string |
The skip scope applied when requests match conditions defined in the whitelist rule. |
part |
| RegularRules |
array |
The IDs of managed rules. |
|
|
integer |
The ID of the managed rule. |
100001 |
|
| CustomRules |
array |
The IDs of custom rules. |
|
|
integer |
The ID of the custom rule. |
20000001 |
|
| RegularTypes |
array |
The types of managed rules. |
|
|
string |
The type of the managed rule. |
sqli |
|
| Tags |
array |
The skipped rule categories when requests match conditions defined in the whitelist rule. |
|
|
string |
The skipped rule category when requests match conditions defined in the whitelist rule. |
http_custom |
|
| ManagedList |
string |
The managed list. |
intelligence_crawler |
| ManagedRulesets |
array |
The managed rulesets. |
|
|
object |
The managed ruleset. |
||
| ProtectionLevel |
integer |
The protection level. |
4 |
| Action |
string |
The action. |
deny |
| ManagedRules |
array |
The managed rules. |
|
|
object |
The managed rule. |
||
| Status |
string |
The status of the managed rule. |
on |
| Action |
string |
The action performed on requests that match the managed rule. |
deny |
| Id |
integer |
The ID of the managed rule. |
100001 |
| AttackType |
integer |
The attack type. |
11 |
| NumberTotal |
integer |
The total number of rules. |
100 |
| NumberEnabled |
integer |
The number of enabled rules. |
50 |
| Sigchl |
array |
The token verification configurations. |
|
|
string |
The token verification configuration item. |
sig |
|
| Name |
string |
The name of the WAF rule. |
example |
| AppSdk |
object |
The SDK configuration for apps. |
|
| CustomSign |
object |
The custom signature field. |
|
| Value |
string |
The field value. |
examplesignvalue |
| Key |
string |
The field name. |
sign |
| CustomSignStatus |
string |
Indicates whether to configure the custom signature field. |
on |
| FeatureAbnormal |
array |
The app anomalies. |
|
|
string |
The app anomaly. |
wxbb_invalid_sign |
|
| RateLimit |
object |
The configuration of the rate limiting rule. |
|
| Characteristics | WafRuleMatch2 |
The statistical objects to which the rule applies. |
|
| OnHit |
boolean |
Indicates whether to apply the rule to requests that hit the cache. |
true |
| TTL |
integer |
The timeout period for creating the stack. |
10 |
| Threshold |
object |
The thresholds. |
|
| ManagedRulesBlocked |
integer |
The maximum number of times that the managed rule is triggered. |
10 |
| DistinctManagedRules |
integer |
The maximum number of managed rules that are triggered. |
10 |
| ResponseStatus |
object |
The configuration of the status code threshold. |
|
| Ratio |
integer |
The percentage of the occurrences of the status code to total status codes. |
10 |
| Count |
integer |
The maximum number of times that the status code is returned. |
10 |
| Code |
integer |
The HTTP status code. |
404 |
| Traffic |
string |
The traffic threshold, which is deprecated. |
10Gb |
| Request |
integer |
The request threshold. |
10 |
| Interval |
integer |
The statistical interval. |
10 |
| Type |
string |
The name of the WAF rule. |
http_custom |
| AppPackage |
object |
The configuration of secondary package detection. |
|
| PackageSigns |
array |
The package signatures. |
|
|
object |
The package signature information. |
||
| Sign |
string |
The valid package signature. |
sign |
| Name |
string |
The valid package name. |
name |
| ManagedGroupId |
integer |
The ID of the managed rule group, which is deprecated. |
30000001 |
| Timer | WafTimer |
The timer. |
|
| Expression |
string |
The match expression. |
ip.src eq 1.1.1.1 |
| SecurityLevel |
object |
The security level. |
|
| Value |
string |
Valid value:
|
low |
| Value |
string |
Defines whether the IP can access. |
10.0.0.1 |
| Id |
integer |
The ID of the WAF rule. |
20000001 |
| Notes |
string |
The remarks. |
example notes |