Edgeweir
Reference

API: DNS and scheduling

Procedures for DNS provider accounts, cluster DNS bindings and records, DNS revisions and reconciliation, regional probes and scheduling rules.

Access levels, authentication, idempotency keys and the error format: API overview.

DNS providers

  • Provider account credentials are stored encrypted; no procedure returns them.
  • Audit actions: dns.provider_create, dns.provider_update, dns.provider_delete.
  • Each console process runs at most 4 provider checks (dns.zones, dns.testProvider) at a time; beyond that 429 DNS_PROVIDER_RATE_LIMITED.
  • Behaviour: DNS steering: providers and credentials; every provider and credential field: Providers and credential fields.
ProcedureMethod and pathAccess
dns.catalogGET /dns/catalogread; service account (no scope)
dns.providersGET /dns/providersread
dns.createProviderPOST /dns/providerswrite
dns.updateProviderPUT /dns/providers/{id}write
dns.deleteProviderDELETE /dns/providers/{id}write
dns.zonesPOST /dns/zoneswrite
dns.testProviderPOST /dns/testwrite

dns.catalog

GET /dns/catalog · read · service account (no scope)

No parameters.

Response: DNS provider catalog object[], in the order of Providers and credential fields. The catalog always contains test; it can be used only when EDGEWEIR_DNS_TEST_ENDPOINT is set.

dns.providers

GET /dns/providers · read

No parameters.

Response: { items: DNS provider account[], testEnabled }. items are sorted by name; testEnabled is true when EDGEWEIR_DNS_TEST_ENDPOINT is set and the test provider can be used.

dns.createProvider

POST /dns/providers · write

ParameterInTypeRequiredConstraints and defaultDescription
namebodystringyes1–100 characters after trimmingAccount name
providerbodyenumyesA provider ID from Providers and credential fieldsProvider
zonebodystringyesDomain name, lowercased, at most 253 characters, not starting with *.Zone the account manages
credentialsbodyobjectyesKeys at most 64 characters, values at most 16384 characters; checked against the provider's fieldsCredentials, keyed by the field key

credentials checks: only the provider's fields are accepted; required fields must not be empty; omitted or empty optional fields are not stored; text, select and url fields are trimmed; no control characters (textarea fields allow tabs and newlines); at most maxLength, matching pattern and options; url fields only http / https, without user info or fragment. Saving does not contact the provider.

Response: DNS provider account.

ErrorStatusCondition
DNS_POLICY_INVALID400credentials fail the checks
DNS_TEST_DISABLED400provider is test and EDGEWEIR_DNS_TEST_ENDPOINT is not set

dns.updateProvider

PUT /dns/providers/{id} · write

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Account ID
namebodystringno1–100 characters after trimming; unchanged when omittedAccount name
credentialsbodyobjectnoAs in dns.createProvider, checked against the account's existing provider; unchanged when omittedNew credentials, replacing the stored ones as a whole

Provider and zone cannot be changed.

Response: DNS provider account.

ErrorStatusCondition
DNS_PROVIDER_NOT_FOUND404The account does not exist
DNS_POLICY_INVALID400credentials fail the checks
DNS_TEST_DISABLED400The account's provider is test and EDGEWEIR_DNS_TEST_ENDPOINT is not set

dns.deleteProvider

DELETE /dns/providers/{id} · write

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Account ID

Response: { ok: true }.

ErrorStatusCondition
DNS_PROVIDER_NOT_FOUND404The account does not exist
DNS_PROVIDER_IN_USE409A cluster's DNS binding selects the account, or the account still holds records a cluster wrote

dns.zones

POST /dns/zones · write

Lists the zones the credentials can manage. The body takes one of two forms.

ParameterInTypeRequiredConstraints and defaultDescription
idbodyuuidform 1—ID of a saved account, whose credentials are used
providerbodyenumform 2Provider IDProvider
credentialsbodyobjectform 2As in dns.createProviderUnsaved credentials

Response: { zones: string[] }. Zone names are lowercased, without the trailing dot, deduplicated and sorted, at most 1000.

ErrorStatusCondition
DNS_PROVIDER_NOT_FOUND404No account with id
DNS_POLICY_INVALID400credentials fail the checks
DNS_TEST_DISABLED400provider is test and EDGEWEIR_DNS_TEST_ENDPOINT is not set
DNS_ZONES_UNSUPPORTED400The provider cannot list zones (capabilities.listZones is false), or the provider refuses the operation
DNS_PROVIDER_AUTH_FAILED400The provider rejects the credentials
DNS_ADDRESS_REFUSED400A self-hosted endpoint's address is outside the outbound policy
DNS_PROVIDER_RATE_LIMITED429The provider rate-limits, or this process already runs 4 provider checks
DNS_PROVIDER_UNREACHABLE502The provider cannot be reached
DNS_PROVIDER_FAILED502Any other failed provider request

dns.testProvider

POST /dns/test · write

Reads the zone's records with the credentials (connection test); writes nothing. The body takes one of two forms.

