Raw Logs

Available endpoints:
NameMethodPath
get/v3/raw-logs
post/v3/raw-logs/activate
post/v3/raw-logs/deactivate
get/v3/raw-logs/download

List of CDN Resource Raw Logs

gethttps://api.cdn77.com/v3/raw-logs

Responses

200List of cdn resources with raw logs status and files returned.
// response
[
  {
    "cdn": {
      "id": 1234567890,
      "label": "My cdn",
      "origin": "mydomain.com",
      "origin_id": "e56564d1-8d3e-4457-93a6-082b054bc736"
    },
    "files": [
      {
        "date_time": "2021-08-09T07:45:22+00:00",
        "file_name": "09Aug2021.gz",
        "file_size": 3595911
      }
    ],
    "is_active": true
  }
]

Activate Raw Logs for CDN Resource

posthttps://api.cdn77.com/v3/raw-logs/activate

Request bodyrequired

cdn_idinteger

The CDN Resource identifier for which you want to activate the logging.

Responses

202Raw Logs for CDN Resource activated.
// response
{
  "active_from": "2021-09-17T10:52:31.223Z",
  "active_to": "2021-09-17T10:52:31.223Z"
}
404Raw logs could not be activated, already active or Cdn Resource doesn't exist.

Deactivate Raw Logs for CDN Resource

posthttps://api.cdn77.com/v3/raw-logs/deactivate

Request bodyrequired

cdn_idinteger

The CDN Resource identifier for which you want to activate the logging.

Responses

202Raw Logs for CDN Resource deactivated.
// response
{
  "active_from": "2021-09-17T10:52:31.223Z",
  "active_to": "2021-09-17T10:52:31.223Z"
}
404Raw logs could not be deactivated.

Download Daily Raw Log files for CDN Resource

gethttps://api.cdn77.com/v3/raw-logs/download

Request parameters

cdnIdrequiredinteger in query
fileNamerequiredstring in query

Responses

200Specified raw log file was downloaded.
404File not found.