API Request to Purge CDN Data

The following document will give the API details of the CDN purge request. 

Purpose 

The purge API helps the users automatically delete the obsolete/cached data which is present in the CDN. 

API Details 

To access this API, customers must authenticate using the Token-Based Authentication method.

Click here to learn about the authentication process through login API.

 

Purge Request 

Method POST 
Endpoint https://tas.indusface.com/wafportal/rest/siem/v1/cdn/requestPurge 
Request Headers “Content-Type”:” application/json” 

Parameters: 

PurgeUrl  A Url/endpoint for which purge is required 
websiteName Name of the website 

Example Request and Response: 

Purge All: To purge all the endpoints of a website, use ‘*’ symbol after the top-level domain. 

(or)

Purge All: To purge all the endpoints of a website, use “ALL” for purgeUrl field in the request body. (“purgeUrl”: “ALL”) 

 

Check Purge Status

Method POST 
Endpoint https://stagingtas.indusface.com/wafportal/rest/siem/v1/cdn/getPurgeStatus 
Request Headers “Content-Type”:” application/json” 

Parameters: 

purgeID An ID which is created after successful request purge operation. 
websiteName Name of the website 

Possible Responses

200 - Success 

401 - Unauthorized request 

 

Was this helpful?