Skip to content
Pre-release. HostCraft is in testing and not yet for sale. These docs describe the current build and may change. Join the waitlist to hear when it launches.

Domain API

Source: daemon/proto/hostcraft/v1/domain.proto

DomainService manages the domains attached to accounts. REST: /api/v1/domains.

Method REST route Permission Streaming
CreateDomain POST /api/v1/domains DomainCreate unary
ListDomains GET /api/v1/domains DomainRead unary
GetDomain GET /api/v1/domains/{id} DomainRead unary
DeleteDomain DELETE /api/v1/domains/{id} DomainDelete unary

/hostcraft.v1.DomainService/CreateDomain

/hostcraft.v1.DomainService/ListDomains

/hostcraft.v1.DomainService/GetDomain

DeleteDomain needs a freshly re-authenticated session over REST; over gRPC it is available to the local root principal only.

/hostcraft.v1.DomainService/DeleteDomain

Field Type Number Description
account_id string 1 defaults to the caller's account
fqdn string 2 -
kind string 3 primary (default) | addon | parked
aliases_for string 4 parked: the domain id this one aliases
document_root string 5 -
dns_managed bool 6 -
Field Type Number Description
domain Domain 1 -
workflow_id string 2 -
Field Type Number Description
id string 1 -
keep_files bool 2 -
Field Type Number Description
id string 1 -
account_id string 2 -
fqdn string 3 -
kind string 4 primary | addon | parked
document_root string 5 -
dns_managed bool 6 -
ssl_enabled bool 7 -
created_at google.protobuf.Timestamp 8 -
Field Type Number Description
id string 1 -
Field Type Number Description
account_id string 1 -
Field Type Number Description
domains repeated Domain 1 -

WorkflowAccepted is the body of every 202 response that only starts a workflow saga. Follow progress with WorkflowService.StreamWorkflow.

Field Type Number Description
workflow_id string 1 -