network_devices
Creates, updates, deletes, gets or lists a network_devices
resource.
Overview
Name | network_devices |
Type | Resource |
Id | azure.managed_network_fabric.network_devices |
Fields
- vw_network_devices
- network_devices
Name | Datatype | Description |
---|---|---|
administrative_state | text | field from the properties object |
annotation | text | field from the properties object |
configuration_state | text | field from the properties object |
host_name | text | field from the properties object |
location | text | The geo-location where the resource lives |
management_ipv4_address | text | field from the properties object |
management_ipv6_address | text | field from the properties object |
networkDeviceName | text | field from the properties object |
network_device_role | text | field from the properties object |
network_device_sku | text | field from the properties object |
network_rack_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serial_number | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Network Device Properties defines the properties of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkDeviceName, resourceGroupName, subscriptionId | Gets the Network Device resource details. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all the Network Device resources in a given resource group. |
list_by_subscription | SELECT | subscriptionId | List all the Network Device resources in a given subscription. |
create | INSERT | networkDeviceName, resourceGroupName, subscriptionId, data__properties | Create a Network Device resource |
delete | DELETE | networkDeviceName, resourceGroupName, subscriptionId | Delete the Network Device resource. |
update | UPDATE | networkDeviceName, resourceGroupName, subscriptionId | Update certain properties of the Network Device resource. |
reboot | EXEC | networkDeviceName, resourceGroupName, subscriptionId | Reboot the Network Device. |
refresh_configuration | EXEC | networkDeviceName, resourceGroupName, subscriptionId | Refreshes the configuration the Network Device. |
upgrade | EXEC | networkDeviceName, resourceGroupName, subscriptionId | Upgrades the version of the Network Device. |
SELECT
examples
List all the Network Device resources in a given subscription.
- vw_network_devices
- network_devices
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 }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.network_devices
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new network_devices
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: annotation
value: string
- name: hostName
value: string
- name: serialNumber
value: string
- name: version
value: string
- name: networkDeviceSku
value: string
- name: networkDeviceRole
value: string
- name: networkRackId
value: string
- name: managementIpv4Address
value: string
- name: managementIpv6Address
value: string
- name: configurationState
value: []
- name: provisioningState
value: []
- name: administrativeState
value: []
- name: tags
value: object
- name: location
value: string
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 }}';