ParameterInTypeRequiredConstraints and defaultDescription
idbodyuuidform 1—ID of a saved account, whose credentials and zone are used
providerbodyenumform 2Provider IDProvider
credentialsbodyobjectform 2As in dns.createProviderUnsaved credentials
zonebodystringform 2As zone in dns.createProviderZone

Response: { ok: true, records }. records is the number of records read from the zone.

ErrorStatusCondition
DNS_PROVIDER_NOT_FOUND404No account with id
DNS_POLICY_INVALID400credentials fail the checks
DNS_TEST_DISABLED400provider is test and EDGEWEIR_DNS_TEST_ENDPOINT is not set
DNS_PROVIDER_AUTH_FAILED400The provider rejects the credentials
DNS_PROVIDER_ZONE_NOT_FOUND400The provider has no such zone
DNS_ADDRESS_REFUSED400A self-hosted endpoint's address is outside the outbound policy
DNS_ZONES_UNSUPPORTED400The provider does not support the operation
DNS_PROVIDER_RATE_LIMITED429The provider rate-limits, or this process already runs 4 provider checks
DNS_PROVIDER_UNREACHABLE502The provider cannot be reached
DNS_PROVIDER_FAILED502Any other failed provider request

DNS bindings and records

  • Each cluster has one DNS binding; mode is off (not managed), manual (records created by hand) or auto (written through a provider account). A cluster that never saved one returns off with TTL 600.
  • Saving a binding publishes a DNS revision (reason manual), no node configuration revision; audit action dns.binding_update.
  • Record names are relative to the zone (@ for the apex) in revisions and in dns.binding, and absolute in dns.exportBinding.
  • Behaviour: DNS steering: bind a cluster, binding fields, generated records and manual mode.
ProcedureMethod and pathAccess
dns.bindingsGET /dns/bindingsread
dns.bindingGET /clusters/{clusterId}/dnsread
dns.saveBindingPUT /clusters/{clusterId}/dnswrite
dns.exportBindingGET /clusters/{clusterId}/dns/exportread
dns.siteTargetGET /sites/{siteId}/cnameread; service account sites:read

dns.bindings

GET /dns/bindings · read

No parameters.

Response: one item per cluster, sorted by cluster name.

FieldTypeDescription
clusterIduuidCluster ID
clusterNamestringCluster name
modeenumoff / manual / auto
providerIduuidProvider account ID, or null
zonestringThe account's zone; empty string without an account
domainstringParent name of the cluster's records; empty string when not set
revisionDNS revisionTarget revision, or null
appliedbooleanThe target revision is written and read back
blockedbooleanA revision is held back by the mass removal protection

dns.binding

GET /clusters/{clusterId}/dns · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response:

FieldTypeDescription
bindingDNS bindingThe saved binding
revisionDNS revisionTarget revision, or null
appliedbooleanThe target revision is written and read back
recordsDNS record[]Records of the target revision; [] without a revision
blockedobjectThe latest revision held back by the mass removal protection, or null: the fields of a DNS revision plus removedRecords (integer, address records it would remove) and previousRecords (integer, address records in the target revision)
ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

dns.saveBinding

PUT /clusters/{clusterId}/dns · write

Replaces the cluster's binding as a whole and publishes a DNS revision.

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID
bindingbodyobjectyes—Binding
binding.modebodyenumnooff / manual / auto, default offManagement mode
binding.providerIdbodyuuidnoDefault null; required for autoProvider account ID, or null
binding.domainbodystringnoEmpty string or a domain name (lowercased, not starting with *.), at most 180 characters, default ""; required unless mode is off; with an account, the account's zone or a name below itParent name of the cluster's records; a site's target is <CNAME prefix>.<domain>
binding.ttlbodyintegerno30–3600, default 600Record TTL (seconds)
binding.linesbodyarray<object>noAt most 128 DNS lines, default []; name unique, nodeGroupId uniqueLines
binding.lineAliasesbodybooleannoDefault falseAlso keep <line name>.<CNAME prefix>.<domain> for every site

With mode off, the provider account, node groups, resolution lines and name conflicts are not checked.

Response: the published DNS revision, or null. When the records equal the target revision's, the target revision; when the mass removal protection holds the plan back, the target revision still in effect, or the held-back revision when there is none.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
DNS_PROVIDER_NOT_FOUND404No account with providerId
NODE_GROUP_NOT_FOUND404A line's nodeGroupId or backupNodeGroupIds is not a node group of this cluster
DNS_ZONE_MISMATCH400domain is outside the account's zone
DNS_LINE_UNSUPPORTED400A line's resolutionLine is not among the lines the account's provider supports; data.line
DNS_POLICY_INVALID400A line name equals the all-lines record name (allLabel); in overrides a duplicate node, a node outside the line's node group, or an address that is not unicast; more than 10000 managed records
DNS_BINDING_CONFLICT409Another cluster's binding in the same zone and domain uses the same all-lines record name or line name, or a site's or layer-4 application's CNAME prefix (including a replaced prefix still in its transition period) uses the name; data.name

