Get CDN Edge Group Details
To view the edge group details, use the following request:
GET /edge_groups/:id.xml
GET /edge_groups/:id.json
XML Request Example
curl -i -X GET -u user:userpass http://onapp.test/edge_groups/:edge_group_id.xml?available_locations=true -H 'Accept: application/xml' -H 'Content-type: application/xml'
JSON Request Example
curl -i -X GET -u user:userpass http://onapp.test/edge_groups/:edge_group_id.json -d '{"available_locations":true}' -H 'Accept: application/json' -H 'Content-type:application/json'
Where:
available_locations - set true to view the list of locations available to this edge group; set false to view only the list of assigned locations.
XML Output Example
<edge_group> <created_at type="datetime">2012-04-18T11:33:01+00:00</created_at> <id type="integer">152</id> <label>CDN Edge group name</label> <updated_at type="datetime">2012-04-18T11:33:01+00:00</updated_at> <assigned_locations type="array"> <location> <description/> <id type="integer">146</id> <price type="float">0.3</price> <region>DC</region> <city>washington</city> <latitude type="float">38.895</latitude> <country>US</country> <deleted type="boolean">false</deleted> <longitude type="float">-77.0367</longitude> </location> <location> ... </location> </assigned_locations> <available_locations type="array"> <location> <description>abc</description> <id type="integer">2</id> <price type="float">10.0</price> <region>T2</region> <city>bangor</city> <latitude type="float">54.65</latitude> <country>GB</country> <deleted type="boolean">false</deleted> <longitude type="float">-5.7</longitude> </location> <location> ... </location> </available_locations> </edge_group>
Where:
available_locations – an array of all available locations
assigned_locations – an array of locations, which are assigned to the group
city – city where the edge server is located
region – region where the edge server is located
price – price per GB of sold excess bandwidth
latitude – latitude of the server location
longitude – longitude of the server location
country – country codes related to country_access_policy in ISO 3166-1 alpha-2 format
updated_at – date when the location was updated
deleted – true if the location is deleted; otherwise false
id – the ID of location in the OnApp CP data base
created_at – date, when the location was created
description – optional description of the location