dns_zones
Creates, updates, deletes, gets or lists a dns_zones
resource.
Overview
Name | dns_zones |
Type | Resource |
Id | google.servicenetworking.dns_zones |
Fields
Name | Datatype | Description |
---|---|---|
consumerPeeringZone | object | Represents a DNS zone resource. |
producerPrivateZone | object | Represents a DNS zone resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dnsZonesId, networksId, projectsId, servicesId | Service producers can use this method to retrieve a DNS zone in the shared producer host project and the matching peering zones in consumer project |
list | SELECT | networksId, projectsId, servicesId | Service producers can use this method to retrieve a list of available DNS zones in the shared producer host project and the matching peering zones in the consumer project. |
add | INSERT | servicesId | Service producers can use this method to add private DNS zones in the shared producer host project and matching peering zones in the consumer project. |
remove | DELETE | servicesId | Service producers can use this method to remove private DNS zones in the shared producer host project and matching peering zones in the consumer project. |
SELECT
examples
- Service producers can use this method to retrieve a list of available DNS zones in the shared producer host project and the matching peering zones in the consumer project. *
SELECT
consumerPeeringZone,
producerPrivateZone
FROM google.servicenetworking.dns_zones
WHERE networksId = '{{ networksId }}'
AND projectsId = '{{ projectsId }}'
AND servicesId = '{{ servicesId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dns_zones
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.servicenetworking.dns_zones (
servicesId,
name,
dnsSuffix,
consumerNetwork
)
SELECT
'{{ servicesId }}',
'{{ name }}',
'{{ dnsSuffix }}',
'{{ consumerNetwork }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: dnsSuffix
value: string
- name: consumerNetwork
value: string
DELETE
example
Deletes the specified dns_zones
resource.
/*+ delete */
DELETE FROM google.servicenetworking.dns_zones
WHERE servicesId = '{{ servicesId }}';