Skip to content
Start here

Connections

List Cloudflare Tunnel connections
client.ZeroTrust.Tunnels.Cloudflared.Connections.Get(ctx, tunnelID, query) (*SinglePage[Client], error)
GET/accounts/{account_id}/cfd_tunnel/{tunnel_id}/connections
Clean up Cloudflare Tunnel connections
client.ZeroTrust.Tunnels.Cloudflared.Connections.Delete(ctx, tunnelID, params) (*TunnelCloudflaredConnectionDeleteResponse, error)
DELETE/accounts/{account_id}/cfd_tunnel/{tunnel_id}/connections
ModelsExpand Collapse
type Client struct{…}

A client (typically cloudflared) that maintains connections to a Cloudflare data center.

ID stringOptional

UUID of the Cloudflare Tunnel connection.

formatuuid
maxLength36
Arch stringOptional

The cloudflared OS architecture used to establish this connection.

ConfigVersion int64Optional

The version of the remote tunnel configuration. Used internally to sync cloudflared with the Zero Trust dashboard.

Conns []ClientConnOptional

The Cloudflare Tunnel connections between your origin and Cloudflare’s edge.

ID stringOptional

UUID of the Cloudflare Tunnel connection.

formatuuid
maxLength36
ClientID stringOptional

UUID of the Cloudflare Tunnel connector.

formatuuid
maxLength36
ClientVersion stringOptional

The cloudflared version used to establish this connection.

ColoName stringOptional

The Cloudflare data center used for this connection.

IsPendingReconnect boolOptional

Cloudflare continues to track connections for several minutes after they disconnect. This is an optimization to improve latency and reliability of reconnecting. If true, the connection has disconnected but is still being tracked. If false, the connection is actively serving traffic.

OpenedAt TimeOptional

Timestamp of when the connection was established.

formatdate-time
OriginIP stringOptional

The public IP address of the host running cloudflared.

UUID stringOptional

UUID of the Cloudflare Tunnel connection.

formatuuid
maxLength36
Features []stringOptional

Features enabled for the Cloudflare Tunnel.

RunAt TimeOptional

Timestamp of when the tunnel connection was started.

formatdate-time
Version stringOptional

The cloudflared version used to establish this connection.