smart_shield
Creates, updates, deletes, gets or lists a smart_shield resource.
Overview
| Name | smart_shield |
| Type | Resource |
| Id | cloudflare.zones.smart_shield |
Fields
The following fields are returned by SELECT queries:
- list
Smart Shield Settings response.
| Name | Datatype | Description |
|---|---|---|
cache_reserve | object | |
healthchecks_count | integer | The total number of health checks associated with the zone. |
regional_tiered_cache | object | |
smart_routing | object | |
smart_tiered_cache | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | Retrieve Smart Shield Settings. | |
smart_shield_patch_settings | update | zone_id | Set 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.
| Name | Datatype | Description |
|---|---|---|
zone_id | string | The Cloudflare zone ID. |
SELECT examples
- list
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
- smart_shield_patch_settings
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;