Skip to content

Retrieves the collection of cdn-log resources.

GET
/api/organizations/{organizationId}/cdn-logs

Retrieves the collection of cdn-log resources.

Authorizations

ApiToken

Long-lived API token created via POST /api/api-tokens (returned once in plaintext).

Type
API Key (header: X-API-TOKEN)
or
JWT

JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer .

Type
HTTP (bearer)

Parameters

Path Parameters

organizationId*

Organization identifier

Type
string
Required

Query Parameters

page

The collection page number

Type
integer
Default
1
itemsPerPage

The number of items per page

Type
integer
Default
30
Minimum
0
Maximum
100
from

Window start, unix seconds (default: 15 minutes before "to").

Type
integer
to

Window end, unix seconds (default: now).

Type
integer
zoneId

Restrict to these zones (must belong to the organization). Omit for all the org's zones.

Type
array
order[timestamp]

Sort by timestamp (default desc). Any field is sortable via order[].

Type
string
Valid values
"asc""desc"
status_code

Filter by status_code (also status_code[gte]/[lt]/…). Any field is filterable.

Type
integer
host

Filter by host (host[like]=… for substring).

Type
string
q

Case-insensitive substring search on host/path/remote_ip/request_id.

Type
string

Responses

cdn-log collection

JSON
{
  
"totalItems": 0,
  
"search": {
  
  
"@type": "string",
  
  
"template": "string",
  
  
"variableRepresentation": "string",
  
  
"mapping": [
  
  
  
{
  
  
  
  
"@type": "string",
  
  
  
  
"variable": "string",
  
  
  
  
"property": "string",
  
  
  
  
"required": true
  
  
  
}
  
  
]
  
},
  
"view": {
  
  
"@id": "string",
  
  
"@type": "string",
  
  
"first": "string",
  
  
"last": "string",
  
  
"previous": "string",
  
  
"next": "string"
  
},
  
"member": [
  
  
{
  
  
  
"timestamp": "string",
  
  
  
"zone_id": "string",
  
  
  
"pull_zone_id": 0,
  
  
  
"request_id": "string",
  
  
  
"cache_status": "string",
  
  
  
"status_code": 0,
  
  
  
"bytes_sent": 0,
  
  
  
"remote_ip": "string",
  
  
  
"country_code": "string",
  
  
  
"edge_location": "string",
  
  
  
"scheme": "string",
  
  
  
"host": "string",
  
  
  
"path": "string",
  
  
  
"url": "string",
  
  
  
"user_agent": "string",
  
  
  
"referer": "string",
  
  
  
"ja4_fingerprint": "string",
  
  
  
"asn": 0,
  
  
  
"asn_organization": "string",
  
  
  
"is_eu": 0
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI