Skip to main content

dns_record_set

Creates, updates, deletes, gets or lists a dns_record_set resource.

Overview

Namedns_record_set
TypeResource
Idgoogle.servicenetworking.dns_record_set

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
dataarrayRequired. 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.
domainstringRequired. 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.
ttlstring (google-duration)Required. The period of time for which this RecordSet can be cached by resolvers.
typestringRequired. The identifier of a supported record type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservicesIdconsumerNetwork, zone, domain, typeProducers 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
servicesIdstring
consumerNetworkstring
domainstring
typestring
zonestring

SELECT examples

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.

SELECT
data,
domain,
ttl,
type
FROM google.servicenetworking.dns_record_set
WHERE servicesId = '{{ servicesId }}' -- required
AND consumerNetwork = '{{ consumerNetwork }}'
AND zone = '{{ zone }}'
AND domain = '{{ domain }}'
AND type = '{{ type }}';