Skip to main content

record_sets

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

Overview

Namerecord_sets
TypeResource
Idazure.dns.record_sets

Fields

NameDatatypeDescription
idtextThe ID of the record set.
nametextThe name of the record set.
a_recordstextfield from the properties object
aaaa_recordstextfield from the properties object
caa_recordstextfield from the properties object
cname_recordtextfield from the properties object
ds_recordstextfield from the properties object
etagtextThe etag of the record set.
fqdntextfield from the properties object
metadatatextfield from the properties object
mx_recordstextfield from the properties object
naptr_recordstextfield from the properties object
ns_recordstextfield from the properties object
provisioning_statetextfield from the properties object
ptr_recordstextfield from the properties object
recordTypetextfield from the properties object
relativeRecordSetNametextfield from the properties object
resourceGroupNametextfield from the properties object
soa_recordtextfield from the properties object
srv_recordstextfield from the properties object
subscriptionIdtextfield from the properties object
target_resourcetextfield from the properties object
tlsa_recordstextfield from the properties object
traffic_management_profiletextfield from the properties object
ttltextfield from the properties object
txt_recordstextfield from the properties object
typetextThe type of the record set.
zoneNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTrecordType, relativeRecordSetName, resourceGroupName, subscriptionId, zoneNameGets a record set.
list_by_dns_zoneSELECTresourceGroupName, subscriptionId, zoneNameLists all record sets in a DNS zone.
list_by_typeSELECTrecordType, resourceGroupName, subscriptionId, zoneNameLists the record sets of a specified type in a DNS zone.
create_or_updateINSERTrecordType, relativeRecordSetName, resourceGroupName, subscriptionId, zoneNameCreates or updates a record set within a DNS zone. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).
deleteDELETErecordType, relativeRecordSetName, resourceGroupName, subscriptionId, zoneNameDeletes a record set from a DNS zone. This operation cannot be undone. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted).
updateUPDATErecordType, relativeRecordSetName, resourceGroupName, subscriptionId, zoneNameUpdates a record set within a DNS zone.

SELECT examples

Lists all record sets in a DNS zone.

SELECT
id,
name,
a_records,
aaaa_records,
caa_records,
cname_record,
ds_records,
etag,
fqdn,
metadata,
mx_records,
naptr_records,
ns_records,
provisioning_state,
ptr_records,
recordType,
relativeRecordSetName,
resourceGroupName,
soa_record,
srv_records,
subscriptionId,
target_resource,
tlsa_records,
traffic_management_profile,
ttl,
txt_records,
type,
zoneName
FROM azure.dns.vw_record_sets
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND zoneName = '{{ zoneName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dns.record_sets (
recordType,
relativeRecordSetName,
resourceGroupName,
subscriptionId,
zoneName,
etag,
properties
)
SELECT
'{{ recordType }}',
'{{ relativeRecordSetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ zoneName }}',
'{{ etag }}',
'{{ properties }}'
;

UPDATE example

Updates a record_sets resource.

/*+ update */
UPDATE azure.dns.record_sets
SET
etag = '{{ etag }}',
properties = '{{ properties }}'
WHERE
recordType = '{{ recordType }}'
AND relativeRecordSetName = '{{ relativeRecordSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND zoneName = '{{ zoneName }}';

DELETE example

Deletes the specified record_sets resource.

/*+ delete */
DELETE FROM azure.dns.record_sets
WHERE recordType = '{{ recordType }}'
AND relativeRecordSetName = '{{ relativeRecordSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND zoneName = '{{ zoneName }}';