Firewall
firewall
Access Rules
firewall.access_rules
Methods
Creates a new IP Access rule for an account or zone. The rule will apply to all zones in the account or zone.
Note: To create an IP Access rule that applies to a single zone, refer to the IP Access rules for a zone endpoints.
Deletes an existing IP Access rule defined.
Note: This operation will affect all zones in the account or zone.
Updates an IP Access rule defined.
Note: This operation will affect all zones in the account or zone.
Fetches the details of an IP Access rule defined.
Fetches IP Access rules of an account or zone. These rules apply to all the zones in the account or zone. You can filter the results using several optional parameters.
Domain types
Lockdowns
firewall.lockdowns
Methods
Creates a new Zone Lockdown rule.
Deletes an existing Zone Lockdown rule.
Fetches the details of a Zone Lockdown rule.
Fetches Zone Lockdown rules. You can filter the results using several optional parameters.
Updates an existing Zone Lockdown rule.
Domain types
Rules
firewall.rules
Methods
Deletes existing firewall rules.
Updates the priority of existing firewall rules.
Updates one or more existing firewall rules.
Create one or more firewall rules.
Deletes an existing firewall rule.
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example: X-Auth-Email: user@example.com
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Firewall Services Write
Identifier
The unique identifier of the firewall rule.
Whether the API call was successful
Updates the priority of an existing firewall rule.
Fetches the details of a firewall rule.
Fetches firewall rules in a zone. You can filter the results using several optional parameters.
Updates an existing firewall rule.
Domain types
UA Rules
firewall.ua_rules
Methods
Creates a new User Agent Blocking rule in a zone.
Deletes an existing User Agent Blocking rule.
Fetches the details of a User Agent Blocking rule.
Fetches User Agent Blocking rules in a zone. You can filter the results using several optional parameters.
Updates an existing User Agent Blocking rule.
WAF
firewall.waf
Methods
Creates a URI-based WAF override for a zone.
Note: Applies only to the previous version of WAF managed rules.
Deletes an existing URI-based WAF override.
Note: Applies only to the previous version of WAF managed rules.
Fetches the details of a URI-based WAF override.
Note: Applies only to the previous version of WAF managed rules.
Fetches the URI-based WAF overrides in a zone.
Note: Applies only to the previous version of WAF managed rules.
Updates an existing URI-based WAF override.
Note: Applies only to the previous version of WAF managed rules.
Domain types
Methods
Fetches the details of a WAF package.
Note: Applies only to the previous version of WAF managed rules.
Fetches WAF packages for a zone.
Note: Applies only to the previous version of WAF managed rules.
Methods
Updates a WAF rule group. You can update the state (mode
parameter) of a rule group.
Note: Applies only to the previous version of WAF managed rules.
Fetches the details of a WAF rule group.
Note: Applies only to the previous version of WAF managed rules.
Fetches the WAF rule groups in a WAF package.
Note: Applies only to the previous version of WAF managed rules.
Domain types
Methods
Updates a WAF rule. You can only update the mode/action of the rule.
Note: Applies only to the previous version of WAF managed rules.
Fetches the details of a WAF rule in a WAF package.
Note: Applies only to the previous version of WAF managed rules.
Fetches WAF rules in a WAF package.
Note: Applies only to the previous version of WAF managed rules.
Domain types