Skip to main content

network_devices

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

Overview

Namenetwork_devices
TypeResource
Idazure.managed_network_fabric.network_devices

Fields

NameDatatypeDescription
administrative_statetextfield from the properties object
annotationtextfield from the properties object
configuration_statetextfield from the properties object
host_nametextfield from the properties object
locationtextThe geo-location where the resource lives
management_ipv4_addresstextfield from the properties object
management_ipv6_addresstextfield from the properties object
networkDeviceNametextfield from the properties object
network_device_roletextfield from the properties object
network_device_skutextfield from the properties object
network_rack_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serial_numbertextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkDeviceName, resourceGroupName, subscriptionIdGets the Network Device resource details.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the Network Device resources in a given resource group.
list_by_subscriptionSELECTsubscriptionIdList all the Network Device resources in a given subscription.
createINSERTnetworkDeviceName, resourceGroupName, subscriptionId, data__propertiesCreate a Network Device resource
deleteDELETEnetworkDeviceName, resourceGroupName, subscriptionIdDelete the Network Device resource.
updateUPDATEnetworkDeviceName, resourceGroupName, subscriptionIdUpdate certain properties of the Network Device resource.
rebootEXECnetworkDeviceName, resourceGroupName, subscriptionIdReboot the Network Device.
refresh_configurationEXECnetworkDeviceName, resourceGroupName, subscriptionIdRefreshes the configuration the Network Device.
upgradeEXECnetworkDeviceName, resourceGroupName, subscriptionIdUpgrades the version of the Network Device.

SELECT examples

List all the Network Device resources in a given subscription.

SELECT
administrative_state,
annotation,
configuration_state,
host_name,
location,
management_ipv4_address,
management_ipv6_address,
networkDeviceName,
network_device_role,
network_device_sku,
network_rack_id,
provisioning_state,
resourceGroupName,
serial_number,
subscriptionId,
tags,
version
FROM azure.managed_network_fabric.vw_network_devices
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.managed_network_fabric.network_devices (
networkDeviceName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ networkDeviceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a network_devices resource.

/*+ update */
UPDATE azure.managed_network_fabric.network_devices
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
networkDeviceName = '{{ networkDeviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified network_devices resource.

/*+ delete */
DELETE FROM azure.managed_network_fabric.network_devices
WHERE networkDeviceName = '{{ networkDeviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';