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:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
bgpSettingsobjectLocal network gateway's BGP speaker settings.
etagstringA unique read-only string that changes whenever the resource is updated.
fqdnstringFQDN of local network gateway.
gatewayIpAddressstringIP address of local network gateway.
localNetworkAddressSpaceobjectLocal network site address space.
locationstringResource location.
provisioningStatestringThe provisioning state of the local network gateway resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
resourceGuidstringThe resource GUID property of the local network gateway resource.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, local_network_gateway_name, subscription_idGets the specified local network gateway in a resource group.
listselectresource_group_name, subscription_idGets all the local network gateways in a resource group.
create_or_updateinsertresource_group_name, local_network_gateway_name, subscription_id, propertiesCreates or updates a local network gateway in the specified resource group.
update_tagsupdateresource_group_name, local_network_gateway_name, subscription_idUpdates a local network gateway tags.
create_or_updatereplaceresource_group_name, local_network_gateway_name, subscription_id, propertiesCreates or updates a local network gateway in the specified resource group.
deletedeleteresource_group_name, local_network_gateway_name, subscription_idDeletes the specified local network gateway.

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
local_network_gateway_namestringThe name of the local network gateway. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the specified local network gateway in a resource group.

SELECT
id,
name,
bgpSettings,
etag,
fqdn,
gatewayIpAddress,
localNetworkAddressSpace,
location,
provisioningState,
resourceGuid,
tags,
type
FROM azure.network.local_network_gateways
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND local_network_gateway_name = '{{ local_network_gateway_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure.network.local_network_gateways (
id,
location,
tags,
properties,
resource_group_name,
local_network_gateway_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ local_network_gateway_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
tags,
type
;

UPDATE examples

Updates a local network gateway tags.

UPDATE azure.network.local_network_gateways
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND local_network_gateway_name = '{{ local_network_gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

REPLACE examples

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

REPLACE azure.network.local_network_gateways
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND local_network_gateway_name = '{{ local_network_gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

DELETE examples

Deletes the specified local network gateway.

DELETE FROM azure.network.local_network_gateways
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND local_network_gateway_name = '{{ local_network_gateway_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;