spad.site-deletion-delete-parallel-2 ​
Delete infrastructure (OAC)
Wrapper step for deleting cluster resources.
Updates infrastructure status to "deleting_clusters" before calling the atomic delete workflows.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | UUID of the SPAD site |
organization_uuid | string | Yes | — | Organization UUID |
cloud_connection_uuid | string | Yes | — | Cloud connection UUID |
oac_ref | string | No | — | CloudFront OAC id (provider-native) |
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 |
|---|---|---|---|---|
infrastructure_deleted | boolean | Yes | — | True once the edge (OAC) deletion attempt has succeeded or been absent |
oac_deleted | boolean | Yes | — | True when the OAC was deleted or treated as not-found |
failure_reason | string | No | — | Reason recorded on the failure path |
workflow_run_id | string | No | — | — |
site_uuid | string | No | — | UUID of the SPAD site |
organization_uuid | string | No | — | Organization UUID |
cloud_connection_uuid | string | No | — | Cloud connection UUID |
oac_ref | string | No | — | CloudFront OAC id (provider-native) |
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 |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | run | Edge deletion step accepted |
run | No | No | — | complete | Deleting CloudFront OAC |
completed | No | Yes | Yes | — | Edge deletion completed |
failed | No | Yes | No | — | Edge deletion failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | run | run | Start edge deletion |
run | complete | completed | Mark edge deletion completed |
* (any state) | fail | failed | Mark edge deletion failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.site-deletion-delete-parallel-2",
"initial_data": {
"site_uuid": "value",
"organization_uuid": "value",
"cloud_connection_uuid": "value"
}
}