dns_forwarding_rulesets
Creates, updates, deletes, gets or lists a dns_forwarding_rulesets
resource.
Overview
Name | dns_forwarding_rulesets |
Type | Resource |
Id | azure.dns_resolver.dns_forwarding_rulesets |
Fields
- vw_dns_forwarding_rulesets
- dns_forwarding_rulesets
Name | Datatype | Description |
---|---|---|
dnsForwardingRulesetName | text | field from the properties object |
dns_resolver_outbound_endpoints | text | field from the properties object |
etag | text | ETag of the DNS forwarding ruleset. |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_guid | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
etag | string | ETag of the DNS forwarding ruleset. |
location | string | The geo-location where the resource lives |
properties | object | Represents the properties of a DNS forwarding ruleset. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dnsForwardingRulesetName, resourceGroupName, subscriptionId | Gets a DNS forwarding ruleset properties. |
list | SELECT | subscriptionId | Lists DNS forwarding rulesets in all resource groups of a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists DNS forwarding rulesets within a resource group. |
list_by_virtual_network | SELECT | resourceGroupName, subscriptionId, virtualNetworkName | Lists DNS forwarding ruleset resource IDs attached to a virtual network. |
create_or_update | INSERT | dnsForwardingRulesetName, resourceGroupName, subscriptionId, data__properties | Creates or updates a DNS forwarding ruleset. |
delete | DELETE | dnsForwardingRulesetName, resourceGroupName, subscriptionId | Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted. |
update | UPDATE | dnsForwardingRulesetName, resourceGroupName, subscriptionId | Updates a DNS forwarding ruleset. |
SELECT
examples
Lists DNS forwarding rulesets in all resource groups of a subscription.
- vw_dns_forwarding_rulesets
- dns_forwarding_rulesets
SELECT
dnsForwardingRulesetName,
dns_resolver_outbound_endpoints,
etag,
location,
provisioning_state,
resourceGroupName,
resource_guid,
subscriptionId,
system_data,
tags
FROM azure.dns_resolver.vw_dns_forwarding_rulesets
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
etag,
location,
properties,
systemData,
tags
FROM azure.dns_resolver.dns_forwarding_rulesets
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dns_forwarding_rulesets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.dns_resolver.dns_forwarding_rulesets (
dnsForwardingRulesetName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ dnsForwardingRulesetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: etag
value: string
- name: properties
value:
- name: dnsResolverOutboundEndpoints
value:
- - name: id
value: string
- name: provisioningState
value: []
- name: resourceGuid
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a dns_forwarding_rulesets
resource.
/*+ update */
UPDATE azure.dns_resolver.dns_forwarding_rulesets
SET
dnsResolverOutboundEndpoints = '{{ dnsResolverOutboundEndpoints }}',
tags = '{{ tags }}'
WHERE
dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified dns_forwarding_rulesets
resource.
/*+ delete */
DELETE FROM azure.dns_resolver.dns_forwarding_rulesets
WHERE dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';