CubePathDOCS
CDN

Get Top Visitor Addresses

get/cdn/zones/{zone_uuid}/metrics/top-ips

Get the visitor addresses that request the most, with their network and how many of their requests the CDN refused. The window is at most 360 minutes. The addresses are personal data and need the cdn_visitors:view permission: without it the answer is 403.

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

limit?integer
Por defecto20
minutes?integer | null

Window in minutes looking back, 60 by default, at most 43200 (30 days). Not with from.

from?string | null

Start of an absolute window: an ISO 8601 date (UTC when it has no zone) or Unix seconds.

to?string | null

End of the absolute window (default now, never later than 30 seconds ago).

country?string | null

Comma-separated ISO country codes.

asn?string | null

Comma-separated AS numbers.

status_range?string | null

2xx, 3xx, 4xx or 5xx.

status?string | null

Comma-separated exact response codes.

cache_status?string | null

HIT or MISS.

device_type?string | null

mobile, desktop or bot.

path_prefix?string | null

Path prefix, for example /assets.

host?string | null

Comma-separated hosts (up to 20), lower case.

method?string | null

Comma-separated HTTP methods (up to 9).

referer_host?string | null

Host of the referer, or - for no referer.

http_version?string | null

Comma-separated: 1.0, 1.1, 2, 3.

tls_version?string | null

Comma-separated: 1.0, 1.1, 1.2, 1.3, none.

content_type?string | null

Comma-separated types (up to 10); one ending in / is a family, image/.

pop?string | null

Comma-separated locations (BCN01) or instances (bcn01-2).

rule?string | null

Comma-separated uuids of rules of the zone or names of the system (up to 20).

Respuestas

Successful Response

application/json

from?string | null

Start of the window read (UTC).

to?string | null

End of the window read, excluded (UTC).

zone_uuid*string
domain*string
period_minutes*integer
data*array<CDNTopIpItem>
Propiedades (7)
client_ip*string
requests*integer
bandwidth*integer
blocked_requests*integer
country_code*string
asn*integer
asn_name*string