Preview the Impact of a Rule
/cdn/zones/{zone_uuid}/rule-impactSee what a rule would have affected before you save it: how many requests of the last hours match the address, country, network (ASN) or path you would block, how many of them your zone served fine, how many the CDN had already refused, and which share of what your zone serves that is. The dimensions you give are combined (all of them must match), the values of one dimension are alternatives. It is an estimate over past traffic. Addresses are personal data and need the cdn_visitors:view permission.
Authorization
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
Query parameters
Window looking back in minutes, 1 to 1440 (24 hours).
1440Visitor addresses or CIDR networks (up to 50). Needs the cdn_visitors:view permission.
Two-letter country codes (up to 50).
AS numbers (up to 50).
An exact path (/x) or a prefix ending in /* (/x/*).
length ≤ 500Responses
Successful Response
application/json