Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idcloudflare.zero_trust.settings

Fields

The following fields are returned by SELECT queries:

List mTLS hostname settings response

NameDatatypeDescription
china_networkbooleanRequest client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
client_certificate_forwardingbooleanClient Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
hostnamestringThe hostname that these settings apply to. (example: admin.example.com)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idList all mTLS hostname settings for this account or zone.
edit_by_accountupdateapp_id, account_idUpdates Access application settings.
edit_by_zoneupdateapp_id, zone_idUpdates Access application settings.
update_by_accountreplaceapp_id, account_idUpdates Access application settings.
update_by_zonereplaceapp_id, zone_idUpdates Access application settings.
put_accounts_account_id_access_certificates_settingsreplaceaccount_id, settingsUpdates an mTLS certificate's hostname settings.
put_zones_zone_id_access_certificates_settingsreplacezone_id, settingsUpdates an mTLS certificate's hostname 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
account_idstringThe Cloudflare account ID.
app_idstringThe Access application ID.
zone_idstringThe Cloudflare zone ID.

SELECT examples

List all mTLS hostname settings for this account or zone.

SELECT
china_network,
client_certificate_forwarding,
hostname
FROM cloudflare.zero_trust.settings
WHERE zone_id = '{{ zone_id }}' -- required
;

UPDATE examples

Updates Access application settings.

UPDATE cloudflare.zero_trust.settings
SET
allow_iframe = {{ allow_iframe }},
skip_interstitial = {{ skip_interstitial }}
WHERE
app_id = '{{ app_id }}' --required
AND account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;

REPLACE examples

Updates Access application settings.

REPLACE cloudflare.zero_trust.settings
SET
allow_iframe = {{ allow_iframe }},
skip_interstitial = {{ skip_interstitial }}
WHERE
app_id = '{{ app_id }}' --required
AND account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;