peered_dns_domains
Creates, updates, deletes, gets or lists a peered_dns_domains
resource.
Overview
Name | peered_dns_domains |
Type | Resource |
Id | google.servicenetworking.peered_dns_domains |
Fields
Name | Datatype | Description |
---|---|---|
peeredDnsDomains | array | The list of peered DNS domains. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | networksId, projectsId, servicesId | Lists peered DNS domains for a connection. |
create | INSERT | networksId, projectsId, servicesId | Creates 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. |
delete | DELETE | networksId, peeredDnsDomainsId, projectsId, servicesId | Deletes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.servicenetworking.peered_dns_domains (
networksId,
projectsId,
servicesId,
dnsSuffix,
name
)
SELECT
'{{ networksId }}',
'{{ projectsId }}',
'{{ servicesId }}',
'{{ dnsSuffix }}',
'{{ name }}'
;
- name: your_resource_model_name
props:
- name: dnsSuffix
value: string
- name: name
value: string
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 }}';