Raw Logs DownloaderGet Downloadable Log Files

Get Downloadable Log Files

Returns S3 object paths for CDN access log archive files matching the specified date range and resources. An empty files array means no logs were found for the given criteria.

The client constructs full download URLs by prepending the OpenStack controller and username from GET /account/logs:

https://{openstack.controller}/{openstack.username}/{file}

Files are gzip-compressed CDN access log archives (.gz). The Downloader tab downloads files in parallel chunks of 25, packages each chunk as a ZIP using JSZip, and triggers a browser download per chunk (downloaded-logs-part-N.zip).

curl -X POST "https://api.5centscdn.com/v2/account/logs/s3" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "r": "2026-01-20 00:00:00 - 2026-01-20 23:59:59",
  "resources": [
    "12345",
    "67890"
  ]
}'
{
  "result": "success",
  "files": [
    "logs/2026/01/20/resource-12345/cdn-access.log.gz",
    "logs/2026/01/20/resource-67890/cdn-access.log.gz"
  ]
}
POST
/account/logs/s3
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
rstring
Required

Date range in UTC format: "YYYY-MM-DD HH:mm:ss - YYYY-MM-DD HH:mm:ss". Defines the time window for which log files are retrieved.

resourcesarray
Required

Resource IDs for which log files should be retrieved. Must contain at least one entry.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Body

application/json
rstring
Required

Date range in UTC format: "YYYY-MM-DD HH:mm:ss - YYYY-MM-DD HH:mm:ss". Defines the time window for which log files are retrieved.

Example:
2026-01-20 00:00:00 - 2026-01-20 23:59:59
resourcesarray
Required

Resource IDs for which log files should be retrieved. Must contain at least one entry.

Example:
["12345","67890"]

Responses

resultstring

Operation outcome.

filesstring[]

List of S3 object paths relative to the OpenStack storage account. The client constructs full download URLs as: https://\{openstack.controller\}/\{openstack.username\}/{file}

Files are gzip-compressed CDN access log archives (.gz). An empty array means no logs were found for the requested date range and resources.