Skip to main content

gateway

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

Overview

Namegateway
TypeResource
Idcloudflare.zero_trust.gateway

Fields

The following fields are returned by SELECT queries:

Zero Trust account information response.

NameDatatypeDescription
idstringSpecify the Cloudflare account ID. (example: 699d98642c564d2e855e9661899b7252)
provider_namestringSpecify the provider name (usually Cloudflare). (example: Cloudflare)
gateway_tagstringSpecify the gateway internal ID. (example: f174e90afafe4643bbbc4a0ed4fc8415)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idRetrieve information about the current Zero Trust account.
createinsertaccount_idCreate a Zero Trust account for an existing Cloudflare account.
update_configurationexecaccount_idUpdate (PATCH) a single subcollection of settings such as antivirus, tls_decrypt, activity_log, block_page, browser_isolation, fips, body_scanning, or certificate without updating the entire configuration object. This endpoint returns an error if any settings collection lacks proper configuration.

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

Retrieve information about the current Zero Trust account.

SELECT
id,
provider_name,
gateway_tag
FROM cloudflare.zero_trust.gateway
WHERE account_id = '{{ account_id }}' -- required
;

INSERT examples

Create a Zero Trust account for an existing Cloudflare account.

INSERT INTO cloudflare.zero_trust.gateway (
account_id
)
SELECT
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

Lifecycle Methods

Update (PATCH) a single subcollection of settings such as antivirus, tls_decrypt, activity_log, block_page, browser_isolation, fips, body_scanning, or certificate without updating the entire configuration object. This endpoint returns an error if any settings collection lacks proper configuration.

EXEC cloudflare.zero_trust.gateway.update_configuration
@account_id='{{ account_id }}' --required
@@json=
'{
"settings": "{{ settings }}"
}'
;