Skip to main content

l2_networks

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

Overview

Namel2_networks
TypeResource
Idazure.nexus.l2_networks

Fields

The following fields are returned by SELECT queries:

The resource has been successfully retrieved.

NameDatatypeDescription
extendedLocationobjectThe extended location of the cluster associated with the resource. (title: ExtendedLocation represents the Azure custom location where the resource will be created.)
locationstringThe geo-location where the resource lives
propertiesobjectThe list of the resource properties. (title: L2NetworkProperties represents properties of the L2 network.)
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, l2NetworkNameGet properties of the provided layer 2 (L2) network.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGet a list of layer 2 (L2) networks in the provided resource group.
list_by_subscriptionselectsubscriptionIdGet a list of layer 2 (L2) networks in the provided subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, l2NetworkName, data__extendedLocation, data__propertiesCreate a new layer 2 (L2) network or update the properties of the existing network.
updateupdatesubscriptionId, resourceGroupName, l2NetworkNameUpdate tags associated with the provided layer 2 (L2) network.
deletedeletesubscriptionId, resourceGroupName, l2NetworkNameDelete the provided layer 2 (L2) network.

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
l2NetworkNamestringThe name of the L2 network.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get properties of the provided layer 2 (L2) network.

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.nexus.l2_networks
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND l2NetworkName = '{{ l2NetworkName }}' -- required
;

INSERT examples

Create a new layer 2 (L2) network or update the properties of the existing network.

INSERT INTO azure.nexus.l2_networks (
data__extendedLocation,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
l2NetworkName
)
SELECT
'{{ extendedLocation }}' /* required */,
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ l2NetworkName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

UPDATE examples

Update tags associated with the provided layer 2 (L2) network.

UPDATE azure.nexus.l2_networks
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND l2NetworkName = '{{ l2NetworkName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

Delete the provided layer 2 (L2) network.

DELETE FROM azure.nexus.l2_networks
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND l2NetworkName = '{{ l2NetworkName }}' --required
;