List Cached Files
Retrieve a list of all cached files.
Example Request
$ curl https://api.nuevocloud.com/1.0/zones/www.example.com/cache -u nc_apikey:
Example Response
[
"/example/file.jpg",
"/example/file2.jpg"
]
Search Cached Files
Retrieve a list of cached files that contain the search string in the file name or path.
Example Request
$ curl https://api.nuevocloud.com/1.0/zones/www.example.com/cache?search=example -u nc_apikey:
Example Response
[
"/example/file.jpg",
"/example/file2.jpg"
]
Purge a Cached File
Sends a purge request to the edge for the specified file(s).
Example Request
$ curl -X DELETE -d '[ "file.jpg", "file2.jpg" ]' https://api.nuevocloud.com/1.0/zones/www.example.com/cache -u nc_apikey:
Example Response
{
"status": "ok"
}
Purge All Cached Files
A purge all request empties the cache for the zone. Note the wildcard used here is a special case.
Example Request
$ curl -X DELETE -d '[ "*" ]' https://api.nuevocloud.com/1.0/zones/www.example.com/cache -u nc_apikey:
Example Response
{
"status": "ok"
}