Docs

API reference · DNS

Read the domain's records from its current nameservers or a zone file, for review; nothing is written to the zone

POST/v1/orgs/{org}/zones/{zone}/dns/imports
Permission
dns.records.manage
Request body
at most 6,292,480 bytes
Audit log
dns.import.create
Operation
dns.imports.create

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
zonepathstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
Idempotency-KeyheaderstringnoOne key per intended mutation. A retry with the key replays the recorded response instead of executing again; the key with another request answers 422 idempotency_key_reused. For example "01h455vb4pex5vsknk084sn02q"
x-obhut-management-assignmentheaderstringnoSelect one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q"

Request body

FieldTypeRequiredNotes
source"nameservers"yes
zoneFilestringyes1 to 1048576 characters

Response 201

FieldTypeRequiredNotes
idstringyesfor example "import_01h455vb4pex5vsknk084sn02q"
zoneIdstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
sourcestringyesone of "nameservers", "zonefile"
methodstring or nullyes
statusstringyesone of "queued", "running", "ready", "failed"
completebooleanyes
stoppedEarlybooleanyes
nameserversarray of stringyes
failurestring or nullyes
createdAtstring (date-time)yesUTC, ISO 8601.
finishedAtstring (date-time) or nullyes
appliedAtstring (date-time) or nullyes
candidatesarray of objectyes
candidates[].namestringyes
candidates[].ttlintegeryes60 to 86400
candidates[].sourceTtlintegerno0 to ∞
candidates[].dataobject or object or object or object or object or object or object or objectyes
candidates[].data.type"A"yes
candidates[].data.addressstring (ipv4)yes
candidates[].data.targetstringyes1 to 253 characters
candidates[].data.nameserverstringyes1 to 253 characters
candidates[].data.priorityintegeryes0 to 65535
candidates[].data.exchangestringyes1 to 253 characters
candidates[].data.textstringyes1 to 4096 characters
candidates[].data.weightintegeryes0 to 65535
candidates[].data.portintegeryes0 to 65535
candidates[].data.flagsintegeryes0 to 255
candidates[].data.tagstringyesone of "issue", "issuewild", "iodef"
candidates[].data.valuestringyes1 to 1024 characters
candidates[].statestringyesone of "new", "exists", "suppressed", "conflict"
candidates[].reasonstringnoone of "proxied_name", "below_delegation"
skippedarray of objectyes
skipped[].namestringyes
skipped[].typestringyes
skipped[].valuestringyes
skipped[].reasonstringyesone of "apex_nameservers", "soa", "dnssec", "unsupported_type", "apex_cname", "outside_zone", "conflicting", "invalid"