Active rules

An active rule represents a rule revision added to a particular firewall version.

Data model

created_atstringDate and time in ISO 8601 format.
latest_revisionintegerThe latest rule revision number that is available for the associated rule revision.
modsec_rule_idintegerThe ModSecurity rule ID of the associated rule revision.
outdatedbooleanIndicates if the associated rule revision is up to date or not.
revisionintegerRevision number.
statusstringDescribes the behavior for the particular rule revision within this firewall version.
updated_atstringDate and time in ISO 8601 format.

Endpoints

List active rules on a WAF

GET/waf/firewalls/firewall_id/versions/version_id/active-rules

Add a rule to a WAF as an active rule

POST/waf/firewalls/firewall_id/versions/version_id/active-rules

Delete multiple active rules from a WAF

DELETE/waf/firewalls/firewall_id/versions/version_id/active-rules

Get an active WAF rule object

GET/waf/firewalls/firewall_id/versions/version_id/active-rules/waf_rule_id

Delete an active rule

DELETE/waf/firewalls/firewall_id/versions/version_id/active-rules/waf_rule_id

Update an active rule

PATCH/waf/firewalls/firewall_id/versions/version_id/active-rules/waf_rule_id

Update multiple active rules

PATCH/waf/firewalls/firewall_id/versions/version_id/active-rules/bulk

Create active rules by tag

POST/waf/firewalls/firewall_id/versions/version_id/tags/waf_tag_name/active-rules