To get an array of location groups set up within your cloud, use the following request:

GET /settings/location_groups.xml
GET /settings/location_groups.json


XML Output example

<location_groups type="array">

  <location_group>

    <city>Adrar</city>

    <country>Algeria</country>

    <created_at type="datetime">2013-06-10T15:35:33+03:00</created_at>

    <id type="integer">1</id>

    <is_deleted type="boolean">false</is_deleted>

    <updated_at type="datetime">2013-06-10T15:35:33+03:00</updated_at>

    <cdn_reference type="integer">495</cdn_reference>

  </location_group>

  <location_group>

    <city>Lvov</city>

    <country>Ukraine</country>

    <created_at type="datetime">2013-06-10T15:35:34+03:00</created_at>

    <id type="integer">2</id>

    <is_deleted type="boolean">false</is_deleted>

    <updated_at type="datetime">2013-06-10T15:35:34+03:00</updated_at>

    <cdn_reference type="integer">30</cdn_reference>

  </location_group>

</location_groups>

 

Where:

city - the location group city

country - the location group country

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

id - the location group 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