Skip to main content

dns_record_sets

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

Overview

Namedns_record_sets
TypeResource
Idgoogle.servicenetworking.dns_record_sets

Fields

NameDatatypeDescription
dnsRecordSetsarrayDNS record Set Resource

Methods

NameAccessible byRequired ParamsDescription
listSELECTservicesIdProducers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.
addINSERTservicesIdService producers can use this method to add DNS record sets to private DNS zones in the shared producer host project.
removeDELETEservicesIdService producers can use this method to remove DNS record sets from private DNS zones in the shared producer host project.
updateUPDATEservicesIdService producers can use this method to update DNS record sets from private DNS zones in the shared producer host project.

SELECT examples

Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.

SELECT
dnsRecordSets
FROM google.servicenetworking.dns_record_sets
WHERE servicesId = '{{ servicesId }}';

INSERT example

Use the following StackQL query and manifest file to create a new dns_record_sets resource.

/*+ create */
INSERT INTO google.servicenetworking.dns_record_sets (
servicesId,
zone,
consumerNetwork,
dnsRecordSet
)
SELECT
'{{ servicesId }}',
'{{ zone }}',
'{{ consumerNetwork }}',
'{{ dnsRecordSet }}'
;

UPDATE example

Updates a dns_record_sets resource.

/*+ update */
UPDATE google.servicenetworking.dns_record_sets
SET
newDnsRecordSet = '{{ newDnsRecordSet }}',
existingDnsRecordSet = '{{ existingDnsRecordSet }}',
zone = '{{ zone }}',
consumerNetwork = '{{ consumerNetwork }}'
WHERE
servicesId = '{{ servicesId }}';

DELETE example

Deletes the specified dns_record_sets resource.

/*+ delete */
DELETE FROM google.servicenetworking.dns_record_sets
WHERE servicesId = '{{ servicesId }}';