Rulesets
rulesets
Methods
Creates a ruleset.
Deletes all versions of an existing account or zone ruleset.
Fetches the latest version of an account or zone ruleset.
Fetches all rulesets.
Updates an account or zone ruleset, creating a new version.
Domain types
The kind of the ruleset.
The phase of the ruleset.
A ruleset object.
Phases
rulesets.phases
Methods
Fetches the latest version of the account or zone entry point ruleset for a given phase.
Updates an account or zone entry point ruleset, creating a new version.
Methods
Fetches a specific version of an account or zone entry point ruleset.
Fetches the versions of an account or zone entry point ruleset.
Rules
rulesets.rules
Methods
Adds a new rule to an account or zone ruleset. The rule will be added to the end of the existing list of rules in the ruleset by default.
Deletes an existing rule from an account or zone ruleset.
Updates an existing rule in an account or zone ruleset.
Domain types
An object configuring the rule's logging behavior.
Versions
rulesets.versions
Methods
Deletes an existing version of an account or zone ruleset.
Fetches a specific version of an account or zone ruleset.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Mass URL Redirects Write Mass URL Redirects Read Magic Firewall Write Magic Firewall Read L4 DDoS Managed Ruleset Write L4 DDoS Managed Ruleset Read Transform Rules Write Transform Rules Read Select Configuration Write Select Configuration Read Account WAF Write Account WAF Read Account Rulesets Read Account Rulesets Write Logs Write Logs Read
The unique ID of the ruleset.
The version of the ruleset.
The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
A list of error messages.
A list of warning messages.
A ruleset object.
Whether the API call was successful.
Fetches the versions of an account or zone ruleset.