All Products
Search
Document Center

Edge Security Acceleration:WafRuleConfig

Last Updated:Jan 14, 2026
ParameterTypeDescriptionExample
object

The WAF rule configurations.

Statusstring

The status of the WAF rule.

on
Actionstring

The operation to perform after the WAF rule is matched.

deny
Actionsobject

The extended action configurations.

Responseobject

The custom error page.

Idlong

The ID of the custom error page, which can be obtained by calling the ListPages operation.

50000001
Codeinteger

The custom response code.

403
Bypassobject

The skip configuration specified by the whitelist rule.

Skipstring

The skip scope applied when requests match conditions defined in the whitelist rule.

part
RegularRulesarray

The IDs of managed rules.

long

The ID of the managed rule.

100001
CustomRulesarray

The IDs of custom rules.

long

The ID of the custom rule.

20000001
RegularTypesarray

The types of managed rules.

string

The type of the managed rule.

sqli
Tagsarray

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
ManagedListstring

The managed list.

intelligence_crawler
ManagedRulesetsarray<object>

The managed rulesets.

object

The managed ruleset.

ProtectionLevelinteger

The protection level.

4
Actionstring

The action.

deny
ManagedRulesarray<object>

The managed rules.

object

The managed rule.

Statusstring

The status of the managed rule.

on
Actionstring

The action performed on requests that match the managed rule.

deny
Idlong

The ID of the managed rule.

100001
AttackTypeinteger

The attack type.

11
NumberTotalinteger

The total number of rules.

100
NumberEnabledinteger

The number of enabled rules.

50
Sigchlarray

The token verification configurations.

string

The token verification configuration item.

sig
Namestring

The name of the WAF rule.

example
AppSdkobject

The SDK configuration for apps.

CustomSignobject

The custom signature field.

Valuestring

The field value.

examplesignvalue
Keystring

The field name.

sign
CustomSignStatusstring

Indicates whether to configure the custom signature field.

on
FeatureAbnormalarray

The app anomalies.

string

The app anomaly.

wxbb_invalid_sign
RateLimitobject

The configuration of the rate limiting rule.

CharacteristicsWafRuleMatch2

The statistical objects to which the rule applies.

OnHitboolean

Indicates whether to apply the rule to requests that hit the cache.

true
TTLinteger

The timeout period for creating the stack.

10
Thresholdobject

The thresholds.

ManagedRulesBlockedinteger

The maximum number of times that the managed rule is triggered.

10
DistinctManagedRulesinteger

The maximum number of managed rules that are triggered.

10
ResponseStatusobject

The configuration of the status code threshold.

Ratiointeger

The percentage of the occurrences of the status code to total status codes.

10
Countinteger

The maximum number of times that the status code is returned.

10
Codeinteger

The HTTP status code.

404
Trafficstring

The traffic threshold, which is deprecated.

10Gb
Requestinteger

The request threshold.

10
Intervalinteger

The statistical interval.

10
Typestring

The name of the WAF rule.

http_custom
AppPackageobject

The configuration of secondary package detection.

PackageSignsarray<object>

The package signatures.

object

The package signature information.

Signstring

The valid package signature.

sign
Namestring

The valid package name.

name
ManagedGroupIdlong

The ID of the managed rule group, which is deprecated.

30000001
TimerWafTimer

The timer.

Expressionstring

The match expression.

ip.src eq 1.1.1.1
SecurityLevelobject

The security level.

Valuestring

Valid value:

  • off
  • essentially_off
  • low
  • medium
  • high
  • under_attack
low
Valuestring

Defines whether the IP can access.

10.0.0.1
Idlong

The ID of the WAF rule.

20000001
Notesstring

The remarks.

example notes