Skip to main content

peered_dns_domains

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

Overview

Namepeered_dns_domains
TypeResource
Idgoogle.servicenetworking.peered_dns_domains

Fields

NameDatatypeDescription
peeredDnsDomainsarrayThe list of peered DNS domains.

Methods

NameAccessible byRequired ParamsDescription
listSELECTnetworksId, projectsId, servicesIdLists peered DNS domains for a connection.
createINSERTnetworksId, projectsId, servicesIdCreates a peered DNS domain which sends requests for records in given namespace originating in the service producer VPC network to the consumer VPC network to be resolved.
deleteDELETEnetworksId, peeredDnsDomainsId, projectsId, servicesIdDeletes a peered DNS domain.

SELECT examples

Lists peered DNS domains for a connection.

SELECT
peeredDnsDomains
FROM google.servicenetworking.peered_dns_domains
WHERE networksId = '{{ networksId }}'
AND projectsId = '{{ projectsId }}'
AND servicesId = '{{ servicesId }}';

INSERT example

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

/*+ create */
INSERT INTO google.servicenetworking.peered_dns_domains (
networksId,
projectsId,
servicesId,
dnsSuffix,
name
)
SELECT
'{{ networksId }}',
'{{ projectsId }}',
'{{ servicesId }}',
'{{ dnsSuffix }}',
'{{ name }}'
;

DELETE example

Deletes the specified peered_dns_domains resource.

/*+ delete */
DELETE FROM google.servicenetworking.peered_dns_domains
WHERE networksId = '{{ networksId }}'
AND peeredDnsDomainsId = '{{ peeredDnsDomainsId }}'
AND projectsId = '{{ projectsId }}'
AND servicesId = '{{ servicesId }}';