cloudflare.pages.rollback ​
Roll a Cloudflare Pages project's production traffic back to a previous successful deployment.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
connection_uuid | uuid | Yes | — | Cloudflare CloudConnection UUID. |
project_name | string | Yes | — | Pages project name. |
target_deployment_ref | string | No | — | Deployment ref to roll back to; defaults to the previous successful production deployment. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
connection_uuid | uuid | Yes | — | Cloudflare CloudConnection UUID. |
project_name | string | Yes | — | Pages project name. |
target_deployment_ref | string | No | — | Deployment ref to roll back to; defaults to the previous successful production deployment. |
rolled_back_to | string | No | — | Deployment ref now serving production. |
previous_deployment_ref | string | No | — | Deployment that was rolled away from. |
production_url | string | No | — | Production URL. |
status | string | No | — | Rollback status. |
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 | — | resolve_target | Inputs accepted |
resolved | No | No | — | execute | Rollback target resolved |
rolled_back | No | No | — | persist | Production traffic rolled back |
completed | No | Yes | Yes | — | Rollback complete |
failed | No | Yes | No | — | Rollback failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | resolve_target | resolved | — |
resolved | execute | rolled_back | — |
rolled_back | persist | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.pages.rollback",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"project_name": "value"
}
}