cloudflare.pages.sync
Reconcile persisted Cloudflare Pages project state with the live provider — upsert projects and mark drift.
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 | No | — | Limit sync to one project; default all projects for the connection. |
prune_missing | boolean | No | — | Soft-delete persisted projects no longer present on the provider; default false. |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
connection_uuid | uuid | Yes | — | Cloudflare CloudConnection UUID. |
project_name | string | No | — | Limit sync to one project; default all projects for the connection. |
prune_missing | boolean | No | — | Soft-delete persisted projects no longer present on the provider; default false. |
remote_projects | list | No | — | Scratch: raw provider project listing carried between states. |
synced_count | integer | No | — | Projects upserted. |
pruned_count | integer | No | — | Projects soft-deleted as drift. |
status | string | No | — | Result 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 | — | fetch | Inputs accepted |
fetched | No | No | — | reconcile | Remote projects listed |
failed | No | Yes | No | — | Sync failed |
reconciled | No | Yes | Yes | — | Sync complete |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | fetch | fetched | — |
fetched | reconcile | reconciled | — |
* (any state) | fail | failed | — |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.pages.sync",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value"
}
}