Suspend CDN Resource
To suspend a specific CDN resource, use the following request:
PUT /cdn_resources/:resource_id/suspend.xml
PUT /cdn_resources/:resource_id/suspend.json
XML Request Example
curl -i -X PUT -u user:userpass --url http://onapp.test/cdn_resources/34/suspend.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'
JSON Request Example
curl -i -X PUT -u user:userpass --url http://onapp.test/cdn_resources/34/suspend.json -H 'Accept: application/json' -H 'Content-type: application/json'
Where:
resource_id - the ID of the CDN resource which you wish to suspend.
You will get a 204 status response on success, and 404 if there is no such CDN Resource with a requested ID or you entered incorrect ID.