Get Raw Logs Configuration
Retrieves the complete raw logs configuration for a service account. The response data bootstraps all three dashboard tabs — Raw Logs API, Downloader, and Syslog — with resource assignments, OpenStack storage credentials, syslog endpoint definitions, and available resource limits.
curl -X GET "https://api.5centscdn.com/v2/account/logs" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
import requests
import json
url = "https://api.5centscdn.com/v2/account/logs"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/account/logs", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.5centscdn.com/v2/account/logs", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.5centscdn.com/v2/account/logs')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"result": "success",
"data": {
"id": 10001,
"hashid": "abc123def456",
"resources_s3": [
"12345"
],
"resources_api": [
"12345",
"67890"
],
"resources_syslog": {
"0": {
"id": "42",
"hostname": "syslog.example.com",
"port": "514",
"protocol": "udp",
"format": "json",
"anonymize": {
"v4": "0",
"v6": "0"
},
"resources": [
"12345"
]
}
},
"counts": {
"s3": 1,
"api": 2,
"syslog": 1,
"bySyslog": {
"42": 1
}
},
"resources_syslog_curr": [
"12345"
],
"limit": 10,
"available": 9,
"ftpdetails": {
"username": "cdn_user_10001",
"password": "secret_password"
},
"s3details": {
"relid": 5001,
"type": "s3",
"projectid": "proj_abc123",
"active": "1",
"token": "tok_abc123",
"updated_at": "2026-01-15 10:00:00",
"last_modified": "2026-01-15 10:00:00"
},
"cdnservice": {
"listurl": "https://storage-eu-01.5centscdn.com/fileman/",
"authtoken": "dXNlcjpwYXNz"
},
"resources": {
"12345": "My HTTP Zone",
"67890": "My Livestream"
},
"searchOptions": null,
"openstack": {
"controller": "storage-eu-01.5centscdn.com",
"projectname": "abc123def456",
"projectid": "proj_abc123",
"username": "cdn_user_10001",
"password": "secret_password"
}
}
}
/account/logs
Target server for requests. Edit to use your own host.
API key (sent in header)
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Responses
Operation outcome.
successfailureComplete raw logs configuration for a service account. Returned by GET and embedded in successful POST responses.
Human-readable error description. Present only when result is not 'success'.