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
}
}
]
}'
import requests
import json
url = "https://api.5centscdn.com/v2/cb/42/zone/2102/stats"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
data = {
"draw": 1,
"start": 0,
"length": 10,
"search": {
"value": "",
"regex": false
},
"columns": [
{
"data": "date",
"name": "",
"searchable": true,
"orderable": false,
"search": {
"value": "",
"regex": false
}
}
]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/cb/42/zone/2102/stats", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"draw": 1,
"start": 0,
"length": 10,
"search": {
"value": "",
"regex": false
},
"columns": [
{
"data": "date",
"name": "",
"searchable": true,
"orderable": false,
"search": {
"value": "",
"regex": false
}
}
]
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"draw": 1,
"start": 0,
"length": 10,
"search": {
"value": "",
"regex": false
},
"columns": [
{
"data": "date",
"name": "",
"searchable": true,
"orderable": false,
"search": {
"value": "",
"regex": false
}
}
]
}`)
req, err := http.NewRequest("POST", "https://api.5centscdn.com/v2/cb/42/zone/2102/stats", bytes.NewBuffer(data))
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/cb/42/zone/2102/stats')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
request.body = '{
"draw": 1,
"start": 0,
"length": 10,
"search": {
"value": "",
"regex": false
},
"columns": [
{
"data": "date",
"name": "",
"searchable": true,
"orderable": false,
"search": {
"value": "",
"regex": false
}
}
]
}'
response = http.request(request)
puts response.body
{
"draw": 1,
"recordsFiltered": 42,
"recordsTotal": 120,
"data": []
}
/cb/{backupid}/zone/{zoneid}/statsTarget server for requests. Edit to use your own host.
API key (sent in header)
Critical Backup job ID
ID of the CDN zone linked to the backup
The media type of the request body
Draw counter, incremented on each request and echoed back in the response to match requests to responses.
Zero-based row offset of the first record to return.
Number of records to return per page.
Global search applied across all columns.
Column definitions describing which fields can be searched and sorted.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Path Parameters
Body
Draw counter, incremented on each request and echoed back in the response to match requests to responses.
1Global search applied across all columns.
Column definitions describing which fields can be searched and sorted.
Responses
Echoed draw counter from the request, used to match responses to requests.
Number of records matching the current search/filter.
Total number of sync run records for this zone link.
Array of sync run statistic rows, shaped by the requested columns.