Skip to main content

cfd_tunnel

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

Overview

Namecfd_tunnel
TypeResource
Idcloudflare.zero_trust.cfd_tunnel

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
delete_connectionsexecaccount_id, tunnel_idclient_idRemoves a connection (aka Cloudflare Tunnel Connector) from a Cloudflare Tunnel independently of its current state. If no connector id (client_id) is provided all connectors will be removed. We recommend running this command after rotating tokens.
create_managementexecaccount_id, tunnel_id, resourcesGets a management token used to access the management resources (i.e. Streaming Logs) of a 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.
client_idstring (uuid)

Lifecycle Methods

Removes a connection (aka Cloudflare Tunnel Connector) from a Cloudflare Tunnel independently of its current state. If no connector id (client_id) is provided all connectors will be removed. We recommend running this command after rotating tokens.

EXEC cloudflare.zero_trust.cfd_tunnel.delete_connections
@account_id='{{ account_id }}' --required,
@tunnel_id='{{ tunnel_id }}' --required,
@client_id='{{ client_id }}'
;