Skip to main content

default

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

Overview

Namedefault
TypeResource
Idcloudflare.zaraz.default

Fields

The following fields are returned by SELECT queries:

Get Zaraz default configuration response.

NameDatatypeDescription
analyticsobjectCloudflare Monitoring settings.
consentobjectConsent management configuration.
dataLayerbooleanData layer compatibility mode enabled.
debugKeystringThe key for Zaraz debug mode.
historyChangebooleanSingle Page Application support enabled.
settingsobjectGeneral Zaraz settings.
toolsobjectTools set up under Zaraz configuration, where key is the alpha-numeric tool ID and value is the tool configuration object.
triggersobjectTriggers set up under Zaraz configuration, where key is the trigger alpha-numeric ID and value is the trigger configuration.
variablesobjectVariables set up under Zaraz configuration, where key is the variable alpha-numeric ID and value is the variable configuration. Values of variables of type secret are not included.
zarazVersionintegerZaraz internal version of the config.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idGets default Zaraz configuration for a zone.

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

Gets default Zaraz configuration for a zone.

SELECT
analytics,
consent,
dataLayer,
debugKey,
historyChange,
settings,
tools,
triggers,
variables,
zarazVersion
FROM cloudflare.zaraz.default
WHERE zone_id = '{{ zone_id }}' -- required
;