Critical BackupGet Backup Zone Stats

Get Backup Zone Stats

Get a paginated, filterable table of sync run statistics for a zone linked to a critical backup job.

curl -X POST "https://api.5centscdn.com/v2/cb/42/zone/2102/stats" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "draw": 1,
  "start": 0,
  "length": 10,
  "search": {
    "value": "",
    "regex": false
  },
  "columns": [
    {
      "data": "date",
      "name": "",
      "searchable": true,
      "orderable": false,
      "search": {
        "value": "",
        "regex": false
      }
    }
  ]
}'
{
  "draw": 1,
  "recordsFiltered": 42,
  "recordsTotal": 120,
  "data": []
}
POST
/cb/{backupid}/zone/{zoneid}/stats
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)

path
backupidinteger
Required

Critical Backup job ID

path
zoneidinteger
Required

ID of the CDN zone linked to the backup

Content-Typestring
Required

The media type of the request body

Options: application/json
drawinteger
Required

Draw counter, incremented on each request and echoed back in the response to match requests to responses.

startinteger
Required

Zero-based row offset of the first record to return.

lengthinteger
Required

Number of records to return per page.

columnsarray
Required

Column definitions describing which fields can be searched and sorted.

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

Body

application/json
drawinteger
Required

Draw counter, incremented on each request and echoed back in the response to match requests to responses.

Example:
1
startinteger
Required

Zero-based row offset of the first record to return.

Example:
0
lengthinteger
Required

Number of records to return per page.

Example:
10
columnsarray
Required

Column definitions describing which fields can be searched and sorted.

Responses

drawinteger

Echoed draw counter from the request, used to match responses to requests.

recordsFilteredinteger

Number of records matching the current search/filter.

recordsTotalinteger

Total number of sync run records for this zone link.

datastring[]

Array of sync run statistic rows, shaped by the requested columns.