Getting startedGuidesReferenceChangelog
Apoxy:// Docs / Reference / DomainZone

DomainZone

API reference for Domain Zones (core.apoxy.dev/v1alpha3)

API Group: core.apoxy.dev/v1alpha3

Operations

List Domain Zones

GET/apis/core.apoxy.dev/v1alpha3/domainzones

List DomainZone

Response

  • 200: OK

Create Domain Zone

POST/apis/core.apoxy.dev/v1alpha3/domainzones

Create a DomainZone

Use the domain name in lower case with no dot at the end as metadata.name, for example example.com. Each label of the name can have only letters, digits and hyphens. Apoxy refuses other forms of the name.

Request Body

Spec fields (DomainZoneSpec):

FieldTypeDescription
registrationConfigRegistrationConfigRegistrationConfig contains configuration for domain registration.

Response

  • 200: OK
  • 201: Created
  • 202: Accepted

Delete All Domain Zones

DELETE/apis/core.apoxy.dev/v1alpha3/domainzones

Delete collection of DomainZone

Response

  • 200: OK

Get Domain Zone

GET/apis/core.apoxy.dev/v1alpha3/domainzones/{name}

Get the specified DomainZone

Response

  • 200: OK

Replace Domain Zone

PUT/apis/core.apoxy.dev/v1alpha3/domainzones/{name}

Replace the specified DomainZone

Request Body

Spec fields (DomainZoneSpec):

FieldTypeDescription
registrationConfigRegistrationConfigRegistrationConfig contains configuration for domain registration.

Response

  • 200: OK
  • 201: Created

Update Domain Zone

PATCH/apis/core.apoxy.dev/v1alpha3/domainzones/{name}

Partially update the specified DomainZone

Response

  • 200: OK
  • 201: Created

Delete Domain Zone

DELETE/apis/core.apoxy.dev/v1alpha3/domainzones/{name}

Delete a DomainZone. Deleting a zone also deletes the DomainRecords in it, and Apoxy nameservers stop serving the zone.

Before you delete a zone, remove the Apoxy nameservers from the delegation of the domain at your registrar. Apoxy no longer answers for the zone, so a delegation to Apoxy nameservers after the delete leaves the domain with no answers. Also, 25 hours after the delete another Apoxy project can claim the domain through that delegation, and Apoxy then answers for the domain with the records of that project.

A zone that Apoxy registered for you keeps its registration until it expires. To release such a zone before it expires, set spec.registrationConfig.autoRenew to false and then delete the zone. The domain stays registered to you until the end of the paid term and is not renewed.

Response

  • 200: OK
  • 202: Accepted

Schema Reference

NameserverStatus

Apoxy writes status.nameservers. You cannot change it.

FieldTypeDescription
requiredstring[]Nameservers that the delegation of the zone must use. Set these names at your registrar. Apoxy sets this list one time. It changes only when Apoxy moves the zone to different nameservers, and Apoxy tells you before such a move.
currentstring[]Nameservers that the delegation of the zone had at the last check.
setsstring[]Identifiers of the Apoxy nameserver groups that serve the zone. Apoxy manages this list.

ZoneClaimStatus

Apoxy writes status.claim. It shows if your project holds the claim of the domain. See Zone control.

FieldTypeDescription
heldbooleantrue when Apoxy serves the zone for this project.

Conditions

ConditionDescription
ReadyTrue when the zone is Active. When False, the reason tells why: PendingNameservers, NameserverCheckTimeout (no proof in 7 days), DelegationLost (no Apoxy nameserver in the delegation for 7 days), ZoneClaimedByAnotherProject (a different project serves this domain, a domain above it, or a domain below it), or ZoneNameIsPublicSuffix (the name is a public suffix, such as com or co.uk).
NameserversConfiguredTrue when the delegation of the domain has only the required nameservers.
DelegationPresentFor a zone of your own domain: True when the delegation of the domain has one or more Apoxy nameservers.
DelegationCurrentFalse when the delegation still has old Apoxy nameservers.

RegistrationConfig

FieldTypeDescription
autoRenewbooleanAutoRenew indicates whether the domain should be automatically renewed. A registered zone with autoRenew: false can be deleted before it expires.
registrantRegistrantRegistrant contains the registrant contact information.
registrationPeriodYearsinteger (int32)RegistrationPeriodYears is the number of years to register the domain for.

Registrant

FieldTypeDescription
addressAddressAddress of the registrant.
emailstringEmail of the registrant.
firstNamestringFirstName of the registrant.
lastNamestringLastName of the registrant.
organizationstringOrganization of the registrant.
phonestringPhone number of the registrant.

Address

FieldTypeDescription
addressLine1stringAddress line 1.
addressLine2stringAddress line 2.
citystringCity.
countrystringCountry code (ISO 3166-1 alpha-2).
postalCodestringPostalCode or ZIP code.
stateProvincestringState or province.