Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. CDN Edge Purge
  2. There are two methods for purging content from the edge: One for purging individual objects, one for purging entire containers.
  3.  
  4. Object Purge
  5.  
  6. To purge a given object "foo.txt" in the container "bar", send the following to the X-CDN-Management-URL:
  7.  
  8. DELETE /v1/<account-id>/bar/foo.txt HTTP/1.1
  9. Host: <X-CDN-Management-URL>
  10. X-Auth-Token: <auth-token>
  11. X-Purge-Email: user@domain.com
  12. That will purge that object from Akamai, and send an email to user@… when it's done. Note, the email address is optional, or can be a comma separated list of them if you want to notify more than one person.
  13.  
  14. Container Purge
  15.  
  16. To purge an entire container named "bar", send the following to the X-CDN-Management-URL:
  17.  
  18. DELETE /v1/<account-id>/bar HTTP/1.1
  19. Host: <X-CDN-Management-URL>
  20. X-Auth-Token: <auth-token>
  21. X-Purge-Email: user@domain.com
  22. That will purge all objects in that container from Akamai, and send an email to user@… when it's done (might take a while, be patient). Note, the email address is optional, or can be a comma separated list of them if you want to notify more than one person.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement