cfd_tunnel_token
Creates, updates, deletes, gets or lists a cfd_tunnel_token resource.
Overview
| Name | cfd_tunnel_token |
| Type | Resource |
| Id | cloudflare.zero_trust.cfd_tunnel_token |
Fields
The following fields are returned by SELECT queries:
- list
Get a Cloudflare Tunnel token response
| Name | Datatype | Description |
|---|---|---|
errors | array | |
messages | array | |
result | string | The Tunnel Token is used as a mechanism to authenticate the operation of a tunnel. (example: eyJhIjoiNWFiNGU5Z...) |
success | boolean | Whether the API call was successful (true) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id, tunnel_id | Gets the token used to associate cloudflared with a specific tunnel. |
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. |
tunnel_id | string | The Cloudflare Tunnel ID. |
SELECT examples
- list
Gets the token used to associate cloudflared with a specific tunnel.
SELECT
errors,
messages,
result,
success
FROM cloudflare.zero_trust.cfd_tunnel_token
WHERE account_id = '{{ account_id }}' -- required
AND tunnel_id = '{{ tunnel_id }}' -- required
;