Apoxy
Core API

Domains

API reference for Domains (core.apoxy.dev/v1alpha3)

API Group: core.apoxy.dev/v1alpha3

Operations

List Domains

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

List Domain

Response

  • 200: OK

Create Domain

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

Create a Domain

Request Body

Spec fields (DomainSpec):

FieldTypeDescription
customDomainsstring[]The list of custom domain names to also route to the target, which may be under another domain. Routing may require additional verification steps.
filtersLocalObjectReference[]EdgeFunction filters applied for the domain.
forwardingDomainForwardingSpecUsed to specify routing non-HTTP/S forwarding rules. For example, forwarding tcp:10000-20000 to a specified port of a target (e.g. an EdgeFunction or a TunnelEndpoint). This is a Pro feature only.
targetDomainTargetSpecTarget of the domain. (required)
tlsDomainTLSSpecTLS configuration for the domain.
zonestringThe zone this domain is managed under.

Response

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

Delete All Domains

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

Delete collection of Domain

Response

  • 200: OK

Get Domain

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

Get the specified Domain

Response

  • 200: OK

Replace Domain

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

Replace the specified Domain

Request Body

Spec fields (DomainSpec):

FieldTypeDescription
customDomainsstring[]The list of custom domain names to also route to the target, which may be under another domain. Routing may require additional verification steps.
filtersLocalObjectReference[]EdgeFunction filters applied for the domain.
forwardingDomainForwardingSpecUsed to specify routing non-HTTP/S forwarding rules. For example, forwarding tcp:10000-20000 to a specified port of a target (e.g. an EdgeFunction or a TunnelEndpoint). This is a Pro feature only.
targetDomainTargetSpecTarget of the domain. (required)
tlsDomainTLSSpecTLS configuration for the domain.
zonestringThe zone this domain is managed under.

Response

  • 200: OK
  • 201: Created

Update Domain

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

Partially update the specified Domain

Response

  • 200: OK
  • 201: Created

Delete Domain

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

Delete a Domain

Response

  • 200: OK
  • 202: Accepted

Schema Reference

LocalObjectReference

FieldTypeDescription
groupstringGroup is the API Group of the referenced object. (required)
namestringName is the name of the referenced object. (required)

DomainForwardingSpec

FieldTypeDescription
forwardingRulesForwardingRule[]ForwardingRules is the list of forwarding rules.

DomainTargetSpec

FieldTypeDescription
dnsDomainTargetDNSRepresents targets specified via DNS.
refLocalObjectReferenceRepresent a target specified via a reference to another object within Apoxy (e.g. Proxy, EdgeFunction (type=backend), TunnelEndpoint).

DomainTargetDNS

FieldTypeDescription
caaDNSCAARecordsCAA holds Certification Authority Authorization record values.
dkimDNSDKIMRecordsDKIM holds DKIM (DomainKeys Identified Mail) values. Stored as TXT records under <selector>._domainkey.<domain>. Values should be DKIM public key records (e.g. "v=DKIM1; k=rsa; p=...").
dmarcDNSDMARCRecordsDMARC holds DMARC (Domain-based Message Authentication, Reporting & Conformance) values. Stored as TXT records under _dmarc.<domain>. Values should follow DMARC syntax (e.g. "v=DMARC1; p=reject; rua=mailto:...").
dnskeyDNSDNSKEYRecordsDNSKEY holds DNSKEY records for DNSSEC. Values should be DNSKEY record data (e.g. "257 3 8 <base64-encoded-key>").
dsDNSDSRecordsDS holds DS (Delegation Signer) records for DNSSEC chain of trust. Values should be DS record data (e.g. "12345 8 2 <digest>").
fqdnDNSCNAMERecordFQDN holds a CNAME record target. Cannot be set with IPs.
ipsDNSAddressRecordsIPs holds A/AAAA record addresses. Cannot be set with FQDN.
mxDNSMXRecordsMX holds Mail Exchange record values.
nsDNSNSRecordsNS holds Name Server record values.
spfDNSSPFRecordsSPF holds SPF (Sender Policy Framework) values. Stored as TXT records. Values should follow SPF syntax (e.g. "v=spf1 include:_spf.google.com ~all").
srvDNSSRVRecordsSRV holds Service Locator record values.
txtDNSTXTRecordsTXT holds TXT record values.

DNSCAARecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of CAA record values. (required)

DNSDKIMRecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of DKIM record values. (required)

DNSDMARCRecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of DMARC record values. (required)

DNSDNSKEYRecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of DNSKEY record values. (required)

DNSDSRecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of DS record values. (required)

DNSCNAMERecord

FieldTypeDescription
namestringName is the fully qualified domain name of the CNAME target. (required)
ttlinteger (int32)TTL is the time-to-live for this record type.

DNSAddressRecords

FieldTypeDescription
addressesstring[]Addresses is the list of IP addresses. (required)
ttlinteger (int32)TTL is the time-to-live for this record type.

DNSMXRecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of MX record values (e.g. "10 mail.example.com"). (required)

DNSNSRecords

FieldTypeDescription
nameserversstring[]Nameservers is the list of nameserver values. (required)
ttlinteger (int32)TTL is the time-to-live for this record type.

DNSSPFRecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of SPF record values. (required)

DNSSRVRecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of SRV record values. (required)

DNSTXTRecords

FieldTypeDescription
ttlinteger (int32)TTL is the time-to-live for this record type.
valuesstring[]Values is the list of TXT record values. (required)

DomainTLSSpec

FieldTypeDescription
certificateAuthoritystringThe Certificate Authority used to issue the TLS certificate. Currently supports "letsencrypt".

On this page