Skip to main content

speed_brain

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

Overview

Namespeed_brain
TypeResource
Idcloudflare.zones.speed_brain

Fields

The following fields are returned by SELECT queries:

Get Cloudflare Speed Brain setting response.

NameDatatypeDescription
idstringIdentifier of the zone setting. (example: development_mode)
editablebooleanWhether or not this setting can be modified for this zone (based on your Cloudflare plan level). (true, false)
modified_onstring (date-time)last time this setting was modified. (example: 2014-01-01T05:20:00.12345Z)
valuestringWhether the feature is enabled or disabled. Defaults to "on" for Free plans, otherwise defaults to "off". (on, off) (example: on)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idSpeed Brain lets compatible browsers speculate on content which can be prefetched or preloaded, making website navigation faster. Refer to the Cloudflare Speed Brain documentation for more information.
zone_settings_change_speed_brain_settingupdatezone_id, valueSpeed Brain lets compatible browsers speculate on content which can be prefetched or preloaded, making website navigation faster. Refer to the Cloudflare Speed Brain documentation for more information.

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

Speed Brain lets compatible browsers speculate on content which can be prefetched or preloaded, making website navigation faster. Refer to the Cloudflare Speed Brain documentation for more information.

SELECT
id,
editable,
modified_on,
value
FROM cloudflare.zones.speed_brain
WHERE zone_id = '{{ zone_id }}' -- required
;

UPDATE examples

Speed Brain lets compatible browsers speculate on content which can be prefetched or preloaded, making website navigation faster. Refer to the Cloudflare Speed Brain documentation for more information.

UPDATE cloudflare.zones.speed_brain
SET
value = '{{ value }}'
WHERE
zone_id = '{{ zone_id }}' --required
AND value = '{{ value }}' --required
RETURNING
errors,
messages,
result,
success;