Rule

Rules used when configuring WAF.

Data model

messageStringMessage metadata for the rule.
rule_idStringCorresponding ModSecurity rule ID.
severityIntegerSeverity metadata for the rule.
sourceStringThe ModSecurity rule logic.
vclStringThe VCL representation of the rule logic.

Endpoints

List rules in the latest configuration set

GET/wafs/rules

Get a rule

GET/wafs/rules/id

Get VCL for a rule

GET/wafs/rules/id/vcl

Get VCL for a rule associated with a firewall

GET/wafs/waf_id/rules/rule_id/vcl

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.