Skip to main content

doh

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

Overview​

Namedoh
TypeResource
Idcloudflare.zero_trust.doh

Fields​

The following fields are returned by SELECT queries:

Get your Zero Trust organization DoH settings response

NameDatatypeDescription
idstringUUID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
namestringThe name of the service token. (example: CI/CD token)
client_idstringThe Client ID for the service token. Access will check for this value in the CF-Access-Client-ID request header. (example: 88bf3b6d86161464f6509f7219099e57.access.example.com)
created_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
doh_jwt_durationstringThe duration the DoH JWT is valid for. Must be in the format 300ms or 2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. Note that the maximum duration for this setting is the same as the key rotation period on the account.
durationstringThe duration for how long the service token will be valid. Must be in the format 300ms or 2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). (default: 8760h, example: 60m)
expires_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
last_seen_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
updated_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idReturns the DoH settings for your Zero Trust organization.
updatereplaceaccount_idUpdates the DoH settings for your Zero Trust organization.

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​

Returns the DoH settings for your Zero Trust organization.

SELECT
id,
name,
client_id,
created_at,
doh_jwt_duration,
duration,
expires_at,
last_seen_at,
updated_at
FROM cloudflare.zero_trust.doh
WHERE account_id = '{{ account_id }}' -- required
;

REPLACE examples​

Updates the DoH settings for your Zero Trust organization.

REPLACE cloudflare.zero_trust.doh
SET
doh_jwt_duration = '{{ doh_jwt_duration }}',
service_token_id = '{{ service_token_id }}'
WHERE
account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;