Rulesets
Rulesets
Methods
Fetches all rulesets.
Fetches the latest version of an account or zone ruleset.
Creates a ruleset.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Mass URL Redirects Write Magic Firewall Write L4 DDoS Managed Ruleset Write Transform Rules Write Select Configuration Write Account WAF Write Account Rulesets Write Logs Write
Body param: The kind of the ruleset.
Body param: The human-readable name of the ruleset.
Body param: The phase of the ruleset.
Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Body param: An informative description of the ruleset.
Body param: The list of rules in the ruleset.
A ruleset object.
The unique ID of the ruleset.
The kind of the ruleset.
The timestamp of when the ruleset was last modified.
The human-readable name of the ruleset.
The phase of the ruleset.
The list of rules in the ruleset.
The version of the ruleset.
An informative description of the ruleset.
Updates an account or zone ruleset, creating a new version.
Deletes all versions of an existing account or zone ruleset.
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 the versions of an account or zone entry point ruleset.
Fetches a specific version 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.
Updates an existing rule in an account or zone ruleset.
Deletes an existing rule from an account or zone ruleset.
Domain types
An object configuring the rule's logging behavior.
Versions
Rulesets.Versions
Methods
Fetches the versions of an account or zone ruleset.
Fetches a specific version of an account or zone ruleset.
Deletes an existing version of an account or zone ruleset.