dns.exportBinding

GET /clusters/{clusterId}/dns/export · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response:

FieldTypeDescription
originstringZone: the account's zone, or domain without an account; empty string when neither is set
recordsDNS record[]Records with absolute names. manual: records computed from the current state; auto: records of the target revision; off: []
zoneFilestringBIND zone file: $ORIGIN, $TTL and the default line's records; records of other resolution lines follow as comments after ; line <line>; empty string when origin is empty
ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

dns.siteTarget

GET /sites/{siteId}/cname · read · service account sites:read

ParameterInTypeRequiredConstraints and defaultDescription
siteIdpathuuidyes—Site ID

Response:

FieldTypeDescription
targetstringThe site's CNAME target <CNAME prefix>.<domain>; null when the cluster's binding is off or has no domain
modeenumoff / manual / auto
publishedbooleanCan be true only for auto: the target revision is written and has a CNAME record for the target on the default line
healthybooleanCan be true only for auto: the target revision's all-lines record has address records
linesarray<object>Per line { name, target }: with lineAliases target is <line name>.<CNAME prefix>.<domain>, otherwise <line name>.<domain>; [] for off
retiredarray<object>Old names that keep resolving after a CNAME prefix change, { name, expiresAt } (expiresAt a datetime); [] for off
ErrorStatusCondition
SITE_NOT_FOUND404The site does not exist

DNS revisions and reconciliation

  • Each DNS revision is the complete record set of one publication; revision numbers increase and are unique across all clusters. Each cluster keeps its newest 200 revisions; the target, applied and held-back revisions are never deleted.
  • Mass removal protection: when a publication would remove a larger share of the previous revision's address records than massRemovalRatio, or would empty a record set that is still managed, the new revision is stored as blocked, the previous revision stays in effect, and the alert dns_mass_removal_blocked fires.
  • Audit actions: dns.rollback, dns.force_publish, dns.protection_update; dns.applied when a revision has been written.
  • Behaviour: DNS steering: mass removal protection, DNS revisions and rollback and health removal and repair.
ProcedureMethod and pathAccess
dns.bindingRevisionsGET /clusters/{clusterId}/dns/revisionsread
dns.rollbackBindingPOST /clusters/{clusterId}/dns/revisions/{revision}/rollbackwrite
dns.forcePublishBindingPOST /clusters/{clusterId}/dns/force-publishwrite
dns.protectionGET /dns/protectionread
dns.setProtectionPUT /dns/protectionwrite
dns.reconcilePOST /dns/reconcilewrite

dns.bindingRevisions

GET /clusters/{clusterId}/dns/revisions · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response: DNS revision[], newest first, at most 200.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

dns.rollbackBinding

POST /clusters/{clusterId}/dns/revisions/{revision}/rollback · write

Restores the binding settings saved with the revision and publishes a new revision with reason rollback; addresses follow the nodes' current health.

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID
revisionpathintegeryes≥1Revision to restore

Response: the new DNS revision. When the mass removal protection holds it back, the revision still in effect, or the held-back revision when there is none.

ErrorStatusCondition
DNS_REVISION_NOT_FOUND404The cluster has no such revision, or its binding settings cannot be restored
DNS_PROVIDER_NOT_FOUND404The revision's provider account no longer exists
NODE_GROUP_NOT_FOUND, DNS_ZONE_MISMATCH, DNS_LINE_UNSUPPORTED, DNS_POLICY_INVALID, DNS_BINDING_CONFLICTsee dns.saveBindingThe restored settings are no longer valid

dns.forcePublishBinding

POST /clusters/{clusterId}/dns/force-publish · write

Publishes a new revision from the cluster's current binding without the mass removal protection (reason force).

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID
revisionbodyintegeryes≥1The held-back revision (status blocked)

Response: the new DNS revision; the target revision when the records equal it.

ErrorStatusCondition
DNS_NOT_BLOCKED409The cluster has no such revision, or it is not blocked

dns.protection

GET /dns/protection · read

No parameters.

Response: { massRemovalRatio } (number). 0.5 when never saved.

dns.setProtection

PUT /dns/protection · write

ParameterInTypeRequiredConstraints and defaultDescription
massRemovalRatiobodynumberyes0.05–1Largest share of address records one publication may remove, for every cluster

Response: { massRemovalRatio }.

dns.reconcile

POST /dns/reconcile · write

Recomputes and writes records. The body may be omitted.

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdbodyuuidno—Reconcile this cluster only
  • With clusterId: reconciles that cluster and returns its error. While a run of that cluster is in progress, waits up to 30 seconds and then runs again.
  • Without clusterId: reconciles every auto binding and every binding that still owns records, at most 4 at a time; a cluster's failure is recorded only in its revision's lastError and returns no error.
  • manual bindings are never written to a provider.

