Skip to main content

dns_peerings

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

Overview

Namedns_peerings
TypeResource
Idgoogle.datafusion.dns_peerings

Fields

NameDatatypeDescription
namestringRequired. The resource name of the dns peering zone. Format: projects/{project}/locations/{location}/instances/{instance}/dnsPeerings/{dns_peering}
descriptionstringOptional. Optional description of the dns zone.
domainstringRequired. The dns name suffix of the zone.
targetNetworkstringOptional. Optional target network to which dns peering should happen.
targetProjectstringOptional. Optional target project to which dns peering should happen.

Methods

NameAccessible byRequired ParamsDescription
listSELECTinstancesId, locationsId, projectsIdLists DNS peerings for a given resource.
createINSERTinstancesId, locationsId, projectsIdCreates DNS peering on the given resource.
deleteDELETEdnsPeeringsId, instancesId, locationsId, projectsIdDeletes DNS peering on the given resource.

SELECT examples

Lists DNS peerings for a given resource.

SELECT
name,
description,
domain,
targetNetwork,
targetProject
FROM google.datafusion.dns_peerings
WHERE instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.datafusion.dns_peerings (
instancesId,
locationsId,
projectsId,
name,
domain,
description,
targetProject,
targetNetwork
)
SELECT
'{{ instancesId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ domain }}',
'{{ description }}',
'{{ targetProject }}',
'{{ targetNetwork }}'
;

DELETE example

Deletes the specified dns_peerings resource.

/*+ delete */
DELETE FROM google.datafusion.dns_peerings
WHERE dnsPeeringsId = '{{ dnsPeeringsId }}'
AND instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';