Skip to main content

logical_networks

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

Overview

Namelogical_networks
TypeResource
Idazure_stack.azure_stack_hci.logical_networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
extendedLocationobjectThe extendedLocation of the resource.
locationstringThe geo-location where the resource lives
propertiesobjectProperties under the logical network resource
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, logicalNetworkName
listselectsubscriptionId, resourceGroupNameLists all of the logical networks in the specified resource group. Use the nextLink property in the response to get the next page of logical networks.
list_allselectsubscriptionIdLists all of the logical networks in the specified subscription. Use the nextLink property in the response to get the next page of logical networks.
create_or_updateinsertsubscriptionId, resourceGroupName, logicalNetworkNameThe operation to create or update a logical network. Please note some properties can be set only during logical network creation.
updateupdatesubscriptionId, resourceGroupName, logicalNetworkNameThe operation to update a logical network.
deletedeletesubscriptionId, resourceGroupName, logicalNetworkNameThe operation to delete a logical 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
logicalNetworkNamestringName of the logical 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

OK

SELECT
extendedLocation,
location,
properties,
tags
FROM azure_stack.azure_stack_hci.logical_networks
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND logicalNetworkName = '{{ logicalNetworkName }}' -- required
;

INSERT examples

The operation to create or update a logical network. Please note some properties can be set only during logical network creation.

INSERT INTO azure_stack.azure_stack_hci.logical_networks (
data__properties,
data__extendedLocation,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
logicalNetworkName
)
SELECT
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ logicalNetworkName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

UPDATE examples

The operation to update a logical network.

UPDATE azure_stack.azure_stack_hci.logical_networks
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND logicalNetworkName = '{{ logicalNetworkName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

The operation to delete a logical network.

DELETE FROM azure_stack.azure_stack_hci.logical_networks
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND logicalNetworkName = '{{ logicalNetworkName }}' --required
;