apphost.site.domain-detach ​
Detach a custom hostname from a hosted site: drop the CloudFront alias and KVS routing key, then delete the hosted_site_domain row.
Remove a custom hostname alias, KVS key, and control-plane row.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-apphost |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | uuid | Yes | — | HostedSite that owns the hostname |
domain_uuid | uuid | Yes | — | hosted_site_domain uuid to detach |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | uuid | No | — | — |
domain_uuid | uuid | No | — | — |
hostname | string | No | — | — |
detached | boolean | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | json | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
detached | SUCCESS | Custom hostname removed from CloudFront, KVS, and the control plane | site_uuid, hostname |
failed | FAILURE | Apphost workflow failed | failure_reason |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "apphost.site.domain-detach",
"initial_data": {
"site_uuid": "value",
"domain_uuid": "value"
}
}