---
title: "POST /v1/{+parent}/dnsRecordSets:update"
method: POST
path: "/v1/{+parent}/dnsRecordSets:update"
tags: ["services"]
---

# POST /v1/{+parent}/dnsRecordSets:update

`POST /v1/{+parent}/dnsRecordSets:update`

Service producers can use this method to update DNS record sets from private DNS zones in the shared producer host project.

## Path parameters

- `parent` string, required

## Request body

- UpdateDnsRecordSetRequest — Request to update a record set from a private managed DNS zone in the shared producer host project. The name, type, ttl, and data values of the existing record set must all exactly match an existing record set in the specified zone.
  - `consumerNetwork` string — Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is the project number, as in '12345' {network} is the network name.
  - `zone` string — Required. The name of the private DNS zone in the shared producer host project from which the record set will be removed.
  - `existingDnsRecordSet` DnsRecordSet — Represents a DNS record set resource.
    - `type` string — Required. The identifier of a supported record type.
    - `data` string[] — Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for examples see https://cloud.google.com/dns/records/json-record.
    - `domain` string — Required. The DNS or domain name of the record set, e.g. `test.example.com`. Cloud DNS requires that a DNS suffix ends with a trailing dot.
    - `ttl` string, google-duration — Required. The period of time for which this RecordSet can be cached by resolvers.
  - `newDnsRecordSet` DnsRecordSet — Represents a DNS record set resource.
    - `type` string — Required. The identifier of a supported record type.
    - `data` string[] — Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for examples see https://cloud.google.com/dns/records/json-record.
    - `domain` string — Required. The DNS or domain name of the record set, e.g. `test.example.com`. Cloud DNS requires that a DNS suffix ends with a trailing dot.
    - `ttl` string, google-duration — Required. The period of time for which this RecordSet can be cached by resolvers.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/servicenetworking.md) · [All operations](https://skmtc.net/google/apis/servicenetworking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/servicenetworking/versions/a9b814c6426b/schema)
