Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeAtomic
LibraryApp-apphost
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuiduuidYes—HostedSite that owns the hostname
domain_uuiduuidYes—hosted_site_domain uuid to detach

Output Schema ​

FieldTypeRequiredDefaultDescription
site_uuiduuidNo——
domain_uuiduuidNo——
hostnamestringNo——
detachedbooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
detachedSUCCESSCustom hostname removed from CloudFront, KVS, and the control planesite_uuid, hostname
failedFAILUREApphost workflow failedfailure_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"
  }
}