Response: { ok: true }.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
DNS_RECONCILE_BUSY409The cluster's run is still in progress after 30 seconds
DNS_BINDING_CONFLICT409Another cluster manages the same name; data.name
DNS_RECORD_CONFLICT409A name to be written holds a record this cluster does not manage; data.name
DNS_PROVIDER_AUTH_FAILED400The provider rejects the credentials
DNS_PROVIDER_ZONE_NOT_FOUND400The provider has no such zone
DNS_ADDRESS_REFUSED400A self-hosted endpoint's address is outside the outbound policy
DNS_ZONES_UNSUPPORTED400The provider does not support the operation
DNS_PROVIDER_RATE_LIMITED429The provider rate-limits
DNS_PROVIDER_UNREACHABLE502The provider cannot be reached
DNS_PROVIDER_FAILED502Any other failed provider request

Regional probes

  • A probe belongs to a region and measures the nodes' scheduling addresses from there; nodes can also probe (nodes.setProbe). Probe settings are settings.probes / settings.setProbes.
  • Audit actions: probe.token_create, probe.update, probe.delete.
  • Behaviour: Regional probes and scheduling: regional probes.
ProcedureMethod and pathAccess
probes.listGET /probesread
probes.createTokenPOST /probe-tokenswrite
probes.updatePATCH /probes/{id}write
probes.deleteDELETE /probes/{id}write
probes.resultsGET /probe-resultsread

probes.list

GET /probes · read

No parameters.

Response: Probe[], sorted by creation time.

probes.createToken

POST /probe-tokens · write · Idempotency-Key not accepted

Creates a one-time token that enrolls one probe in a region.

ParameterInTypeRequiredConstraints and defaultDescription
namebodystringyes1–64 characters after trimmingProbe name
regionIdbodyuuidyes—Region ID
ttlMinutesbodyintegerno5–10080, default 60Token lifetime (minutes)

Response:

FieldTypeDescription
tokenIduuidToken ID
tokenstringToken starting with ewp_, returned once; the console keeps only its SHA-256
expiresAtdatetimeToken expiry
serverUrlstringNode channel URL (EDGEWEIR_SERVER)
caSha256stringSHA-256 of the node CA certificate (EDGEWEIR_CA_SHA256)
commandstringCommand that starts the probe: export EDGEWEIR_TOKEN=… and docker run (the node image in probe mode)
ErrorStatusCondition
REGION_NOT_FOUND404The region does not exist

probes.update

PATCH /probes/{id} · write

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Probe ID
namebodystringno1–64 characters after trimming; unchanged when omittedProbe name
enabledbodybooleannoUnchanged when omittedfalse: the node channel refuses its certificate (except for renewal), its results are ignored and its existing results deleted

Response: Probe.

ErrorStatusCondition
PROBE_NOT_FOUND404The probe does not exist

probes.delete

DELETE /probes/{id} · write

Deletes the probe and its results and revokes its current and previous certificates.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Probe ID

Response: { ok: true }.

ErrorStatusCondition
PROBE_NOT_FOUND404The probe does not exist

probes.results

GET /probe-results · read

The latest result per prober, node, address and port. Results are kept for 1 hour.

ParameterInTypeRequiredConstraints and defaultDescription
probeIdqueryuuidno—Only this prober's results: a probe ID, or the ID of a node that also probes
nodeIdqueryuuidno—Only measurements of this node

Response: Probe result[]: the newest at most 5000, sorted by node name, address, port and prober name.

ErrorStatusCondition
PROBE_NOT_FOUND404probeId is neither a probe nor a node
NODE_NOT_FOUND404No node with nodeId

External probe sources

ProcedureMethod and pathAccess
probeSources.listGET /probe-sourcesread
probeSources.createPOST /probe-sourceswrite
probeSources.updatePATCH /probe-sources/{id}write
probeSources.deleteDELETE /probe-sources/{id}write
probeSources.rotateWebhookSecretPOST /probe-sources/{id}/webhook-secretwrite
probeSources.checkPOST /probe-sources/checkwrite
probeSources.monitorsGET /probe-sources/{id}/monitorsread
probeSources.mappingsGET /probe-sources/{id}/mappingsread
probeSources.setMappingsPUT /probe-sources/{id}/mappingswrite
probeSources.resultsGET /probe-sources/{id}/resultsread
probeSources.modesGET /probe-modesread
probeSources.setClusterModePUT /clusters/{clusterId}/probe-modewrite

GET /api/v1/openapi.json has the request and response fields.

Scheduling rules

  • A rule belongs to a cluster and applies a DNS action to nodes based on conditions on node and probe metrics: remove_node (the node leaves the rule's line, or every line), backup_group (the rule's line answers with its backup node groups), backup_ip (the node answers with its next scheduling address level).
  • When an action starts or ends, a DNS revision is published (reason scheduling, reasonParams.event activated / recovered), audited as scheduling.activate / scheduling.recover (actor: the system).
  • Audit actions: scheduling.rule_create, scheduling.rule_update, scheduling.rule_delete.
  • Behaviour: Regional probes and scheduling: scheduling rules, actions and states and timing.
