Raw Logs
Available endpoints:
Name | Method | Path |
---|---|---|
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
200 – List of cdn resources with raw logs status and files returned.
// example of the 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
// example of the request body
{
"cdn_id": 1234567890
}
cdn_idinteger
The CDN Resource identifier for which you want to activate the logging.
Responses
202 – Raw Logs for CDN Resource activated.
// example of the response
{
"active_from": "2024-04-24T07:35:07.567Z",
"active_to": "2024-04-24T07:35:07.567Z"
}
404 – Raw 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
// example of the request body
{
"cdn_id": 1234567890
}
cdn_idinteger
The CDN Resource identifier for which you want to activate the logging.
Responses
202 – Raw Logs for CDN Resource deactivated.
// example of the response
{
"active_from": "2024-04-24T07:35:07.567Z",
"active_to": "2024-04-24T07:35:07.567Z"
}
404 – Raw 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
200 – Specified raw log file was downloaded.
404 – File not found.