Skip to main content

tokens_verify

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

Overview

Nametokens_verify
TypeResource
Idcloudflare.accounts.tokens_verify

Fields

The following fields are returned by SELECT queries:

Verify Token response

NameDatatypeDescription
idstringToken identifier tag. (example: ed17574386854bf78a67040be0a770b0)
expires_onstring (date-time)The expiration time on or after which the JWT MUST NOT be accepted for processing. (example: 2020-01-01T00:00:00Z)
not_beforestring (date-time)The time before which the token MUST NOT be accepted for processing. (example: 2018-07-01T05:20:00Z)
statusstringStatus of the token. (active, disabled, expired) (example: active, x-stainless-terraform-configurability: computed_optional)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idTest whether a token works.

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

Test whether a token works.

SELECT
id,
expires_on,
not_before,
status
FROM cloudflare.accounts.tokens_verify
WHERE account_id = '{{ account_id }}' -- required
;