Get zone configuration

Returns a JSON object containing the current configuration settings of the CDN zone.

Endpoint

https://www.pushrcdn.com/api/v3/zones/get

Methods

POST

Parameters

ParameterTypeDescription
zone_idintegerThe ID of the CDN zone  


Headers

FieldTypeDescription
APIKEYstringYour account API key

Example 

 curl -d "zone_id=12542" \
 -H "Accept: application/json" \
 -H "APIKEY: c45ed960ac1c3d12c1d570a869df8c79c473003cbjk" \
 -X POST "https://www.pushrcdn.com/api/v3/zones/get"

Response

The zone JSON object contains all settings of the CDN zone

 {
   "zone":[
      {
         "zone_id":"12542",
         "zone_name":"my zone",
         "zone_pull":"1",
         "zone_storage":"50",
         "zone_active":"0",
         "zone_limitconn":"0",
         "zone_limitrate":"0",
         "zone_ipblock":"0",
         "zone_hotlink_referer":"0",
         "zone_hotlink_tokens":"0",
         "zone_cors":"0",
         "zone_gzip":"0",
         "zone_ignore_headers":"0",
         "zone_ignore_ranges":"0",
         "zone_ignore_strings":"1",
         "zone_cache_revalidate":"1",
         "zone_data_cap":"0",
         "zone_cache_expiration":"10",
         "zone_cache_ttl":"10",
         "zone_blocked_countries":null
      }
   ]
}
ParameterTypeValuesDescription
zone_pullinteger0, 11 if zone is of pull type. 0 if push.
zone_storageinteger0 - ∞SFS storage usage (push zones only) in bytes.
zone_activeinteger0, 11 if zone is active. 0 if deactivated.
zone_limitconninteger0, 11 if connections per IP limit is set.
zone_limitrateinteger0, 11 if speed per connection limit is set.
zone_ipblockinteger0, 11 if blocking by IP address is set.
zone_hotlink_refererinteger0, 11 if domain lock is set.
zone_hotlink_tokensinteger0, 11 if secure tokens are enabled.
zone_corsinteger0, 11 if CORS are set.
zone_gzipinteger0, 11 if Gzip compression is enabled.
zone_ignore_headersinteger0, 11 if origin's cache-control headers should be ignored.
zone_ignore_rangesinteger0, 11 if "Large files and video" optimization is enabled.
zone_ignore_stringsinteger0, 11 if query strings in URLs should be ignored.
zone_cache_revalidateinteger0, 11 if cache revalidation (RFC) is enabled.
zone_data_capinteger0, 11 if data cap is enabled.
zone_cache_expirationinteger1 - 10Edge cache expiration. See below.
zone_cache_ttlinteger1 - 10Browser cache expiration. See below.
zone_blocked_countriesstringISO3166 code, NULLCountry code(s) of blocked countries. NULL if disabled.

The zone_cache_expiration and zone_cache_ttl parameters contain values between 1 and 10. They corrspond to different cache expiration times as follows:

ValueDescription
11 second
230 seconds
31 minute
45 minutes
51 hour
612 hours
71 day
815 days
930 days
10Maximum