references/waf/api.md
WAF API Reference
Read the matching workflow before writing API calls or translating them into the project's installed SDK. Retrieve identifiers from the target account or zone; do not reuse example IDs.
| Task | Documentation | |------|---------------| | Inspect the entry point and add custom rules | Create a custom rule via API | | Discover managed rulesets and deploy them | Deploy managed rules via API | | Create rate limits with the current request schema | Create a rate limiting rule via API | | Select counting characteristics, expressions, periods, and mitigation behavior | Rate limiting parameters | | Replace a ruleset deliberately or choose an additive operation | Update or deploy a ruleset | | Construct expressions using supported fields, operators, and functions | Rules language | | Choose actions and understand terminating behavior | Actions reference | | Override managed rules, tags, or a ruleset | Managed ruleset overrides | | Choose exactly what a skip rule bypasses | Skip options |
For an addition, prefer the workflow's operation that adds a rule to an existing ruleset. When replacing a ruleset, include every rule that must remain; review the resulting rule list before applying it. See gotchas.md for scope and evaluation checks.