record_sets
Creates, updates, deletes, gets or lists a record_sets
resource.
Overview
Name | record_sets |
Type | Resource |
Id | azure.private_dns.record_sets |
Fields
- vw_record_sets
- record_sets
Name | Datatype | Description |
---|---|---|
id | text | The ID of the record set. |
name | text | The name of the record set. |
a_records | text | field from the properties object |
aaaa_records | text | field from the properties object |
cname_record | text | field from the properties object |
etag | text | The ETag of the record set. |
fqdn | text | field from the properties object |
is_auto_registered | text | field from the properties object |
metadata | text | field from the properties object |
mx_records | text | field from the properties object |
privateZoneName | text | field from the properties object |
ptr_records | text | field from the properties object |
recordType | text | field from the properties object |
relativeRecordSetName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
soa_record | text | field from the properties object |
srv_records | text | field from the properties object |
subscriptionId | text | field from the properties object |
ttl | text | field from the properties object |
txt_records | text | field from the properties object |
type | text | The type of the record set. |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the record set. |
name | string | The name of the record set. |
etag | string | The ETag of the record set. |
properties | object | Represents the properties of the records in the record set. |
type | string | The type of the record set. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | privateZoneName, recordType, relativeRecordSetName, resourceGroupName, subscriptionId | Gets a record set. |
list | SELECT | privateZoneName, resourceGroupName, subscriptionId | Lists all record sets in a Private DNS zone. |
list_by_type | SELECT | privateZoneName, recordType, resourceGroupName, subscriptionId | Lists the record sets of a specified type in a Private DNS zone. |
create_or_update | INSERT | privateZoneName, recordType, relativeRecordSetName, resourceGroupName, subscriptionId | Creates or updates a record set within a Private DNS zone. |
delete | DELETE | privateZoneName, recordType, relativeRecordSetName, resourceGroupName, subscriptionId | Deletes a record set from a Private DNS zone. This operation cannot be undone. |
update | UPDATE | privateZoneName, recordType, relativeRecordSetName, resourceGroupName, subscriptionId | Updates a record set within a Private DNS zone. |
SELECT
examples
Lists all record sets in a Private DNS zone.
- vw_record_sets
- record_sets
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 }}';
SELECT
id,
name,
etag,
properties,
type
FROM azure.private_dns.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.private_dns.record_sets (
privateZoneName,
recordType,
relativeRecordSetName,
resourceGroupName,
subscriptionId,
etag,
properties
)
SELECT
'{{ privateZoneName }}',
'{{ recordType }}',
'{{ relativeRecordSetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ etag }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: etag
value: string
- name: properties
value:
- name: metadata
value: object
- name: ttl
value: integer
- name: fqdn
value: string
- name: isAutoRegistered
value: boolean
- name: aRecords
value:
- - name: ipv4Address
value: string
- name: aaaaRecords
value:
- - name: ipv6Address
value: string
- name: cnameRecord
value:
- name: cname
value: string
- name: mxRecords
value:
- - name: preference
value: integer
- name: exchange
value: string
- name: ptrRecords
value:
- - name: ptrdname
value: string
- name: soaRecord
value:
- name: host
value: string
- name: email
value: string
- name: serialNumber
value: integer
- name: refreshTime
value: integer
- name: retryTime
value: integer
- name: expireTime
value: integer
- name: minimumTtl
value: integer
- name: srvRecords
value:
- - name: priority
value: integer
- name: weight
value: integer
- name: port
value: integer
- name: target
value: string
- name: txtRecords
value:
- - name: value
value:
- string
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 }}';