Skip to main content
POST
Declare a custom DNS zone for every cluster in the organisation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Body

application/json
credential_name
string
required
zone
string
required
provider
enum<string>

Optional. Which kind of credential credential_name must be: 'cloudflare', 'webhook' or 'avura'. A mismatch is refused (400). A Cloudflare credential is checked against Cloudflare before anything is stored.

Available options:
cloudflare,
webhook,
avura

Response

The stored, normalised declaration

success
boolean
required
zone
string
required
credential_name
string
provider
string | null

Declare only: how the zone is published ('cloudflare', 'webhook' or 'avura').

policy
string | null

Declare only: the external-dns policy ('upsert-only' for Cloudflare, 'sync' otherwise).

cloudflare_zone
string

Declare of a Cloudflare-bound zone only: the Cloudflare zone the records land in.

dns_edit_access
enum<string>

Declare of a Cloudflare-bound zone only: 'granted' or 'unknown'.

Available options:
granted,
unknown