Skip to main content

virtual_network_gateway_nat_rules

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

Overview

Namevirtual_network_gateway_nat_rules
TypeResource
Idazure.network.virtual_network_gateway_nat_rules

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
etagtextA unique read-only string that changes whenever the resource is updated.
external_mappingstextfield from the properties object
internal_mappingstextfield from the properties object
ip_configuration_idtextfield from the properties object
modetextfield from the properties object
natRuleNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type.
virtualNetworkGatewayNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnatRuleName, resourceGroupName, subscriptionId, virtualNetworkGatewayNameRetrieves the details of a nat rule.
list_by_virtual_network_gatewaySELECTresourceGroupName, subscriptionId, virtualNetworkGatewayNameRetrieves all nat rules for a particular virtual network gateway.
create_or_updateINSERTnatRuleName, resourceGroupName, subscriptionId, virtualNetworkGatewayNameCreates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules.
deleteDELETEnatRuleName, resourceGroupName, subscriptionId, virtualNetworkGatewayNameDeletes a nat rule.

SELECT examples

Retrieves all nat rules for a particular virtual network gateway.

SELECT
id,
name,
etag,
external_mappings,
internal_mappings,
ip_configuration_id,
mode,
natRuleName,
provisioning_state,
resourceGroupName,
subscriptionId,
type,
virtualNetworkGatewayName
FROM azure.network.vw_virtual_network_gateway_nat_rules
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.virtual_network_gateway_nat_rules (
natRuleName,
resourceGroupName,
subscriptionId,
virtualNetworkGatewayName,
properties,
name,
id
)
SELECT
'{{ natRuleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkGatewayName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified virtual_network_gateway_nat_rules resource.

/*+ delete */
DELETE FROM azure.network.virtual_network_gateway_nat_rules
WHERE natRuleName = '{{ natRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}';