Restore
Restore VoD pull zone
curl -X GET "https://api.5centscdn.com/v2/zones/vod/pull/42/restore" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
import requests
import json
url = "https://api.5centscdn.com/v2/zones/vod/pull/42/restore"
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/vod/pull/42/restore", {
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/vod/pull/42/restore", 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/vod/pull/42/restore')
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",
"message": "Zone Updated",
"zone": {
"type": "pull",
"id": 12345,
"serviceid": 67890,
"alias": "riz/pradhyumanV5",
"hashid": "exa8jnlgpb63",
"mode": "vod",
"optimize": "http",
"optimizer": "",
"origin": "https://wmncdn.com",
"backup": "",
"cnames": "vod.wmncdn.com",
"live": "N",
"wafid": null,
"edgeruleids": 0,
"dnscheck": 1,
"ip": null,
"customhostheader": "",
"iswordpress": "0",
"awsSignatureV4": null,
"disabled": "1",
"created_at": "2024-02-15 15:51:47",
"updated_at": "2026-03-04 09:36:36",
"deleted": null,
"router": "mycdn",
"remaining": 0,
"status": "Disabled",
"name": "sample-pull-zone",
"fqdn": "cdn.example.com",
"fqdnVoD": "cdn.example.com",
"ssl": {
"http": "N",
"http2": "N",
"redirect": "N",
"mode": "L",
"certid": "cdn.example.com",
"zerossl": {
"logDir": "/var/logs/ssl/2023/sample",
"cn": "cdn.example.com",
"sans": [
"vod.wmncdn.com"
],
"strSans": "vod.wmncdn.com",
"certDomains": "cdn.example.com,vod.wmncdn.com",
"baseDir": "/etc/ssl/zerossl/cdn.example.com/",
"cnfFile": "/etc/ssl/zerossl/cdn.example.com/csr.cnf",
"csrFile": "/etc/ssl/zerossl/cdn.example.com/csr.pem",
"keyFile": "/etc/ssl/zerossl/cdn.example.com/privkey.pem",
"crtFile": "/etc/ssl/zerossl/cdn.example.com/cert.pem",
"chnFile": "/etc/ssl/zerossl/cdn.example.com/chain.pem",
"fulFile": "/etc/ssl/zerossl/cdn.example.com/fullchain.pem",
"crtFileParsed": {
"name": "/CN=cdn.example.com",
"subject": {
"CN": "cdn.example.com"
},
"hash": "f6a22c8c",
"issuer": {
"C": "AT",
"O": "ZeroSSL",
"CN": "ZeroSSL RSA Domain Secure Site CA"
},
"version": 2,
"serialNumber": "41891644561346293170065031837456420734",
"serialNumberHex": "1F84098A65D4231A1399162C8A364F7E",
"validFrom": "260103000000Z",
"validTo": "260403235959Z",
"validFrom_time_t": 1767398400,
"validTo_time_t": 1775260799,
"signatureTypeSN": "RSA-SHA384",
"signatureTypeLN": "sha384WithRSAEncryption",
"signatureTypeNID": 669,
"purposes": {},
"extensions": {
"authorityKeyIdentifier": "keyid:AB:CD:EF:01:23:45:67:89:AB:CD:EF:01:23:45:67:89",
"subjectKeyIdentifier": "AB:CD:EF:01:23:45:67:89:AB:CD:EF:01:23:45:67:89",
"keyUsage": "Digital Signature, Key Encipherment",
"basicConstraints": "CA:FALSE",
"extendedKeyUsage": "TLS Web Server Authentication, TLS Web Client Authentication",
"certificatePolicies": "Policy OID",
"authorityInfoAccess": "OCSP - URI:http://ocsp.zerossl.com",
"ct_precert_scts": "Signed Certificate Timestamps",
"subjectAltName": "DNS:cdn.example.com, DNS:vod.wmncdn.com"
}
},
"dbRow": {
"cn": "cdn.example.com",
"sans": "vod.wmncdn.com",
"certid": "a4483c61d4abc54d837e75dd305f7674",
"created": "2026-03-30 22:52:55",
"expires": "2026-06-28 23:59:59",
"status": "draft",
"create_meta": {},
"validate_meta": {
"success": false,
"error": {
"code": 0,
"type": "domain_control_validation_failed",
"details": {}
}
}
}
},
"enabled": "Y",
"warning": "Certificate Expired"
},
"cnamesArr": [
"vod.wmncdn.com"
],
"cnamesArrFqdn": [
"vod.wmncdn.com",
"cdn.example.com"
],
"waf": {
"enabled": "N"
},
"defaultBehaviors": {},
"edgeRules": [],
"behaviorId": 3453,
"modeI": "vod",
"originip": {
"enabled": "N"
},
"baseDirectory": "",
"hostHeader": "wmncdn.com",
"shield": {
"network": "0",
"enabled": "Y",
"shields": [
"CA"
]
},
"proxied": false,
"origin_auth": {
"type": "none"
},
"domainlock": {
"enabled": "N",
"policy": "N",
"list": "",
"ips": "",
"noreferer": "N",
"active": "N"
},
"geoblock": {
"enabled": "N",
"policy": "N",
"list": [
""
],
"ips": "",
"active": "N"
},
"securetoken": {
"enabled": "N",
"policy": "F",
"keyip": "N",
"list": "",
"timeout": 5,
"session": "0",
"ips": "",
"dirs": "",
"active": "N"
},
"ipaccess": {
"enabled": "N",
"policy": "N",
"list": "",
"ips": "",
"active": "N"
},
"useragent": {
"enabled": "N",
"policy": "Y",
"list": "",
"ips": "",
"casesensitive": "N",
"active": "N",
"listArr": [
""
]
},
"eac": {
"enabled": "N",
"policy": "N",
"list": "",
"ips": "",
"active": "N"
},
"bwlimit": {
"enabled": "N",
"policy": "1",
"rate": 0,
"rateafter": 0,
"payg": "N",
"active": "N"
},
"cache": {
"smart": "0",
"cache": "2592000s",
"expiry": "1d",
"querystring": "Y",
"cachecontrol": "Y",
"usestale": "N",
"revalidate": "Y",
"cacheInSecs": "2592000",
"cacheInMins": 43200,
"expiryInSecs": 86400,
"expiryInMins": 1440
},
"edge": {
"compression": "N",
"compressionlevel": "6",
"disposition": "N",
"stripcookie": "N",
"xff": "Y",
"cors": "Y",
"webp": "N",
"pseudostreaming": "N",
"wp": "N",
"lfo": "Y",
"prefresh": "N"
},
"cdnservice": {
"purgeurls": [
"/dashboard/103/zones/vod/pull/3908/purge"
],
"purgeurl": "["\\/dashboard\\/103\\/zones\\/vod\\/pull\\/3908\\/purge"]",
"authtoken": "c2FtcGxlLWF1dGh0b2tlbi1oZXJl"
},
"ftpdetails": {
"username": "user_67890_push_12345",
"password": "WA572y4zss"
},
"playbackurls": {
"scheme": "http",
"name": "/path/to/filename.mp4",
"url_prefix": "http://vod.wmncdn.com",
"http": "http://vod.wmncdn.com/path/to/filename.mp4",
"hls": "https://hash-hls-live.5centscdn.com",
"dash": "https://hash-hls-live.5centscdn.com",
"players": {
"hostname": "player.example.com",
"flowplayer": {
"base": "http://player.example.com/flowplayer/hls/",
"hls": "http://player.example.com/flowplayer/hls/"
},
"videojs": {
"base": "http://player.example.com/videojs/hls/",
"hls": "http://player.example.com/videojs/hls/"
},
"own": {
"hashes": {},
"baseQ": "?showcv=true&title=[ReplaceWithVideoTitle]",
"base": "http://player.example.com/5centscdn/auto/skin1/sampleplayer1/",
"hls": "http://player.example.com/5centscdn/auto/skin1/sampleplayer1/"
}
}
},
"seo": {
"canonical": "N",
"robots": "N",
"robotstxt": "N",
"robotstxtcustom": ""
},
"hasEdgeRules": true
}
}
/zones/vod/pull/{zoneid}/restoreTarget server for requests. Edit to use your own host.
API key (sent in header)
Zone ID
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
Responses
Status of the API response.
Human-readable status or result message
Zone type identifier (push or pull)
Unique numeric identifier of the zone
Service account identifier associated with this zone
Primary CDN hostname assigned to the zone
Unique hash identifier of the zone
Delivery mode of the zone (e.g. http, https)
Whether image/content optimization is enabled (Y/N)
Whether the optimizer feature is enabled for this zone
Origin server hostname or URL
Whether backup origin failover is enabled (Y/N)
Comma-separated list of CNAMEs associated with this zone
Whether live streaming is active for this zone
Count of edge rules associated with this zone
Whether DNS propagation check is enabled
Custom Host header value sent to the origin server
Whether WordPress integration mode is enabled (Y/N)
Whether this zone is currently disabled (0=active, 1=disabled)
ISO 8601 timestamp when this resource was created
ISO 8601 timestamp of the most recent update
Internal router label for this zone
Remaining quota or resource count for this zone
Current operational status of the resource
Human-readable name of the resource
Fully qualified domain name of the CDN zone
Fully qualified domain name for VoD delivery
Whether plain HTTP delivery is enabled (Y/N)
Whether HTTP/2 is enabled (Y/N)
Whether HTTP to HTTPS redirect is enabled (Y/N)
Delivery mode of the zone (e.g. http, https)
SSL certificate identifier, or empty if using default
Directory path where access logs are stored
Common Name (CN) of the SSL certificate
Subject Alternative Names as a formatted string
Array of domain names covered by this certificate
Base directory path on the origin server
Path to the SSL configuration file
Path to the Certificate Signing Request (CSR) file
Path to the SSL private key file
Path to the SSL certificate file
Path to the SSL certificate chain file
Path to the full SSL certificate bundle file
Human-readable name of the resource
Certificate subject distinguished name
Unique hash token used for tokenized stream access
Two-letter ISO 3166 country code in the certificate subject
Organization name in the certificate subject
Certificate authority that issued this SSL certificate
Certificate or protocol version number
SSL certificate serial number in decimal format
SSL certificate serial number in hexadecimal format
Certificate validity start date in human-readable format
Certificate validity end/expiry date in human-readable format
Certificate validity start as Unix timestamp
Certificate validity end/expiry as Unix timestamp
Short name of the signature algorithm (e.g. RSA-SHA256)
Long name of the signature algorithm
OpenSSL numeric identifier (NID) for the signature algorithm
X.509 certificate extensions.
Authority Key Identifier extension value.
Subject Key Identifier extension value.
Key usage extension value.
Basic constraints extension value.
Extended key usage extension value.
Certificate policies extension value.
Authority Information Access extension value.
Certificate Transparency pre-certificate SCTs.
Subject Alternative Name extension value (comma-separated domains)
Common Name (CN) of the SSL certificate
Subject Alternative Names (SANs) on the SSL certificate
SSL certificate identifier, or empty if using default
Unix timestamp or ISO date when this was created
Expiry timestamp for this token or resource
Current operational status of the resource
Metadata from the ZeroSSL certificate creation request.
Metadata from the ZeroSSL certificate validation process.
Whether domain validation succeeded.
Error details if validation failed.
Numeric error code.
Error type identifier.
Additional error details keyed by domain.
Whether this feature is currently enabled (Y/N)
SSL warning flag or message, false if none
Array of CNAMEs for this zone
Array of FQDN CNAMEs for this zone
Whether this feature is currently enabled (Y/N)
Array of edge rule objects for this zone
Numeric identifier of the default behavior set
Internal delivery mode identifier for this zone
Whether this feature is currently enabled (Y/N)
Base directory path for content delivery
Custom host header sent to the origin server
Network provider name for this behavior
Whether this feature is currently enabled (Y/N)
Whether traffic is proxied through an intermediary
Zone type identifier (push or pull)
Whether this feature is currently enabled (Y/N)
Access policy setting for this security feature
Comma-separated list of entries for this security rule
Comma-separated IP addresses or CIDR ranges
Whether requests with no referrer header are blocked (Y/N)
Whether this security rule is currently active (Y/N)
Whether this feature is currently enabled (Y/N)
Access policy setting for this security feature
Comma-separated list of entries for this security rule
Comma-separated IP addresses or CIDR ranges
Whether this security rule is currently active (Y/N)
Whether this feature is currently enabled (Y/N)
Access policy setting for this security feature
Whether IP is included in the secure token key (Y/N)
Comma-separated list of entries for this security rule
Token expiry timeout in seconds
Whether session-based tokens are used (Y/N)
Comma-separated IP addresses or CIDR ranges
Comma-separated directory paths for token restriction
Whether this security rule is currently active (Y/N)
Whether this feature is currently enabled (Y/N)
Access policy setting for this security feature
Comma-separated list of entries for this security rule
Comma-separated IP addresses or CIDR ranges
Whether this security rule is currently active (Y/N)
Whether this feature is currently enabled (Y/N)
Access policy setting for this security feature
Comma-separated list of entries for this security rule
Comma-separated IP addresses or CIDR ranges
Whether matching is case-sensitive (Y/N)
Whether this security rule is currently active (Y/N)
Array of entries for this security rule
Whether this feature is currently enabled (Y/N)
Access policy setting for this security feature
Comma-separated list of entries for this security rule
Comma-separated IP addresses or CIDR ranges
Whether this security rule is currently active (Y/N)
Whether this feature is currently enabled (Y/N)
Access policy setting for this security feature
Bandwidth rate limit value
Bytes transferred before rate limiting begins
Whether pay-as-you-go billing is enabled (Y/N)
Whether this security rule is currently active (Y/N)
Whether smart cache is enabled for this zone
Edge cache TTL duration code
Browser cache TTL duration code
Whether query string caching is enabled (Y/N)
Whether Cache-Control headers are respected (Y/N)
Whether stale content is served while revalidating (Y/N)
Whether content is revalidated after expiry (Y/N)
Edge cache TTL in seconds
Edge cache TTL in minutes
Browser cache TTL in seconds
Browser cache TTL in minutes
Whether gzip/brotli compression is enabled (Y/N)
Compression level setting (0-9)
Whether Content-Disposition header is set (Y/N)
Whether cookies are stripped from requests (Y/N)
Whether X-Forwarded-For header is passed (Y/N)
Whether CORS headers are enabled (Y/N)
Whether WebP conversion is enabled (Y/N)
Whether pseudo-streaming is enabled (Y/N)
Whether WordPress optimization is enabled (Y/N)
Whether large file optimization is enabled (Y/N)
Whether prefetch refresh is enabled (Y/N)
Array of purge endpoint URLs for this zone
JSON-encoded purge URL string
Base64-encoded authentication token for CDN service calls
FTP or access username for this zone
FTP or access password for this zone
URL scheme used for playback (http or https)
Human-readable name of the resource
Base URL prefix for CDN delivery
Whether plain HTTP delivery is enabled (Y/N)
HLS stream playlist URL for this zone
MPEG-DASH stream manifest URL for this zone
Player service hostname
Base URL for the player or stream
Flowplayer embed URLs for this zone
Base URL for the player or stream
Video.js player embed URLs for this zone
Base URL with query string parameters for player customization
Base URL for the player or stream
HLS stream playlist URL for this zone
Whether canonical URL enforcement is enabled (Y/N)
Robots.txt handling mode for this zone
Custom robots.txt content for this zone
Whether SEO-friendly URL mode is enabled (Y/N)
Whether this zone has any edge rules configured