Skip to main content

configurations

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

Overview

Nameconfigurations
TypeResource
Idcloudflare.api_gateway.configurations

Fields

The following fields are returned by SELECT queries:

Retrieve information about specific configuration properties response

NameDatatypeDescription
namestringThe name of the characteristic field, i.e., the header or cookie name. (example: authorization)
typestringThe type of characteristic. (header, cookie) (example: header)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idnormalizeGets the current API Shield configuration settings for a zone, including validation behavior and enforcement mode.
updatereplacezone_id, auth_id_characteristicsnormalizeUpdates API Shield configuration settings for a zone. Can modify validation strictness, enforcement mode, and other global 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.
normalizebooleanEnsures that the configuration is written or retrieved in normalized fashion

SELECT examples

Gets the current API Shield configuration settings for a zone, including validation behavior and enforcement mode.

SELECT
name,
type
FROM cloudflare.api_gateway.configurations
WHERE zone_id = '{{ zone_id }}' -- required
AND normalize = '{{ normalize }}'
;

REPLACE examples

Updates API Shield configuration settings for a zone. Can modify validation strictness, enforcement mode, and other global settings.

REPLACE cloudflare.api_gateway.configurations
SET
auth_id_characteristics = '{{ auth_id_characteristics }}'
WHERE
zone_id = '{{ zone_id }}' --required
AND auth_id_characteristics = '{{ auth_id_characteristics }}' --required
AND normalize = {{ normalize}}
RETURNING
errors,
messages,
result,
success;