Raw LogsGet Raw Logs Configuration

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"
{
  "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"
    }
  }
}
GET
/account/logs
GET
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)

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.

Responses

resultstring

Operation outcome.

Allowed values:successfailure
dataobject

Complete raw logs configuration for a service account. Returned by GET and embedded in successful POST responses.

messagestring

Human-readable error description. Present only when result is not 'success'.