Skip to main content

config

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

Overview​

Nameconfig
TypeResource
Idcloudflare.logs.config

Fields​

The following fields are returned by SELECT queries:

Get CMB config response

NameDatatypeDescription
allow_out_of_region_accessbooleanAllow out of region access
regionsstringName of the region. (example: eu)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idGets CMB config.
createinsertaccount_idUpdates CMB config.
deletedeleteaccount_idDeletes CMB config.

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
account_idstringThe Cloudflare account ID.

SELECT examples​

Gets CMB config.

SELECT
allow_out_of_region_access,
regions
FROM cloudflare.logs.config
WHERE account_id = '{{ account_id }}' -- required
;

INSERT examples​

Updates CMB config.

INSERT INTO cloudflare.logs.config (
allow_out_of_region_access,
regions,
account_id
)
SELECT
{{ allow_out_of_region_access }},
'{{ regions }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

DELETE examples​

Deletes CMB config.

DELETE FROM cloudflare.logs.config
WHERE account_id = '{{ account_id }}' --required
;