Child pages
  • Assign Location to CDN Edge Group
Skip to end of metadata
Go to start of metadata

CDN edge group details return the array of all locations available to your cloud. Check the ID of the required location and assign it to the group with the following API call:

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

XML Request example

curl -i -X POST -u user:userpass http://onapp.test/edge_groups/1/assign.xml -d '<location>175</location>' -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/assign.json -d '{"location":"175"}' -H 'Accept:application/json' -H 'Content-type:application/json'

Where:

location * - input the ID of the required location

You can retrieve the list of location IDs with the Get CDN Edge Group Details API call.
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels