cfd_tunnel
Creates, updates, deletes, gets or lists a cfd_tunnel resource.
Overview
| Name | cfd_tunnel |
| Type | Resource |
| Id | cloudflare.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
delete_connections | exec | account_id, tunnel_id | client_id | 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. |
create_management | exec | account_id, tunnel_id, resources | Gets 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
tunnel_id | string | The Cloudflare Tunnel ID. |
client_id | string (uuid) |
Lifecycle Methods
- delete_connections
- create_management
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 }}'
;
Gets a management token used to access the management resources (i.e. Streaming Logs) of a tunnel.
EXEC cloudflare.zero_trust.cfd_tunnel.create_management
@account_id='{{ account_id }}' --required,
@tunnel_id='{{ tunnel_id }}' --required
@@json=
'{
"resources": "{{ resources }}"
}'
;