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.

Autorización

Authorization
Authorization*string

Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.

Parámetros de ruta

zone_uuid*string

Parámetros de consulta

minutes?integer

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

Por defecto1440
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/*).

Rangolength ≤ 500

Respuestas

Successful Response

application/json

zone_uuid*string
period_minutes*integer
cutoff_seconds*integer
matched*CDNRuleImpactMatched
Propiedades (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