cloudflare.tunnel.add-route ​
Append a route to a Cloudflare tunnel ingress (CF + DB)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloudflare_tunnel_uuid | uuid | Yes | — | — |
hostname | string | Yes | — | Public hostname for the route |
service | string | Yes | — | Internal service URL the tunnel forwards to |
path | string | No | — | Optional path predicate |
origin_request | dict | No | — | Optional origin request overrides |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloudflare_tunnel_uuid | uuid | Yes | — | — |
hostname | string | Yes | — | Public hostname for the route |
service | string | Yes | — | Internal service URL the tunnel forwards to |
path | string | No | — | Optional path predicate |
origin_request | dict | No | — | Optional origin request overrides |
actor | string | No | — | — |
ingress | list | No | — | — |
updated_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 |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | Pending add |
completed | No | Yes | Yes | — | Route appended |
failed | No | Yes | No | — | Add failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.tunnel.add-route",
"initial_data": {
"organization_uuid": "value",
"cloudflare_tunnel_uuid": "value",
"hostname": "value",
"service": "value"
}
}