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

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectResource properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, networkDeviceNameGets the Network Device resource details.
list_by_resource_groupselectsubscriptionId, resourceGroupNameList all the Network Device resources in a given resource group.
list_by_subscriptionselectsubscriptionIdList all the Network Device resources in a given subscription.
createinsertsubscriptionId, resourceGroupName, networkDeviceName, data__propertiesCreate a Network Device resource
updateupdatesubscriptionId, resourceGroupName, networkDeviceNameUpdate certain properties of the Network Device resource.
deletedeletesubscriptionId, resourceGroupName, networkDeviceNameDelete the Network Device resource.
rebootexecsubscriptionId, resourceGroupName, networkDeviceNameReboot the Network Device.
refresh_configurationexecsubscriptionId, resourceGroupName, networkDeviceNameRefreshes the configuration the Network Device.
upgradeexecsubscriptionId, resourceGroupName, networkDeviceNameUpgrades the version of the Network Device.

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
networkDeviceNamestringName of the Network Device.
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

Gets the Network Device resource details.

SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.network_devices
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkDeviceName = '{{ networkDeviceName }}' -- required
;

INSERT examples

Create a Network Device resource

INSERT INTO azure.managed_network_fabric.network_devices (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
networkDeviceName
)
SELECT
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ networkDeviceName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Update certain properties of the Network Device resource.

UPDATE azure.managed_network_fabric.network_devices
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkDeviceName = '{{ networkDeviceName }}' --required
RETURNING
location,
properties,
tags;

DELETE examples

Delete the Network Device resource.

DELETE FROM azure.managed_network_fabric.network_devices
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND networkDeviceName = '{{ networkDeviceName }}' --required
;

Lifecycle Methods

Reboot the Network Device.

EXEC azure.managed_network_fabric.network_devices.reboot 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@networkDeviceName='{{ networkDeviceName }}' --required
@@json=
'{
"rebootType": "{{ rebootType }}"
}'
;