dns_record_sets
Creates, updates, deletes, gets or lists a dns_record_sets
resource.
Overview
Name | dns_record_sets |
Type | Resource |
Id | google.servicenetworking.dns_record_sets |
Fields
Name | Datatype | Description |
---|---|---|
dnsRecordSets | array | DNS record Set Resource |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | servicesId | Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network. |
add | INSERT | servicesId | Service producers can use this method to add DNS record sets to private DNS zones in the shared producer host project. |
remove | DELETE | servicesId | Service producers can use this method to remove DNS record sets from private DNS zones in the shared producer host project. |
update | UPDATE | servicesId | Service producers can use this method to update DNS record sets from private DNS zones in the shared producer host project. |
SELECT
examples
Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.
SELECT
dnsRecordSets
FROM google.servicenetworking.dns_record_sets
WHERE servicesId = '{{ servicesId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dns_record_sets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.servicenetworking.dns_record_sets (
servicesId,
zone,
consumerNetwork,
dnsRecordSet
)
SELECT
'{{ servicesId }}',
'{{ zone }}',
'{{ consumerNetwork }}',
'{{ dnsRecordSet }}'
;
- name: your_resource_model_name
props:
- name: zone
value: string
- name: consumerNetwork
value: string
- name: dnsRecordSet
value:
- name: ttl
value: string
- name: data
value:
- string
- name: domain
value: string
- name: type
value: string
UPDATE
example
Updates a dns_record_sets
resource.
/*+ update */
UPDATE google.servicenetworking.dns_record_sets
SET
newDnsRecordSet = '{{ newDnsRecordSet }}',
existingDnsRecordSet = '{{ existingDnsRecordSet }}',
zone = '{{ zone }}',
consumerNetwork = '{{ consumerNetwork }}'
WHERE
servicesId = '{{ servicesId }}';
DELETE
example
Deletes the specified dns_record_sets
resource.
/*+ delete */
DELETE FROM google.servicenetworking.dns_record_sets
WHERE servicesId = '{{ servicesId }}';