Get List of CDN Locations for Location Group

To get an array of CDN locations set up within your cloud for a particular Location group, use the following request:

GET /settings/location_groups/location_group_id/cdn_locations.xml
GET /settings/location_groups/location_group_id/cdn_locations.json

XML Output example

Server: Apache/2.2.15 (CentOS)
X-UA-Compatible: IE=Edge,chrome=1
ETag: "2fed9ea2099e3dda286610d9197cedc3"
Cache-Control: must-revalidate, private, max-age=0
X-Request-Id: 2673aaf0dcffdbc583bc688f40186675
X-Runtime: 0.129537
X-Rack-Cache: miss
X-Powered-By: Phusion Passenger 4.0.35
Set-Cookie: _session_id=5813abb313cf4219a6c0fcf3db9f4dc6; path=/; HttpOnly
Status: 200 OK
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json; charset=utf-8
<cdn_locations type="array">
<created_at type="datetime">2014-09-22T16:30:36+03:00</created_at>
<id type="integer">1</id>
<location_group_id type="integer">1</location_group_id>
<updated_at type="datetime">2014-09-23T16:46:35+03:00</updated_at>
<cdn_reference type="integer">331</cdn_reference>


city - the CDN location city

country - the CDN location country

created_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

id - the CDN location ID

updated_at - the date when the location group was updated in the [YYYY][MM][DD]T[hh][mm][ss]Z format

cdn_reference - the location ID in OnApp Dashboard