Update DNS Record Set
POST /enum.api.v1.DnsService/UpdateRecordSet
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”UpdateRecordSet replaces the set’s ttl and values wholesale.
object
object
Rdata in presentation format (e.g. “192.0.2.1”, “10 mail.example.com.”).
Responses
Section titled “ Responses ”OK
object
DnsRecordSet is a resource record set: all values sharing (name, type) with one shared TTL. It is addressed by (zone_id, name, type).
object
Owner name (FQDN, e.g. www.example.com or example.com for apex).
Record type: A, AAAA, CNAME, MX, TXT, NS, SRV, or CAA. A CNAME at the zone apex flattens to the target’s A/AAAA addresses when served; unlike CNAME elsewhere, it may coexist with MX, TXT, and CAA at the apex (not with A or AAAA).
object
Rdata in presentation format (e.g. “192.0.2.1”, “10 mail.example.com.”).
invalid_argument: a field or record value is invalid. A CNAME at the zone apex is stored as ALIAS, so its errors name ALIAS.
Messages:
validation error: <field>: <reason>record <name> is not within zone <zone>ttl <ttl> out of range [<min>,<max>] for <type>: allowed TTLs are 60 - 86400 seconds, or 3600 - 604800 for NS.invalid <type> rdata "<value>"A record content must be an IPv4 address, got "<value>"(AAAAand IPv6 likewise)a CNAME record set must have exactly one valueCNAME at <name> cannot coexist with other record typesALIAS at <name> cannot coexist with A, AAAA, or CNAMEapex NS at <name> is managed by enum and cannot be set
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: the token’s rate limit is reached.
Messages:
rate limit exceeded: wait for the number of seconds inRetry-After.
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.