Filters
filters
Methods
Deprecated
delete/zones/{zone_id}/filters
Deletes one or more existing filters.
Deprecated
put/zones/{zone_id}/filters
Updates one or more existing filters.
Deprecated
post/zones/{zone_id}/filters
Creates one or more filters.
Deprecated
delete/zones/{zone_id}/filters/{filter_id}
Deletes an existing filter.
Security
API Email + API Key
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
Accepted Permissions (at least one required)
Firewall Services Write
Parameters
zone_id: string
Identifier
filter_id: string
The unique identifier of the filter.
Response fields
result:
success: true
Whether the API call was successful
Request example
200Example
Deprecated
get/zones/{zone_id}/filters/{filter_id}
Fetches the details of a filter.
Deprecated
get/zones/{zone_id}/filters
Fetches filters in a zone. You can filter the results using several optional parameters.
Deprecated
put/zones/{zone_id}/filters/{filter_id}
Updates an existing filter.
Domain types
FirewallFilter = { id, description, expression, 2 more... }