Skip to main content

nat_gateways

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

Overview

Namenat_gateways
TypeResource
Idazure.network.nat_gateways

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
etagtextA unique read-only string that changes whenever the resource is updated.
idle_timeout_in_minutestextfield from the properties object
locationtextResource location.
natGatewayNametextfield from the properties object
provisioning_statetextfield from the properties object
public_ip_addressestextfield from the properties object
public_ip_prefixestextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
skutextSKU of nat gateway.
subnetstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
zonestextA list of availability zones denoting the zone in which Nat Gateway should be deployed.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnatGatewayName, resourceGroupName, subscriptionIdGets the specified nat gateway in a specified resource group.
listSELECTresourceGroupName, subscriptionIdGets all nat gateways in a resource group.
list_allSELECTsubscriptionIdGets all the Nat Gateways in a subscription.
create_or_updateINSERTnatGatewayName, resourceGroupName, subscriptionIdCreates or updates a nat gateway.
deleteDELETEnatGatewayName, resourceGroupName, subscriptionIdDeletes the specified nat gateway.
update_tagsEXECnatGatewayName, resourceGroupName, subscriptionIdUpdates nat gateway tags.

SELECT examples

Gets all the Nat Gateways in a subscription.

SELECT
id,
name,
etag,
idle_timeout_in_minutes,
location,
natGatewayName,
provisioning_state,
public_ip_addresses,
public_ip_prefixes,
resourceGroupName,
resource_guid,
sku,
subnets,
subscriptionId,
tags,
type,
zones
FROM azure.network.vw_nat_gateways
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.nat_gateways (
natGatewayName,
resourceGroupName,
subscriptionId,
sku,
properties,
zones,
id,
location,
tags
)
SELECT
'{{ natGatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ sku }}',
'{{ properties }}',
'{{ zones }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified nat_gateways resource.

/*+ delete */
DELETE FROM azure.network.nat_gateways
WHERE natGatewayName = '{{ natGatewayName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';