cloudflare.tunnel.create ​
Provision a Cloudflare tunnel (create on CF, persist DB, push ingress)
Create + persist + configure a Cloudflare tunnel.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | UUID of the backing Cloudflare CloudConnection |
name | string | Yes | — | Tunnel name |
tunnel_secret | string | No | — | Optional pre-generated tunnel secret |
ingress | list | No | — | Initial ingress rules (DB-owned). PUT to CF after persist. |
warp_routing | dict | No | — | Optional WARP routing config |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | UUID of the backing Cloudflare CloudConnection |
name | string | Yes | — | Tunnel name |
tunnel_secret | string | No | — | Optional pre-generated tunnel secret |
ingress | list | No | — | Initial ingress rules (DB-owned). PUT to CF after persist. |
warp_routing | dict | No | — | Optional WARP routing config |
actor | string | No | — | — |
cf_tunnel_uuid | uuid | No | — | — |
token | string | No | — | — |
cloudflare_tunnel_uuid | uuid | No | — | — |
created_at | string | No | — | — |
persisted_at | string | No | — | — |
configured_at | string | No | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failure_type | string | No | — | Engine-stamped failure category (atomic path) |
failed_action | string | No | — | Engine-stamped action method that raised (atomic path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | create | Inputs accepted |
configuring | No | No | — | complete | Pushing ingress configuration to Cloudflare |
creating | No | No | — | persist | Calling Cloudflare to create tunnel |
persisting | No | No | — | configure | Persisting tunnel row to DB |
completed | No | Yes | Yes | — | Tunnel ready |
failed | No | Yes | No | — | Create failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | create | creating | — |
creating | persist | persisting | — |
persisting | configure | configuring | — |
configuring | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.tunnel.create",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"name": "value"
}
}