List all zones

Lists all CDN zones in the customer account.

Endpoint

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

Methods 

POST

Headers 

FieldTypeDescription
APIKEYstringYour account API key

Example 

curl -H "Accept: application/json" \
	 -H "APIKEY: c45ed960ac1c3d12c1d570a869df8c9c473003jkq" \
	 -X POST "https://www.pushrcdn.com/api/v3/zones/list"

Response

The zones JSON object conatinaing the id and name of all zones in the account is returned.

{
   "zones":[
      {
         "zone_id":"371",
         "zone_name":"PUSHR-WEB"
      }
   ]
}

 

HTTPJSONDescription
200Provided in the example aboveReturns a list with zone_id and zone_name
401{"status":"error","description":"API key wrong or missing"}Wrong or missing API key