CubePathDOCS
CDN

Preview the Impact of a Rule

get/cdn/zones/{zone_uuid}/rule-impact

See 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

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Path parameters

zone_uuid*string

Query parameters

minutes?integer

Window looking back in minutes, 1 to 1440 (24 hours).

Default1440
client_ip?array<string> | null

Visitor addresses or CIDR networks (up to 50). Needs the cdn_visitors:view permission.

country?array<string> | null

Two-letter country codes (up to 50).

asn?array<integer> | null

AS numbers (up to 50).

path?string | null

An exact path (/x) or a prefix ending in /* (/x/*).

Rangelength ≤ 500

Responses

Successful Response

application/json

zone_uuid*string
period_minutes*integer
cutoff_seconds*integer
matched*CDNRuleImpactMatched
Properties (5)
requests*integer
bandwidth*integer
distinct_ips*integer
already_refused*integer
served_ok*integer
zone_requests*integer
zone_served_ok*integer
share_of_zone*number
share_of_served*number
caller_matches?boolean | null