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.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Zone_data is a BIND zone file.
Dry_run computes and returns the changes without applying them.
Mode defaults to MERGE when unspecified.
Responses
Section titled “ Responses ”OK
object
object
object
Rdata in presentation format (e.g. “192.0.2.1”, “10 mail.example.com.”).
Applied is false for a dry run.
invalid_argument: the zone file cannot be parsed or its records conflict. Records that are invalid on their own are skipped and listed in warnings instead.
Messages:
validation error: <field>: <reason>parse zone file: <reason>CNAME at <name> cannot coexist with other record typesmultiple CNAME records at <name>; a name may have only one CNAMEALIAS at <name> cannot coexist with A, AAAA, or CNAME
object
Error code, such as invalid_argument or not_found.
Human-readable error message.
unauthenticated: the token is missing, invalid, or expired.
Messages:
missing authorization headerinvalid authorization header formatauthentication failed
object
Error code, such as invalid_argument or not_found.
Human-readable error message.
permission_denied: the token has no access to this project or method.
Messages:
not authorized
object
Error code, such as invalid_argument or not_found.
Human-readable error message.
not_found: the resource does not exist.
Messages:
resource not found
object
Error code, such as invalid_argument or not_found.
Human-readable error message.
resource_exhausted: a rate limit or quota is reached.
Messages:
rate limit exceeded: wait for the number of seconds inRetry-After.dns.records quota exceeded: limit <n>, in use <n>, requested <n>: the project has reached its record quota.
object
Error code, such as invalid_argument or not_found.
Human-readable error message.
internal: something failed on our side.
Messages:
internal error
object
Error code, such as invalid_argument or not_found.
Human-readable error message.