gateway_configuration
Creates, updates, deletes, gets or lists a gateway_configuration resource.
Overview
| Name | gateway_configuration |
| Type | Resource |
| Id | cloudflare.zero_trust.gateway_configuration |
Fields
The following fields are returned by SELECT queries:
- list_by_account
Zero Trust account configuration response.
| Name | Datatype | Description |
|---|---|---|
created_at | string (date-time) | (example: 2014-01-01T05:20:00.12345Z) |
settings | object | Specify account settings. |
updated_at | string (date-time) | (example: 2014-01-01T05:20:00.12345Z) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_account | select | account_id | Retrieve the current Zero Trust account configuration. | |
update_by_account | replace | account_id | Update the current Zero Trust account 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
SELECT examples
- list_by_account
Retrieve the current Zero Trust account configuration.
SELECT
created_at,
settings,
updated_at
FROM cloudflare.zero_trust.gateway_configuration
WHERE account_id = '{{ account_id }}' -- required
;
REPLACE examples
- update_by_account
Update the current Zero Trust account configuration.
REPLACE cloudflare.zero_trust.gateway_configuration
SET
settings = '{{ settings }}'
WHERE
account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;