spad.site-deletion-delete-parallel-1-gcp ​
Delete GCP infrastructure (GCS bucket + Cloud CDN stack)
GCP-specific infrastructure deletion step for spad.site-deletion.
Deletes (in order):
- HTTPS forwarding rule + HTTPS target proxy (if provisioned)
- HTTP CDN stack: forwarding rule → HTTP proxy → URL map → backend bucket
- Managed SSL certificate (if provisioned)
- GCS bucket
All sub-deletions are idempotent — 404 is treated as already deleted.
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 | — | GCP cloud connection UUID |
distribution_ref | string | No | — | Unused for GCP (kept for schema parity with AWS step) |
bucket_name | string | No | — | GCS bucket name |
gcp_cdn_forwarding_rule_name | string | No | — | HTTP forwarding-rule name from gcp_cdn resource |
gcp_cdn_target_proxy_name | string | No | — | HTTP target-proxy name from gcp_cdn resource |
gcp_cdn_url_map_name | string | No | — | URL-map name from gcp_cdn resource |
gcp_cdn_backend_bucket_name | string | No | — | Backend-bucket name from gcp_cdn resource |
gcp_https_proxy_name | string | No | — | HTTPS target-proxy name from gcp_https_proxy resource |
gcp_https_forwarding_rule_name | string | No | — | HTTPS forwarding-rule name from gcp_https_forwarding_rule resource |
gcp_managed_cert_name | string | No | — | Managed-cert name from gcp_managed_cert resource |
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 all deletion attempts succeeded or were absent |
bucket_deleted | boolean | Yes | — | True when the GCS bucket was deleted or treated as not-found |
distribution_deleted | boolean | Yes | — | True when the GCP CDN stack was deleted or was absent |
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 | — | GCP cloud connection UUID |
distribution_ref | string | No | — | Unused for GCP (kept for schema parity with AWS step) |
bucket_name | string | No | — | GCS bucket name |
gcp_cdn_forwarding_rule_name | string | No | — | HTTP forwarding-rule name from gcp_cdn resource |
gcp_cdn_target_proxy_name | string | No | — | HTTP target-proxy name from gcp_cdn resource |
gcp_cdn_url_map_name | string | No | — | URL-map name from gcp_cdn resource |
gcp_cdn_backend_bucket_name | string | No | — | Backend-bucket name from gcp_cdn resource |
gcp_https_proxy_name | string | No | — | HTTPS target-proxy name from gcp_https_proxy resource |
gcp_https_forwarding_rule_name | string | No | — | HTTPS forwarding-rule name from gcp_https_forwarding_rule resource |
gcp_managed_cert_name | string | No | — | Managed-cert name from gcp_managed_cert resource |
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 | GCP infrastructure deletion accepted |
run | No | No | — | complete | Deleting GCS bucket and Cloud CDN stack |
completed | No | Yes | Yes | — | GCP infrastructure deletion completed |
failed | No | Yes | No | — | GCP infrastructure deletion failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | run | run | Start GCP infrastructure deletion |
run | complete | completed | Mark GCP infrastructure deletion completed |
* (any state) | fail | failed | Mark GCP infrastructure deletion failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.site-deletion-delete-parallel-1-gcp",
"initial_data": {
"site_uuid": "value",
"organization_uuid": "value",
"cloud_connection_uuid": "value"
}
}