Skip to main content

record_sets

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

Overview

Namerecord_sets
TypeResource
Idazure.private_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
cname_recordtextfield from the properties object
etagtextThe ETag of the record set.
fqdntextfield from the properties object
is_auto_registeredtextfield from the properties object
metadatatextfield from the properties object
mx_recordstextfield from the properties object
privateZoneNametextfield 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
ttltextfield from the properties object
txt_recordstextfield from the properties object
typetextThe type of the record set.

Methods

NameAccessible byRequired ParamsDescription
getSELECTprivateZoneName, recordType, relativeRecordSetName, resourceGroupName, subscriptionIdGets a record set.
listSELECTprivateZoneName, resourceGroupName, subscriptionIdLists all record sets in a Private DNS zone.
list_by_typeSELECTprivateZoneName, recordType, resourceGroupName, subscriptionIdLists the record sets of a specified type in a Private DNS zone.
create_or_updateINSERTprivateZoneName, recordType, relativeRecordSetName, resourceGroupName, subscriptionIdCreates or updates a record set within a Private DNS zone.
deleteDELETEprivateZoneName, recordType, relativeRecordSetName, resourceGroupName, subscriptionIdDeletes a record set from a Private DNS zone. This operation cannot be undone.
updateUPDATEprivateZoneName, recordType, relativeRecordSetName, resourceGroupName, subscriptionIdUpdates a record set within a Private DNS zone.

SELECT examples

Lists all record sets in a Private DNS zone.

SELECT
id,
name,
a_records,
aaaa_records,
cname_record,
etag,
fqdn,
is_auto_registered,
metadata,
mx_records,
privateZoneName,
ptr_records,
recordType,
relativeRecordSetName,
resourceGroupName,
soa_record,
srv_records,
subscriptionId,
ttl,
txt_records,
type
FROM azure.private_dns.vw_record_sets
WHERE privateZoneName = '{{ privateZoneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a record_sets resource.

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

DELETE example

Deletes the specified record_sets resource.

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