Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeDag
LibraryApp-deployments
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID.
deployment_target_uuiduuidNo—Deployment target (for correlation).
connection_uuiduuidYes—GCP connection UUID hosting the bucket.
project_idstringNo—GCP project override.
bucketstringYes—GCS bucket of the static publish.
prefixstringYes—Object prefix to delete.
max_delete_countintegerNo—Safety cap on object deletes.
dns_zone_idstringNo—Cloudflare zone id; required to also delete the DNS record.
dns_record_idstringNo—Cloudflare DNS record id created by the bind.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo—Organization UUID.
deployment_target_uuiduuidNo—Deployment target UUID.
bucketstringNo—GCS bucket.
prefixstringNo—Deleted prefix.
connection_uuiduuidNo—GCP connection UUID (carried through).
project_idstringNo—GCP project (carried through).
max_delete_countintegerNo—Object delete cap (carried through).
dns_zone_idstringNo—Cloudflare zone id (carried through).
dns_record_idstringNo—Cloudflare DNS record id (carried through).
workflow_run_uuiduuidNo—DAG run UUID stamped by the engine.
delete_objectsjsonNo—Result of the gcp.storage.objects.delete-prefix step.
delete_dns_recordjsonNo—Result of the cloudflare.dns.delete_record step (when identifiers set).
statusstringNo—Teardown status.
failure_reasonstringNo—Engine failure reason.
failure_typestringNo——
failed_actionstringNo——
failed_stepjsonNo—Failed DAG step envelope.
failed_layerjsonNo—Failed DAG layer envelope.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

DAG Layers ​

#LayerStepsCompensation
1teardown_staticgcp.storage.objects.delete-prefix, cloudflare.dns.delete_record—

Execution Flow ​

Sub-workflows ​

Sub-workflowStep name
gcp.storage.objects.delete-prefixdelete_objects
cloudflare.dns.delete_recorddelete_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"
  }
}