ProcedureMethod and pathAccess
scheduling.listGET /scheduling/rulesread
scheduling.createPOST /scheduling/ruleswrite
scheduling.updatePATCH /scheduling/rules/{id}write
scheduling.deleteDELETE /scheduling/rules/{id}write
scheduling.previewGET /clusters/{clusterId}/scheduling/previewread

scheduling.list

GET /scheduling/rules · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdqueryuuidno—Only this cluster's rules

Response: Scheduling rule[], sorted by creation time.

ErrorStatusCondition
CLUSTER_NOT_FOUND404No cluster with clusterId

scheduling.create

POST /scheduling/rules · write · 201

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdbodyuuidyes—Cluster ID
lineNamebodystringnoA line name of the cluster's DNS binding, or null, default null; required when action is backup_groupLine the rule applies to; null for every line
namebodystringyes1–100 characters after trimmingRule name
enabledbodybooleannoDefault trueEnabled
matchbodyenumnoall / any, default allall: every condition holds; any: one condition holds
conditionsbodyarray<object>yes1–8 scheduling conditionsConditions
actionbodyenumyesremove_node / backup_group / backup_ipAction
holdSecondsbodyintegerno0–86400, default 300Minimum seconds the action stays
recoverSecondsbodyintegerno0–86400, default 300Seconds the conditions must stay clear before the action recovers

Response: Scheduling rule.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
SCHEDULING_RULE_INVALID400backup_group without lineName, or lineName is not in the cluster's DNS binding
REGION_NOT_FOUND404No region with a condition's regionId

scheduling.update

PATCH /scheduling/rules/{id} · write

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Rule ID
lineNamebodystringnoAs in scheduling.create; unchanged when omittedLine name, or null
namebodystringnoAs in scheduling.create; unchanged when omittedRule name
enabledbodybooleannoUnchanged when omittedEnabled
matchbodyenumnoall / any; unchanged when omittedHow conditions combine
conditionsbodyarray<object>no1–8 scheduling conditions, replaced as a whole; unchanged when omittedConditions
actionbodyenumnoAs in scheduling.create; unchanged when omittedAction
holdSecondsbodyintegerno0–86400; unchanged when omittedMinimum seconds the action stays
recoverSecondsbodyintegerno0–86400; unchanged when omittedSeconds the conditions stay clear before recovery
  • The cluster cannot be changed.
  • Changing an enabled rule to enabled: false, or lineName, match, action or conditions to a different value, ends the rule's current actions (publishing DNS revisions where needed) and restarts its states; changing only name, holdSeconds or recoverSeconds does not.
  • The line is checked only when lineName or action is given, regions only when conditions is given.

Response: Scheduling rule.

ErrorStatusCondition
SCHEDULING_RULE_NOT_FOUND404The rule does not exist
SCHEDULING_RULE_INVALID400After the change, backup_group without lineName, or lineName is not in the cluster's DNS binding
REGION_NOT_FOUND404No region with a condition's regionId

scheduling.delete

DELETE /scheduling/rules/{id} · write

Deletes the rule; its current actions end, with one DNS revision per affected node (reason scheduling, event recovered).

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Rule ID

Response: { ok: true }.

ErrorStatusCondition
SCHEDULING_RULE_NOT_FOUND404The rule does not exist

scheduling.preview

GET /clusters/{clusterId}/scheduling/preview · read

Evaluates every rule of the cluster against every node under the current metrics; writes nothing. Behaviour: preview.

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response: Scheduling preview.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

Objects

DNS provider catalog object

FieldTypeDescription
idenumProvider ID, see Providers and credential fields
namestringEnglish name
fieldsarray<object>Credential fields, see the table below
capabilities.recordTypesarray<enum>Record types it writes: A, AAAA, CNAME, TXT
capabilities.listZonesbooleanCan list the account's zones (dns.zones)
capabilities.linesarray<enum>Resolution lines the adapter writes, default first: a subset of default, telecom, unicom, mobile, edu, overseas
capabilities.apexenumHow the apex can point at a host name: cname (CNAME flattening), alias (ALIAS record), or null (not at all)
capabilities.endpointenumfixed: the provider's fixed endpoint; custom: the user enters the server address and the outbound address policy applies

fields[]:

FieldTypeDescription
keystringCredential key (snake_case), the key in credentials
typeenumtext / secret / select / textarea / url
secretbooleanNever displayed after saving; entered in a password field
requiredbooleanRequired
placeholderstringFormat example; may be absent
patternstringAnchored regular expression the value must match (JavaScript and RE2 compatible); may be absent
maxLengthnumberMaximum length
optionsarray<string>Allowed values of a select field; may be absent
defaultstringDefault value; may be absent

Providers and credential fields

Every provider writes A, AAAA, CNAME and TXT records. "All lines" means default, telecom, unicom, mobile, edu, overseas; the other providers have default only.

