Modify CDN Edge Group

To modify CDN edge group, use the following request:

POST /edge_groups/:edge_group_id/modify.xml
POST /edge_groups/:edge_group_id/modify.json

XML Request Example

curl -i -X POST -u user:userpass http://onapp.test/edge_groups/1/modify.xml -d '<locations type="array"><location>123</location><location>123</location><location>123</location></locations>' -H 'Accept:application/xml' -H 'Content-type:application/xml'

JSON Request Example

curl -i -X POST -u user:userpass http://onapp.test/edge_groups/1/modify.json -d '{"locations":["123","456","789"]}' -H 'Accept:application/json' -H 'Content-type:application/json'

Where you have to specify IDs of locations you want to see eventually in the required CDN resource (at least one ID is required).

You can retrieve the list of location IDs with the Get CDN Edge Group Details API call.