Deploy rulesets
Use the Rulesets API to deploy a ruleset. To deploy a ruleset, add a rule with "action": "execute"
to a phase entry point ruleset, specifying the ruleset ID to execute as an action parameter. Use a separate rule for each ruleset you want to deploy.
A rule that executes a ruleset consists of:
- The ID of the ruleset you want to execute.
- An expression.
- An action, set to
execute
.
The rules in the ruleset execute when a request satisfies the expression.
The following example deploys a managed ruleset to the http_request_firewall_managed
phase of a given zone ({zone_id}
) by adding a rule that executes the managed ruleset.
Refer to Work with managed rulesets and Work with custom rulesets for more information.
For more information on the available API endpoints for editing and deploying rulesets, refer to Update and deploy rulesets.
For examples of deploying rulesets, refer to Managed ruleset override examples.