deploy.static.teardown ​
Tear down a static deploy: delete published objects under bucket/prefix and (if identifiers given) the DNS record. Idempotent.
Delete published static objects (and optional DNS record) for a static deploy.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-deployments |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
deployment_target_uuid | uuid | No | — | Deployment target (for correlation). |
connection_uuid | uuid | Yes | — | GCP connection UUID hosting the bucket. |
project_id | string | No | — | GCP project override. |
bucket | string | Yes | — | GCS bucket of the static publish. |
prefix | string | Yes | — | Object prefix to delete. |
max_delete_count | integer | No | — | Safety cap on object deletes. |
dns_zone_id | string | No | — | Cloudflare zone id; required to also delete the DNS record. |
dns_record_id | string | No | — | Cloudflare DNS record id created by the bind. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID. |
deployment_target_uuid | uuid | No | — | Deployment target UUID. |
bucket | string | No | — | GCS bucket. |
prefix | string | No | — | Deleted prefix. |
connection_uuid | uuid | No | — | GCP connection UUID (carried through). |
project_id | string | No | — | GCP project (carried through). |
max_delete_count | integer | No | — | Object delete cap (carried through). |
dns_zone_id | string | No | — | Cloudflare zone id (carried through). |
dns_record_id | string | No | — | Cloudflare DNS record id (carried through). |
workflow_run_uuid | uuid | No | — | DAG run UUID stamped by the engine. |
delete_objects | json | No | — | Result of the gcp.storage.objects.delete-prefix step. |
delete_dns_record | json | No | — | Result of the cloudflare.dns.delete_record step (when identifiers set). |
status | string | No | — | Teardown status. |
failure_reason | string | No | — | Engine failure reason. |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_step | json | No | — | Failed DAG step envelope. |
failed_layer | json | No | — | Failed DAG layer envelope. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | teardown_static | gcp.storage.objects.delete-prefix, cloudflare.dns.delete_record | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
gcp.storage.objects.delete-prefix | delete_objects |
cloudflare.dns.delete_record | delete_dns_record |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "deploy.static.teardown",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"bucket": "value",
"prefix": "value"
}
}