Search CDN Edge Groups
To search for a specific CDN Edge Group, use the following request:
GET /edge_groups.xml?q=label
GET /edge_groups.json?q=label
Where you have to specify the Edge Group label.
XML Request Example
curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/edge_groups.xml?q=test
JSON Request Example
curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/edge_groups.json?q=test
The request will search for the Edge Group with the test label.
XML Output Example
<edge_groups type="array"> <edge_group> <created_at type="datetime">2013-08-12T11:39:09+03:00</created_at> <id type="integer">228</id> <label>PItest</label> <updated_at type="datetime">2013-08-12T11:39:09+03:00</updated_at> <cdn_reference type="integer">426776953</cdn_reference> </edge_group> <edge_group> <created_at type="datetime">2013-08-19T14:32:54+03:00</created_at> <id type="integer">232</id> <label>TestPI</label> <updated_at type="datetime">2013-08-19T14:32:54+03:00</updated_at> <cdn_reference type="integer">668633450</cdn_reference> </edge_group> </edge_groups>
Where:
created_at – the date when the edge group was created
id – the resource ID in the database
label – the edge group label
updated_at – the date when the edge group was updated
cdn_reference – the identifier in database