---
title: "GET /v1/services/{servicesId}/dnsRecordSets:get"
method: GET
path: "/v1/services/{servicesId}/dnsRecordSets:get"
tags: ["services"]
---

# GET /v1/services/{servicesId}/dnsRecordSets:get

`GET /v1/services/{servicesId}/dnsRecordSets:get`

## Request

- Base URL: `https://servicenetworking.googleapis.com`
- URL: `https://servicenetworking.googleapis.com/v1/services/{servicesId}/dnsRecordSets:get`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/service.management`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/service.management`

Producers can use this method to retrieve information about the DNS record set added to the private zone inside the shared tenant host project associated with a consumer network.

## Path parameters

- `servicesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `consumerNetwork` string
- `domain` string
- `type` string
- `zone` string

## Response `200`

Successful response

- DnsRecordSet: Represents a DNS record set resource.
  - `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.
  - `type` string: Required. The identifier of a supported record type.

## Changes

- **2026-10-30** `fce47f09d856`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/service.management` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/service.management` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/servicenetworking/changes/v1/services/:servicesId/dnsRecordSets:get/get.md)

---

[API](https://skmtc.dev/google/apis/servicenetworking.md) - [All operations](https://skmtc.dev/google/apis/servicenetworking/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/servicenetworking/revisions/fce47f09d856?raw)