IDNameLists zonesResolution linesApexEndpoint
cloudflareCloudflareyesdefaultcnamefixed
alidnsAlibaba Cloud DNSyesall linesnullfixed
huaweicloudHuawei Cloud DNSyesall linesnullfixed
dnspodDNSPod (token API)yesall linesnullfixed
tencentcloudTencent Cloud DNSPod (API 3.0)yesall linesnullfixed
volcengineVolcengine DNSyesdefaultnullfixed
baiducloudBaidu AI Cloud DNSyesdefaultnullfixed
westcnWest.cnyesdefaultnullfixed
dnslaDNS.LAyesdefaultnullfixed
route53Amazon Route 53yesdefaultnullfixed
googleclouddnsGoogle Cloud DNSyesdefaultaliasfixed
azureAzure DNSyesdefaultnullfixed
digitaloceanDigitalOceanyesdefaultnullfixed
vultrVultryesdefaultnullfixed
linodeAkamai Cloud (Linode)yesdefaultnullfixed
hetznerHetzner Cloud DNSyesdefaultnullfixed
ovhOVHcloudyesdefaultnullfixed
gandiGandi LiveDNSyesdefaultaliasfixed
godaddyGoDaddyyesdefaultnullfixed
porkbunPorkbunyesdefaultaliasfixed
namesiloNameSiloyesdefaultnullfixed
gcoreGcoreyesdefaultcnamefixed
bunnyBunny DNSyesdefaultcnamefixed
desecdeSECyesdefaultnullfixed
powerdnsPowerDNSyesdefaultnullcustom
rfc2136RFC 2136 (TSIG)nodefaultnullcustom
webhookCustom HTTPyesdefaultnullcustom
testLocal test fixtureyesall linesnullfixed

test is available only when EDGEWEIR_DNS_TEST_ENDPOINT is set.

Credential fields (secret and textarea fields are never displayed after saving):

ProviderFieldTypeRequiredMax lengthFormat and default
cloudflareapi_tokensecretyes25620–256 letters, digits, _, ., -
cloudflarezone_tokensecretno256As api_token
alidnsaccess_key_idtextyes1281–128 letters, digits, .
alidnsaccess_key_secretsecretyes256—
alidnsregion_idtextno321–32 lowercase letters, digits, -; example cn-hangzhou
alidnssecurity_tokensecretno4096—
huaweicloudaccess_key_idtextyes1281–128 letters, digits
huaweicloudsecret_access_keysecretyes256—
huaweicloudregion_idtextno321–32 lowercase letters, digits, -; example cn-north-4
dnspodauth_tokensecretyes149<ID>,<Token>: 1–20 digits, a comma, 8–128 letters and digits
tencentcloudsecret_idtextyes1281–128 letters, digits
tencentcloudsecret_keysecretyes256—
tencentcloudsiteselectno4cn / intl, default cn
volcengineaccess_key_idtextyes12816–128 letters, digits
volcenginesecret_access_keysecretyes256—
baiducloudaccess_key_idtextyes12816–128 letters, digits
baiducloudsecret_access_keysecretyes256—
westcnusernametextyes64—
westcnapi_passwordsecretyes256—
dnslaapi_idtextyes1281–128 printable ASCII characters except space and :
dnslaapi_secretsecretyes256—
route53access_key_idtextyes12816–128 letters, digits, _
route53secret_access_keysecretyes128—
route53session_tokensecretno8192—
route53hosted_zone_idtextno441–32 uppercase letters and digits, optionally prefixed with /hostedzone/
route53partitionselectno10aws / aws-cn / aws-us-gov, default aws
googleclouddnsservice_account_jsontextareayes16384Service account key JSON
googleclouddnsproject_idtextno1006–30 characters, starting with a lowercase letter, lowercase letters, digits, -, not ending with -; optionally prefixed with <domain>:
googleclouddnsmanaged_zonetextno63Managed zone name (starting with a lowercase letter, 1–63 lowercase letters, digits, -) or a numeric ID of 1–20 digits
azuretenant_idtextyes253GUID or domain name
azureclient_idtextyes36GUID
azureclient_secretsecretyes1024—
azuresubscription_idtextyes36GUID
azureresource_grouptextyes901–90 letters, digits, _, (, ), ., -, not ending with .
digitaloceanapi_tokensecretyes12864 lowercase hexadecimal digits, optionally prefixed with dop_v1_
vultrapi_keysecretyes64—
linodeapi_tokensecretyes128—
hetznerapi_tokensecretyes128—
ovhendpointselectyes6ovh-eu / ovh-ca / ovh-us, default ovh-eu
ovhapplication_keytextyes1288–128 letters, digits
ovhapplication_secretsecretyes1288–128 letters, digits
ovhconsumer_keysecretyes1288–128 letters, digits
gandibearer_tokensecretyes51216–512 letters, digits, _, ., -
godaddyapi_tokensecretyes4096key:secret (each part 8–128 letters, digits, _), or at least 16 letters, digits and _.~+/=-
porkbunapi_keysecretyes260pk1_ followed by 8–256 letters, digits, _
porkbunapi_secret_keysecretyes260sk1_ followed by 8–256 letters, digits, _
namesiloapi_tokensecretyes1288–128 letters, digits
gcoreapi_keysecretyes4096<digits>$<letters, digits and ._~+/=->
bunnyaccess_keysecretyes12816–128 letters, digits, -
desectokensecretyes12816–128 letters, digits, _, -
powerdnsserver_urlurlyes256http:// or https:// plus a host (port allowed), optional trailing /, no path, query, @ or fragment
powerdnsapi_keysecretyes256—
powerdnsserver_idtextno641–64 letters, digits, ., _, -, default localhost
rfc2136servertextyes261Host or host:port: 1–261 letters, digits and ._:[]-
rfc2136tsig_key_nametextyes2531–253 letters, digits, ., _, -
rfc2136tsig_algorithmselectyes11hmac-sha256 / hmac-sha512 / hmac-sha384 / hmac-sha224 / hmac-sha1, default hmac-sha256
rfc2136tsig_secretsecretyes512Base64
webhookurlurlyes512http:// or https:// URL without whitespace, @ or #
webhooksecretsecretyes256At least 16 characters
testapi_tokensecretyes1024—

