Skip to main content

cfd_tunnel_connections

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

Overview

Namecfd_tunnel_connections
TypeResource
Idcloudflare.zero_trust.cfd_tunnel_connections

Fields

The following fields are returned by SELECT queries:

List Cloudflare Tunnel connections response

NameDatatypeDescription
idstring (uuid)UUID of the Cloudflare Tunnel connection. (example: 1bedc50d-42b3-473c-b108-ff3d10c0d925)
archstringThe cloudflared OS architecture used to establish this connection. (example: linux_amd64)
config_versionintegerThe version of the remote tunnel configuration. Used internally to sync cloudflared with the Zero Trust dashboard.
connsarrayThe Cloudflare Tunnel connections between your origin and Cloudflare's edge.
featuresarrayFeatures enabled for the Cloudflare Tunnel.
run_atstring (date-time)Timestamp of when the tunnel connection was started. (example: 2009-11-10T23:00:00Z)
versionstringThe cloudflared version used to establish this connection. (example: 2022.7.1)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, tunnel_idFetches connection details for a Cloudflare 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
tunnel_idstringThe Cloudflare Tunnel ID.

SELECT examples

Fetches connection details for a Cloudflare Tunnel.

SELECT
id,
arch,
config_version,
conns,
features,
run_at,
version
FROM cloudflare.zero_trust.cfd_tunnel_connections
WHERE account_id = '{{ account_id }}' -- required
AND tunnel_id = '{{ tunnel_id }}' -- required
;