spad.cloudflare.site-creation-finalize ​
Finalize Cloudflare site creation - mark site active
Mark the site as active once all Cloudflare resources are provisioned.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | SpadSite.id to mark active |
slug | string | No | — | Site slug propagated from input |
cloud_connection_uuid | string | No | — | Cloudflare CloudConnection.id |
r2_bucket_name | string | No | — | Provisioned R2 bucket name |
r2_domain | string | No | — | R2 public endpoint URL |
worker_script_name | string | No | — | Deployed Worker script name |
worker_url | string | No | — | Deployed Worker URL |
deployed_at | string | No | — | ISO8601 timestamp when the Worker was deployed |
organization_uuid | string | No | — | Organization that owns the site |
workflow_run_id | string | No | — | — |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | Site marked active |
status | string | Yes | — | 'active' once the workflow reaches COMPLETED |
completed_at | string | No | — | ISO8601 timestamp when finalize completed |
failed_at | string | No | — | ISO8601 timestamp when the step reached FAILED |
workflow_run_id | string | No | — | — |
slug | string | No | — | Site slug propagated from input |
cloud_connection_uuid | string | No | — | Cloudflare CloudConnection.id |
r2_bucket_name | string | No | — | Provisioned R2 bucket name |
r2_domain | string | No | — | R2 public endpoint URL |
worker_script_name | string | No | — | Deployed Worker script name |
worker_url | string | No | — | Deployed Worker URL |
deployed_at | string | No | — | ISO8601 timestamp when the Worker was deployed |
organization_uuid | string | No | — | Organization that owns the site |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
error | string | No | — | Engine-stamped failure metadata |
error_type | string | No | — | Engine-stamped failure metadata |
failed_at_state | json | No | — | Engine-stamped failure metadata |
failed_layer | json | No | — | Engine-stamped failure metadata |
failed_step | json | No | — | Engine-stamped failure metadata |
failure_reason | string | No | — | Engine-stamped failure metadata |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | Finalize step accepted |
run | No | No | — | complete | Marking site active |
completed | No | Yes | Yes | — | Site marked active |
failed | No | Yes | No | — | Finalize failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | Start finalize |
run | complete | completed | Mark finalize completed |
* (any state) | fail | failed | Mark finalize failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.cloudflare.site-creation-finalize",
"initial_data": {
"site_uuid": "value"
}
}