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

NameDatatypeDescription
dhcp_optionstextfield from the properties object
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
logicalNetworkNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subnetstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
vm_switch_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlogicalNetworkName, resourceGroupName, subscriptionId
listSELECTresourceGroupName, subscriptionIdLists 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_updateINSERTlogicalNetworkName, resourceGroupName, subscriptionIdThe operation to create or update a logical network. Please note some properties can be set only during logical network creation.
deleteDELETElogicalNetworkName, resourceGroupName, subscriptionIdThe operation to delete a logical network.
updateUPDATElogicalNetworkName, resourceGroupName, subscriptionIdThe operation to update a logical network.

SELECT examples

Lists all of the logical networks in the specified subscription. Use the nextLink property in the response to get the next page of logical networks.

SELECT
dhcp_options,
extended_location,
location,
logicalNetworkName,
provisioning_state,
resourceGroupName,
status,
subnets,
subscriptionId,
tags,
vm_switch_name
FROM azure_stack.azure_stack_hci.vw_logical_networks
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_stack.azure_stack_hci.logical_networks (
logicalNetworkName,
resourceGroupName,
subscriptionId,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ logicalNetworkName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a logical_networks resource.

/*+ update */
UPDATE azure_stack.azure_stack_hci.logical_networks
SET
tags = '{{ tags }}'
WHERE
logicalNetworkName = '{{ logicalNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified logical_networks resource.

/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.logical_networks
WHERE logicalNetworkName = '{{ logicalNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';