DNS provider account object

FieldTypeDescription
iduuidAccount ID
namestringAccount name
providerenumProvider ID
zonestringZone

DNS binding object

FieldTypeDescription
clusterIduuidCluster ID
modeenumoff / manual / auto
providerIduuidProvider account ID, or null
zonestringThe account's zone; empty string without an account
domainstringParent name of the cluster's records
ttlnumberTTL (seconds)
linesDNS line[]Lines; fields missing from lines saved earlier are returned with their defaults
lineAliasesbooleanLine aliases are kept for every site
allLabelstringName of the record with every line's addresses: all, or all-<n> for shared domains migrated from the global DNS configuration
updatedAtdatetimeLast save; 1970-01-01T00:00:00.000Z when never saved

DNS line object

binding.lines[] of dns.saveBinding and lines[] of the DNS binding.

FieldTypeRequiredConstraints and defaultDescription
namestringyes1–32 lowercase letters, digits, -, starting and ending with a letter or digit, not allLine name; its record is <name>.<domain>
nodeGroupIduuidyesA node group of this clusterThe line's node group
overridesarray<object>noAt most 1000 { nodeId, addresses }, default []; nodeId a node of that node group, unique; addresses 1–8 IP addresses (normalized), not loopback, link-local, multicast, documentation or other special-purpose addresses (private 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7 excepted)Addresses the node uses on this line
resolutionLineenumnodefault / telecom / unicom / mobile / edu / overseas, default defaultResolution line on which the all-lines record answers with this line's addresses
backupNodeGroupIdsarray<uuid>noAt most 4 node groups of this cluster, unique, not nodeGroupId, default []Backup node groups
minHealthyIpsintegerno1–64, default 1While the line's node group has fewer healthy addresses, the first backup group with at least this many answers

Behaviour: DNS steering: records per resolution line and backup node groups.

DNS record object

FieldTypeDescription
namestringRecord name: relative to the zone (@ for the apex); absolute in dns.exportBinding
typeenumA / AAAA / CNAME / TXT
datastringRecord value
ttlnumberTTL (seconds)
lineenumResolution line: telecom / unicom / mobile / edu / overseas; absent on records of the default line

DNS revision object

FieldTypeDescription
revisionnumberRevision number
statusenumpending (to be written) / applied (written; a manual revision is applied once saved) / failed / superseded (replaced by a newer revision) / blocked (held back by the mass removal protection)
reasonstringPublication reason code, see the table below; unknown codes are shown as they are
reasonParamsobjectParameters of the reason, values string or number; {} without parameters
recordCountnumberNumber of records
createdAtdatetimeCreation time
appliedAtdatetimeWhen writing completed, or null
lastErrorstringCode of the latest failure, empty string without one; for example dns_reconcile_failed, dns_auth_failed, dns_zone_not_found, dns_provider_unreachable, dns_rate_limited, dns_record_conflict, dns_binding_conflict, dns_zone_mismatch, dns_mass_removal_blocked, certd_failed, certd_timeout
lastErrorParamsobjectParameters of the error code (string): name for dns_record_conflict and dns_binding_conflict
ReasonParametersPublished when
manual—A binding is saved (dns.saveBinding), or a node's scheduling addresses change (nodes.setAddresses)
health—Node health changes during reconciliation, or the probes' reachability verdict on a scheduling address changes
rollback—dns.rollbackBinding
force—dns.forcePublishBinding
schedulingrule, node, ruleId, nodeId, action (remove_node / backup_group / backup_ip), event (activated / recovered)A scheduling rule's action starts or ends
cnamenameA site's or layer-4 application's CNAME prefix changes
cname_expired—Replaced CNAME prefixes stop resolving after their 24 hours

Probe object

