Zone
Return HTTP push zone details
curl -X GET "https://api.5centscdn.com/v2/zones/http/push?page=25" \
-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?page=25"
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?page=25", {
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?page=25", 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?page=25')
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",
"zones": [
{
"type": "push",
"id": 12345,
"serviceid": 67890,
"alias": "",
"hashid": "abc123def456",
"mode": "http",
"optimizer": "0",
"cnames": "",
"edgeruleids": 0,
"rclone": 0,
"disabled": "0",
"created_at": "2023-01-15 10:00:00",
"updated_at": "2023-01-20 12:00:00",
"deleted": null,
"router": "mycdn",
"remaining": 0,
"status": "Enabled",
"name": "sample-push-zone",
"fqdn": "cdn.example.com",
"ssl": {
"http": "N",
"http2": "Y",
"redirect": "Y",
"mode": "S",
"certid": "",
"zerossl": {},
"enabled": "Y",
"warning": false
},
"cnamesArr": [],
"cnamesArrFqdn": [
"cdn.example.com"
],
"waf": {
"enabled": "N"
},
"defaultBehaviors": {},
"edgeRules": [],
"cache": {
"smart": "0",
"cache": "4h",
"expiry": "1M",
"querystring": "N",
"cachecontrol": "Y",
"usestale": "Y",
"revalidate": "Y",
"cacheInSecs": 14400,
"cacheInMins": 240,
"expiryInSecs": 2592000,
"expiryInMins": 43200
},
"edge": {
"compression": "N",
"compressionlevel": "5",
"disposition": "N",
"stripcookie": "N",
"xff": "N",
"cors": "Y",
"webp": "N",
"pseudostreaming": "Y",
"wp": "N",
"lfo": "Y",
"prefresh": "N"
},
"domainlock": {
"enabled": "N",
"policy": "N",
"list": "",
"ips": "",
"noreferer": "N",
"active": "N"
},
"geoblock": {
"enabled": "N",
"policy": "N",
"list": [
""
],
"ips": "",
"active": "N"
},
"ipaccess": {
"enabled": "N",
"policy": "N",
"list": "",
"ips": "",
"active": "N"
},
"useragent": {
"enabled": "N",
"policy": "N",
"list": "",
"ips": "",
"casesensitive": "N",
"active": "N",
"listArr": [
""
]
},
"securetoken": {
"enabled": "N",
"policy": "D",
"keyip": "N",
"list": "",
"timeout": 3600,
"session": "0",
"ips": "",
"dirs": "",
"active": "N"
},
"bwlimit": {
"enabled": "N",
"policy": "0",
"rate": 0,
"rateafter": 0,
"payg": "N",
"active": "N"
},
"eac": {
"enabled": "N",
"policy": "N",
"list": "",
"ips": "",
"active": "N"
},
"behaviorId": 11111,
"linkedVideoManager": null,
"hostHeader": "cdn.example.com",
"storageHost": "storage.example.com",
"storageHostBackup": "storage-eu.example.com",
"osAuthUrl": "https://storage.example.com/v3/",
"horizonUrl": "https://storage.example.com/horizon/",
"cdnservice": {
"purgeurls": [
"/dashboard/67890/zones/http/push/12345/purge"
],
"purgeurl": "["\\/dashboard\\/67890\\/zones\\/http\\/push\\/12345\\/purge"]",
"authtoken": "c2FtcGxlLWF1dGh0b2tlbi1oZXJl",
"infourl": "https://cdn-service.example.com/service.php/info/5/push/12345",
"listurl": "https://cdn-service.example.com/service.php/list/5/push/12345",
"rawlisturl": "https://cdn-service.example.com/service.php/raw/list/5/push/12345",
"transcodelisturl": "https://cdn-service.example.com/service.php/transcode/list/5/push/12345",
"addurl": "https://cdn-service.example.com/service.php/add/5/push/12345",
"editurl": "https://cdn-service.example.com/service.php/edit/5/push/12345",
"deleteurl": "https://cdn-service.example.com/service.php/delete/5/push/12345",
"uploadurl": "https://cdn-service.example.com/upload.php",
"playlisturl": "https://cdn-service.example.com/service.php/playlist"
},
"ftpdetails": {
"username": "user_67890_push_12345",
"password": "samplepasswd01"
},
"playbackurls": {
"scheme": "https",
"name": "/path/to/filename.ext",
"url_prefix": "https://cdn.example.com",
"http": "https://cdn.example.com/path/to/filename.ext",
"players": {
"hostname": "player.example.com",
"flowplayer": {
"base": "https://player.example.com/flowplayer/hls/",
"hls": "https://player.example.com/flowplayer/hls/"
},
"videojs": {
"base": "https://player.example.com/videojs/hls/",
"hls": "https://player.example.com/videojs/hls/"
},
"own": {
"hashes": {},
"baseQ": "?showcv=true&title=[ReplaceWithVideoTitle]",
"base": "https://player.example.com/5centscdn/auto/skin1/sampleplayer1/",
"hls": "https://player.example.com/5centscdn/auto/skin1/sampleplayer1/"
}
},
"tokenized": {}
},
"s3details": {
"relid": 12345,
"type": "push",
"projectid": "abc123def456789012345678abcdef12",
"token": "sample-access-token",
"projectid2": "def456abc789012345678901abcdef34",
"token2": "sample-access-token",
"active": "1",
"updated_at": "2023-01-21 08:00:00",
"last_modified": ""
},
"transcodefile": {
"profiles": [
""
],
"emails": [
""
],
"webhooks": [
""
]
},
"server": {
"code": 206,
"name": "Singapore",
"country": "SouthEast Asia",
"meta": {
"uploadPort": "21",
"uploadHost": "upload.example.com"
}
},
"hasEdgeRules": true
}
]
}
/zones/http/push
Target server for requests. Edit to use your own host.
API key (sent in header)
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Query Parameters
Responses
Status of the API response.
Array of zone objects returned in this page of results.
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 the optimizer feature is enabled for this zone
Comma-separated list of CNAMEs associated with this zone
Count of edge rules associated with this zone
Whether rclone integration is enabled for this zone
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
Whether plain HTTP delivery is enabled (Y/N)
Whether HTTP/2 is enabled (Y/N)
Whether HTTP to HTTPS redirect is enabled (Y/N)
SSL mode identifier for this zone
SSL certificate identifier, or empty if using default
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
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)
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
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
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
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 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)
Numeric identifier of the default behavior set
Custom host header sent to the origin server
Primary object storage hostname
Backup object storage hostname
OpenStack authentication URL for object storage
OpenStack Horizon dashboard URL
Array of purge endpoint URLs for this zone
JSON-encoded purge URL string
Base64-encoded authentication token for CDN service calls
URL to retrieve info about this zone from the CDN service
URL to list files in this zone from the CDN service
URL to retrieve a raw file listing from the CDN service
URL to list transcoded files from the CDN service
URL to add a file via the CDN service
URL to edit a file via the CDN service
URL to delete a file via the CDN service
URL to upload files via the CDN service
URL to retrieve the playlist via the CDN service
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)
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
Related zone identifier
Zone type identifier (push or pull)
Primary object storage project identifier
Primary object storage access token
Secondary object storage project identifier
Secondary object storage access token
Whether this security rule is currently active (Y/N)
ISO 8601 timestamp of the most recent update
ISO 8601 timestamp of last modification to storage details
Array of transcoding profile IDs applied to uploaded files
Array of email addresses notified after transcoding completes
Array of webhook URLs called after transcoding completes
HTTP status code
Human-readable name of the resource
Two-letter ISO country code or country name
FTP upload port number for this server
FTP upload hostname for this server
Whether this zone has any edge rules configured