capabilities.work

Create Ruleset with Rule

A 3-step recipe with Cloudflare. We can help you get access.

Recipe · 3 steps

Create Ruleset with Rule

Create a ruleset, append a rule, and read the ruleset back.

  1. Create an empty custom ruleset in the supplied phase.
  2. Append a rule to the ruleset that applies an action on a match.
  3. Read the ruleset back to confirm the rule was appended.
What you'll need to have ready
  • zoneId: The unique identifier of the zone.
  • name: A human-readable name for the ruleset.
  • phase: The phase the ruleset runs in (e.g. http_request_firewall_custom).
  • ruleAction: The action the rule applies (e.g. block, challenge, skip).
  • ruleExpression: The Cloudflare expression that triggers the rule.
  • ruleDescription: A human-readable description for the rule.
For your developer

Arazzo workflow cloudflare:create-ruleset-with-rule, 3 operations: createZoneRuleset → createZoneRulesetRule → getZoneRuleset. Specs on APIs.io.