get_preview_domain
Get the DNS zones and public hostname suffix this organisation and cluster are actually allowed to publish on. ALWAYS call this before proposing, promising, or configuring any public hostname, Ingress host, demo URL, or preview URL - hostnames on Ankra are allocated by the platform, never chosen freely. Returns the platform root domain (ankra.cc), the organisation's delegated zone, the selected cluster's delegated subzone and its state, any organisation demo_base_domain override, cluster_domain - the value 'the cluster domain' and ${{ ankra.cluster_domain }} resolve to on this cluster (the organisation's own preview domain when a custom DNS zone on the cluster publishes it, else the delegated subzone; cluster_domain_source says which) - and public_hostname_suffix - the ONLY suffix a hostname on this cluster can end in, because the cluster's external-dns holds a DNS token write-scoped to that subzone alone. A hostname outside the suffix (for example a bare label on the ankra.cc apex) can never be published and will not resolve. When public_hostnames_available is false the workload can only be reached in-cluster. dns_publication reports whether anything actually writes records into the cluster's subzone: publisher_absent means every hostname under that suffix answers NXDOMAIN however well-formed it is, publisher_present means the cluster carries the external-dns install that writes them - an INSTALL check, not proof it is publishing right now, so a wedged publisher still reads present and you should confirm a hostname resolves before promising it works - and unknown means it was not read - never that it is absent. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | No | UUID of the cluster whose delegated subzone to report. Optional when a cluster is selected. |