Skip to main content

forwarding_rules

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

Overview

Nameforwarding_rules
TypeResource
Idazure.dns_resolver.forwarding_rules

Fields

NameDatatypeDescription
dnsForwardingRulesetNametextfield from the properties object
domain_nametextfield from the properties object
etagtextETag of the forwarding rule.
forwardingRuleNametextfield from the properties object
forwarding_rule_statetextfield from the properties object
metadatatextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
target_dns_serverstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdnsForwardingRulesetName, forwardingRuleName, resourceGroupName, subscriptionIdGets properties of a forwarding rule in a DNS forwarding ruleset.
listSELECTdnsForwardingRulesetName, resourceGroupName, subscriptionIdLists forwarding rules in a DNS forwarding ruleset.
create_or_updateINSERTdnsForwardingRulesetName, forwardingRuleName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a forwarding rule in a DNS forwarding ruleset.
deleteDELETEdnsForwardingRulesetName, forwardingRuleName, resourceGroupName, subscriptionIdDeletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.
updateUPDATEdnsForwardingRulesetName, forwardingRuleName, resourceGroupName, subscriptionIdUpdates a forwarding rule in a DNS forwarding ruleset.

SELECT examples

Lists forwarding rules in a DNS forwarding ruleset.

SELECT
dnsForwardingRulesetName,
domain_name,
etag,
forwardingRuleName,
forwarding_rule_state,
metadata,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
target_dns_servers
FROM azure.dns_resolver.vw_forwarding_rules
WHERE dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dns_resolver.forwarding_rules (
dnsForwardingRulesetName,
forwardingRuleName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ dnsForwardingRulesetName }}',
'{{ forwardingRuleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a forwarding_rules resource.

/*+ update */
UPDATE azure.dns_resolver.forwarding_rules
SET
properties = '{{ properties }}'
WHERE
dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND forwardingRuleName = '{{ forwardingRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified forwarding_rules resource.

/*+ delete */
DELETE FROM azure.dns_resolver.forwarding_rules
WHERE dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND forwardingRuleName = '{{ forwardingRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';