Skip to content

Import DNS Zone

POST
/enum.api.v1.DnsService/ImportZone

ImportZone bulk-loads a BIND zone file into the zone. With dry_run it returns the changes it would make without applying them.

object
projectId
string
zoneId
string
zoneData

Zone_data is a BIND zone file.

string
dryRun

Dry_run computes and returns the changes without applying them.

boolean
mode

Mode defaults to MERGE when unspecified.

integer format: enum

OK

object
changes
Array<object>
object
action
integer format: enum
name
string
type
string
ttl
integer format: int32
records
Array<object>
object
content

Rdata in presentation format (e.g. “192.0.2.1”, “10 mail.example.com.”).

string
disabled
boolean
warnings
Array<string>
applied

Applied is false for a dry run.

boolean