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

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting LocalNetworkGateway resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the local network gateway.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, localNetworkGatewayName, subscriptionIdGets the specified local network gateway in a resource group.
listselectresourceGroupName, subscriptionIdGets all the local network gateways in a resource group.
create_or_updateinsertresourceGroupName, localNetworkGatewayName, subscriptionId, data__propertiesCreates or updates a local network gateway in the specified resource group.
deletedeleteresourceGroupName, localNetworkGatewayName, subscriptionIdDeletes the specified local network gateway.
update_tagsexecresourceGroupName, localNetworkGatewayName, subscriptionIdUpdates a local network gateway tags.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
localNetworkGatewayNamestringThe name of the local network gateway.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the specified local network gateway in a resource group.

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.network.local_network_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND localNetworkGatewayName = '{{ localNetworkGatewayName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates a local network gateway in the specified resource group.

INSERT INTO azure.network.local_network_gateways (
data__properties,
resourceGroupName,
localNetworkGatewayName,
subscriptionId
)
SELECT
'{{ properties }}' /* required */,
'{{ resourceGroupName }}',
'{{ localNetworkGatewayName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples

Deletes the specified local network gateway.

DELETE FROM azure.network.local_network_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND localNetworkGatewayName = '{{ localNetworkGatewayName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Updates a local network gateway tags.

EXEC azure.network.local_network_gateways.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@localNetworkGatewayName='{{ localNetworkGatewayName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;