FieldTypeDescription
iduuidProbe ID
namestringName
regionIduuidRegion ID
regionNamestringRegion name
regionCodestringRegion code
enabledbooleanEnabled
onlinebooleanAsked for targets or reported results within max(3 × probe interval, 30 s)
lastSeenAtdatetimeLast connection, or null
enrolledAtdatetimeEnrollment time, or null
hostnamestringHost name
agentVersionstringProbe program version
osstringOperating system
archstringCPU architecture
certNotAfterdatetimeCertificate expiry, or null
targetsintegerTargets the probe gets now: every scheduling address of every enabled node × each listener port of its cluster
lastRoundobjectThe latest round, null without results: checkedAt (datetime), results (integer, targets), failed (integer, targets that lost every attempt), lossPercent (number, lost attempts / sent attempts in percent, one decimal), avgRttMs (number, mean of the median round-trip times of the answering targets; null when none answered)
channelNode channel statusThe probe's node channel status; null until the probe connects to a console that records it
createdAtdatetimeCreation time

Node channel status object

FieldTypeDescription
urlstringNode channel URL in use, or null
serverNamestringTLS server name of that URL
fallbackUrlstringThe URL before the last switch, tried while url fails; or null
fallbackServerNamestringTLS server name of the fallback URL
onFallbackbooleanRunning on the fallback because url failed
sourceenumHow url was set: enroll (enrollment) / console (the console's address) / command (edgeweir-node set-server), or null
switchedAtdatetimeLast switch, or null
errorobjectThe last failed check of an address, or null: code, message, url, serverName, at (datetime)
observedServerNamestringTLS server name of the latest connection; empty string when none was sent (an IP address)
observedWebSocketbooleanThe latest connection came through the WebSocket entry
observedAtdatetimeLatest connection

Probe result object

FieldTypeDescription
proberKindenumprobe (a probe) / node (a node that also probes)
proberIduuidProber ID
proberNamestringProber name
regionIduuidThe prober's region ID, or null
regionNamestringRegion name, or null
nodeIduuidID of the measured node
nodeNamestringNode name
addressstringScheduling address
portintegerPort
methodenumtcp / http / https
sentintegerAttempts sent
lostintegerAttempts lost
lossPercentnumberShare lost (percent, one decimal)
rttMsintegerMedian round-trip time of the answered attempts; 0 when all were lost
errorstringCode of the last failure: timeout, refused, reset, tls, status, unreachable
checkedAtdatetimeMeasurement time

Scheduling condition object

FieldTypeRequiredConstraints and defaultDescription
metricenumyescpu_percent / load1 / memory_percent / egress_mbps / connections / probe_loss_percent / probe_latency_msMetric; the last two are probe metrics
aggregateenumnoavg / max / min, default avgHow a probe metric combines over the probers; a node metric is the node's own value
comparatorenumyesgt / ge / lt / leComparison
thresholdnumberyes0–10¹²Threshold
durationSecondsintegerno0–3600, default 0Seconds the comparison must hold before the condition counts
regionIduuidnoDefault null; probe metrics only, otherwise 400 BAD_REQUESTCount only this region's probers

Scheduling rule object

FieldTypeDescription
iduuidRule ID
clusterIduuidCluster ID
lineNamestringLine name, or null (every line)
namestringRule name
enabledbooleanEnabled
matchenumall / any
conditionsScheduling condition[]Conditions, with defaults filled in
actionenumremove_node / backup_group / backup_ip
holdSecondsintegerMinimum seconds the action stays
recoverSecondsintegerSeconds the conditions stay clear before recovery
activeNodesarray<object>Nodes the action applies to now (active or recovering) { nodeId, nodeName, since }, sorted by node name; since a datetime
createdAtdatetimeCreation time
updatedAtdatetimeLast change

Scheduling preview object

FieldTypeDescription
clusterIduuidCluster ID
evaluatedAtdatetimeEvaluation time
rulesarray<object>Per rule: ruleId, ruleName, enabled, lineName (or null), match, action, nodes
rules[].nodesarray<object>Each node the rule looks at, fields in the table below

rules[].nodes[]:

FieldTypeDescription
nodeIduuidNode ID
nodeNamestringNode name
stateenumidle (conditions clear) / pending (met, but not yet for their durations) / active / recovering (clear, waiting to recover)
conditionsarray<object>Per condition: the fields of a scheduling condition plus value (number, the current value; null without fresh metrics or probe results), holds (boolean, the comparison holds now), heldSeconds (integer, how long it has held as of the last evaluation), satisfied (boolean, it has held for at least durationSeconds)
matchesbooleanThe conditions are met now under match, with their durations
inEffectbooleanThe action applies to the node now (active or recovering)
wouldActivatebooleanThe next evaluation starts the action
wouldRecoverbooleanThe next evaluation ends the action
activeSincedatetimeWhen the action started, or null
recoveringSincedatetimeWhen recovery started, or null
recoversAtdatetimeEarliest end of the action if the conditions stay clear, or null
Edit on GitHub

On this page