Skip to main content

smart_shield

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

Overview

Namesmart_shield
TypeResource
Idcloudflare.zones.smart_shield

Fields

The following fields are returned by SELECT queries:

Smart Shield Settings response.

NameDatatypeDescription
cache_reserveobject
healthchecks_countintegerThe total number of health checks associated with the zone.
regional_tiered_cacheobject
smart_routingobject
smart_tiered_cacheobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idRetrieve Smart Shield Settings.
smart_shield_patch_settingsupdatezone_idSet Smart Shield Settings.

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

Retrieve Smart Shield Settings.

SELECT
cache_reserve,
healthchecks_count,
regional_tiered_cache,
smart_routing,
smart_tiered_cache
FROM cloudflare.zones.smart_shield
WHERE zone_id = '{{ zone_id }}' -- required
;

UPDATE examples

Set Smart Shield Settings.

UPDATE cloudflare.zones.smart_shield
SET
cache_reserve = '{{ cache_reserve }}',
regional_tiered_cache = '{{ regional_tiered_cache }}',
smart_routing = '{{ smart_routing }}',
smart_tiered_cache = '{{ smart_tiered_cache }}'
WHERE
zone_id = '{{ zone_id }}' --required
RETURNING
errors,
messages,
result,
success;