Skip to main content

cache_reserve

Creates, updates, deletes, gets or lists a cache_reserve resource.

Overview​

Namecache_reserve
TypeResource
Idcloudflare.zones.cache_reserve

Fields​

The following fields are returned by SELECT queries:

Get Cache Reserve Clear response.

NameDatatypeDescription
idstringID of the zone setting. (cache_reserve_clear) (example: cache_reserve_clear)
end_tsstring (date-time)The time that the latest Cache Reserve Clear operation completed. (example: 2023-10-02T12:00:00.12345Z)
modified_onstring (date-time)Last time this setting was modified.
start_tsstring (date-time)The time that the latest Cache Reserve Clear operation started. (example: 2023-10-02T10:00:00.12345Z)
statestringThe current state of the Cache Reserve Clear operation. (In-progress, Completed) (example: In-progress)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_clear_statusselectzone_idYou 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.
start_clearexeczone_idYou 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.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
zone_idstringThe Cloudflare zone ID.

SELECT examples​

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.

SELECT
id,
end_ts,
modified_on,
start_ts,
state
FROM cloudflare.zones.cache_reserve
WHERE zone_id = '{{ zone_id }}' -- required
;

Lifecycle Methods​

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.

EXEC cloudflare.zones.cache_reserve.start_clear
@zone_id='{{ zone_id }}' --required
;