spad.domain-deletion ​
Removes a custom domain configuration from a SPAD site
Removes a custom domain configuration from a SPAD site.
Input fields: domain_id, site_id, organization_id
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
domain_uuid | string | Yes | — | SpadDomain UUID to remove |
site_uuid | string | Yes | — | SpadSite UUID the domain belongs to |
organization_uuid | string | No | — | Organization UUID that owns the site; inferred from the domain when omitted |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
domain_uuid | string | Yes | — | SpadDomain UUID that was removed |
site_uuid | string | Yes | — | Site UUID the domain belonged to |
organization_uuid | string | Yes | — | Organization UUID that owns the site |
domain_name | string | Yes | — | The custom domain name |
certificate_arn | string | No | — | ACM certificate ARN snapshotted from the domain |
dns_record_ref | string | No | — | DNS record id snapshotted from the domain (provider-native) |
dns_connection_uuid | string | No | — | DNS CloudConnection UUID snapshotted from the domain |
dns_zone_uuid | string | No | — | DnsZone UUID snapshotted from the domain |
cloudfront_distribution_ref | string | No | — | CloudFront distribution id the domain was attached to (provider-native) |
cloud_connection_uuid | string | No | — | AWS CloudConnection UUID used for ACM/CloudFront |
alias_removed | string | No | — | True when the CloudFront alias was removed; 'skipped' when not applicable |
certificate_deleted | string | No | — | True when the ACM certificate was deleted; 'skipped' when not applicable |
dns_deleted | string | No | — | True when the DNS record was deleted; 'skipped' when not applicable |
resources_deleted | list | Yes | — | Accumulated list of resource tags that were deleted |
initiated_at | string | Yes | — | ISO8601 timestamp when the workflow was initiated |
completed_at | string | No | — | ISO8601 timestamp when the workflow reached COMPLETED |
failed_at | string | No | — | ISO8601 timestamp when the workflow reached FAILED |
failure_reason | string | No | — | Reason recorded on the failure path |
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 |
|---|---|---|---|---|---|
initiated | Yes | No | — | remove_cloudfront_alias | — |
deleting_certificate | No | No | — | delete_dns_record | — |
deleting_dns | No | No | — | complete | — |
removing_alias | No | No | — | delete_certificate | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | remove_cloudfront_alias | removing_alias | — |
removing_alias | delete_certificate | deleting_certificate | — |
deleting_certificate | delete_dns_record | deleting_dns | — |
deleting_dns | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.domain-deletion",
"initial_data": {
"domain_uuid": "value",
"site_uuid": "value"
}
}