dns_record_set
Creates, updates, deletes, gets or lists a dns_record_set
resource.
Overview
Name | dns_record_set |
Type | Resource |
Id | google.servicenetworking.dns_record_set |
Fields
The following fields are returned by SELECT
queries:
- get
Successful response
Name | Datatype | Description |
---|---|---|
data | array | 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. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | servicesId | consumerNetwork , zone , domain , type | 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. |
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.
Name | Datatype | Description |
---|---|---|
servicesId | string | |
consumerNetwork | string | |
domain | string | |
type | string | |
zone | string |
SELECT
examples
- get
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 }}';