Validate a rule expression (WAF or Smart Firewall)
validate_waf_expressionValidates Wirefilter rule expressions for WAF or Smart Firewall schemes, optionally testing against custom data, and returns validity status with error messages.
Instructions
Validate a Wirefilter rule expression. rule_type selects the scheme: 'waf' (HTTP L7 fields, default) or 'smart_firewall' (L3/L4 + JA4 fields; http.* fields are NOT available and will be rejected). Optionally test against custom test data. Returns a dictionary with valid (boolean) and error_message (string) when invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | No | ||
| rule_type | No | waf | |
| expression | Yes |