Critical BackupGet Backup Zone Usage

Get Backup Zone Usage

Get bandwidth/transfer usage totals for a zone linked to a critical backup job over a given period.

curl -X GET "https://api.5centscdn.com/v2/cb/42/zone/2102/usage?r=2024-09%2Fdaily" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "lines": [],
  "aggs": {
    "checks": "1024",
    "deletes": "3",
    "renames": "1",
    "errors": "0",
    "transfers": "128",
    "bytes": "53687091200"
  }
}
GET
/cb/{backupid}/zone/{zoneid}/usage
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)

path
backupidinteger
Required

Critical Backup job ID

path
zoneidinteger
Required

ID of the CDN zone linked to the backup

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.

Path Parameters

backupidinteger
Required

Critical Backup job ID

Example:
42
zoneidinteger
Required

ID of the CDN zone linked to the backup

Example:
2102

Query Parameters

rstring
Required
Example:
2024-09/daily

Responses

linesstring[]

Time-series usage data points for the requested period.

aggsobject

Aggregated totals for the requested period.