Skip to content
Domain SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Domain lifecycle

How a custom domain moves from add through DNS setup, verification, and waitUntilActive to remove, and how the SDK handles repeat adds and conflicts.

The lifecycle is add → configure returned DNS → verify when supported → refresh or waitUntilActive → remove.

add is safely idempotent when the adapter can prove the hostname already belongs to the configured project, zone, environment, or service. It throws DOMAIN_CONFLICT rather than moving a hostname owned elsewhere. remove succeeds when the hostname is already absent and never removes a resource from another configured scope.

Your application owns tenant authorization and persistence. The provider owns live domain state.

Read next: Status model and add and remove domains.

Last updated on