dns_peerings
Creates, updates, deletes, gets or lists a dns_peerings
resource.
Overview
Name | dns_peerings |
Type | Resource |
Id | google.datafusion.dns_peerings |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. The resource name of the dns peering zone. Format: projects/{project}/locations/{location}/instances/{instance}/dnsPeerings/{dns_peering} |
description | string | Optional. Optional description of the dns zone. |
domain | string | Required. The dns name suffix of the zone. |
targetNetwork | string | Optional. Optional target network to which dns peering should happen. |
targetProject | string | Optional. Optional target project to which dns peering should happen. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | instancesId, locationsId, projectsId | Lists DNS peerings for a given resource. |
create | INSERT | instancesId, locationsId, projectsId | Creates DNS peering on the given resource. |
delete | DELETE | dnsPeeringsId, instancesId, locationsId, projectsId | Deletes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.datafusion.dns_peerings (
instancesId,
locationsId,
projectsId,
name,
domain,
description,
targetProject,
targetNetwork
)
SELECT
'{{ instancesId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ domain }}',
'{{ description }}',
'{{ targetProject }}',
'{{ targetNetwork }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: domain
value: string
- name: description
value: string
- name: targetProject
value: string
- name: targetNetwork
value: string
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 }}';