Skip to main content

fallback_domains

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

Overview

Namefallback_domains
TypeResource
Idcloudflare.zero_trust.fallback_domains

Fields

The following fields are returned by SELECT queries:

Get the Local Domain Fallback list for a device settings profile response.

NameDatatypeDescription
descriptionstringA description of the fallback domain, displayed in the client UI. (example: Domain bypass for local development)
dns_serverarrayA list of IP addresses to handle domain resolution.
suffixstringThe domain suffix to match when resolving locally. (example: example.com)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_policyselectpolicy_id, account_idFetches the list of domains to bypass Gateway DNS resolution from a specified device settings profile. These domains will use the specified local DNS resolver instead.
list_by_accountselectaccount_idFetches a list of domains to bypass Gateway DNS resolution. These domains will use the specified local DNS resolver instead.
set_by_policyreplacepolicy_id, account_idSets the list of domains to bypass Gateway DNS resolution. These domains will use the specified local DNS resolver instead. This will only apply to the specified device settings profile.
setreplaceaccount_idSets the list of domains to bypass Gateway DNS resolution. These domains will use the specified local DNS resolver instead.

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.
policy_idstringThe Access policy ID.

SELECT examples

Fetches the list of domains to bypass Gateway DNS resolution from a specified device settings profile. These domains will use the specified local DNS resolver instead.

SELECT
description,
dns_server,
suffix
FROM cloudflare.zero_trust.fallback_domains
WHERE policy_id = '{{ policy_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;

REPLACE examples

Sets the list of domains to bypass Gateway DNS resolution. These domains will use the specified local DNS resolver instead. This will only apply to the specified device settings profile.

REPLACE cloudflare.zero_trust.fallback_domains
SET
-- No updatable properties
WHERE
policy_id = '{{ policy_id }}' --required
AND account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
result_info,
success;