Skip to main content

local_network_gateways

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

Overview

Namelocal_network_gateways
TypeResource
Idazure.network.local_network_gateways

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
bgp_settingstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
fqdntextfield from the properties object
gateway_ip_addresstextfield from the properties object
localNetworkGatewayNametextfield from the properties object
local_network_address_spacetextfield from the properties object
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocalNetworkGatewayName, resourceGroupName, subscriptionIdGets the specified local network gateway in a resource group.
listSELECTresourceGroupName, subscriptionIdGets all the local network gateways in a resource group.
create_or_updateINSERTlocalNetworkGatewayName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a local network gateway in the specified resource group.
deleteDELETElocalNetworkGatewayName, resourceGroupName, subscriptionIdDeletes the specified local network gateway.
update_tagsEXEClocalNetworkGatewayName, resourceGroupName, subscriptionIdUpdates a local network gateway tags.

SELECT examples

Gets all the local network gateways in a resource group.

SELECT
id,
name,
bgp_settings,
etag,
fqdn,
gateway_ip_address,
localNetworkGatewayName,
local_network_address_space,
location,
provisioning_state,
resourceGroupName,
resource_guid,
subscriptionId,
tags,
type
FROM azure.network.vw_local_network_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.local_network_gateways (
localNetworkGatewayName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
id,
location,
tags
)
SELECT
'{{ localNetworkGatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified local_network_gateways resource.

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