Get Cache Reserve Clear
GET/zones/{zone_id}/smart_shield/cache_reserve_clear
You can use Cache Reserve Clear to clear your Cache Reserve, but you must first disable Cache Reserve. In most cases, this will be accomplished within 24 hours. You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind that you cannot undo or cancel this operation.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Get Cache Reserve Clear
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/smart_shield/cache_reserve_clear \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [],
"messages": [],
"result": {
"end_ts": "2023-10-02T12:00:00.12345Z",
"id": "cache_reserve_clear",
"start_ts": "2023-10-02T10:00:00.12345Z",
"state": "Completed"
},
"success": true
}{
"errors": [],
"messages": [],
"result": {
"id": "cache_reserve_clear",
"start_ts": "2023-10-02T10:00:00.12345Z",
"state": "In-progress"
},
"success": true
}{
"errors": [
{
"code": 1142,
"message": "Unable to retrieve cache_reserve_clear setting value. The zone setting does not exist because you never performed a Cache Reserve Clear operation."
}
],
"messages": [],
"result": null,
"success": false
}Returns Examples
{
"errors": [],
"messages": [],
"result": {
"end_ts": "2023-10-02T12:00:00.12345Z",
"id": "cache_reserve_clear",
"start_ts": "2023-10-02T10:00:00.12345Z",
"state": "Completed"
},
"success": true
}{
"errors": [],
"messages": [],
"result": {
"id": "cache_reserve_clear",
"start_ts": "2023-10-02T10:00:00.12345Z",
"state": "In-progress"
},
"success": true
}{
"errors": [
{
"code": 1142,
"message": "Unable to retrieve cache_reserve_clear setting value. The zone setting does not exist because you never performed a Cache Reserve Clear operation."
}
],
"messages": [],
"result": null,
"success": false
}