Zone Purge Details
Get detailed per-server logs for a specific purge or prefetch operation of a HTTP push zone. Used when a row is expanded in the Manage Cache "History" tab.
curl -X GET "https://api.5centscdn.com/v2/zones/http/push/42/purge/8f3a1c2d" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
import requests
import json
url = "https://api.5centscdn.com/v2/zones/http/push/42/purge/8f3a1c2d"
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/zones/http/push/42/purge/8f3a1c2d", {
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/zones/http/push/42/purge/8f3a1c2d", 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/zones/http/push/42/purge/8f3a1c2d')
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",
"id": "8f3a1c2d",
"serviceid": 67890,
"zone": "12345",
"type": "url",
"list": [
"/videos/file.mp4"
],
"meta": "",
"logs": [
{
"serverId": "31",
"serverName": "London, United Kingdom",
"purged": [
"/videos/file.mp4"
],
"completed": true
}
],
"completed_at": "1717236060",
"created_at": "1717236000",
"updated_at": "1717236060",
"errors": ""
}
/zones/http/push/{zoneid}/purge/{purgeId}Target server for requests. Edit to use your own host.
API key (sent in header)
Zone ID
Unique identifier of the purge or prefetch operation, returned by the purge/prefetch endpoints or the purge history list.
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
Unique identifier of the purge or prefetch operation, returned by the purge/prefetch endpoints or the purge history list.
8f3a1c2dResponses
Status of the API response.
Unique identifier of the purge or prefetch operation.
Service account identifier associated with this zone
Identifier of the zone this operation was run against.
Operation type. fetch = prefetch operation. url = purge-by-path operation. Any other value represents another purge operation type.
List of file paths submitted for this purge/prefetch operation.
Additional metadata associated with this operation.
Per-server logs for this purge/prefetch operation. The History tab uses the array length (minus 1) as the "Total Server" count and counts entries where completed is false (minus 1) as "Cache pending".
Unix timestamp (in seconds, as a string) when this operation completed, or empty/null while still pending.
Unix timestamp (in seconds, as a string) when this operation was created.
Unix timestamp (in seconds, as a string) of the most recent update to this operation.
Error message recorded for this operation, or empty string if none.