vw_network_devices
Creates, updates, deletes, gets or lists a vw_network_devices
resource.
Overview
Name | vw_network_devices |
Type | View |
Id | azure.managed_network_fabric.vw_network_devices |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
location as location,
tags as tags,
JSON_EXTRACT(properties, '$.annotation') as "annotation",
JSON_EXTRACT(properties, '$.hostName') as "host_name",
JSON_EXTRACT(properties, '$.serialNumber') as "serial_number",
JSON_EXTRACT(properties, '$.version') as "version",
JSON_EXTRACT(properties, '$.networkDeviceSku') as "network_device_sku",
JSON_EXTRACT(properties, '$.networkDeviceRole') as "network_device_role",
JSON_EXTRACT(properties, '$.networkRackId') as "network_rack_id",
JSON_EXTRACT(properties, '$.managementIpv4Address') as "management_ipv4_address",
JSON_EXTRACT(properties, '$.managementIpv6Address') as "management_ipv6_address",
JSON_EXTRACT(properties, '$.configurationState') as "configuration_state",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.administrativeState') as "administrative_state",
subscriptionId,
resourceGroupName,
networkDeviceName
FROM azure.managed_network_fabric.network_devices
WHERE subscriptionId = 'replace-me';
SELECT
location as location,
tags as tags,
json_extract_path_text(properties, '$.annotation') as "annotation",
json_extract_path_text(properties, '$.hostName') as "host_name",
json_extract_path_text(properties, '$.serialNumber') as "serial_number",
json_extract_path_text(properties, '$.version') as "version",
json_extract_path_text(properties, '$.networkDeviceSku') as "network_device_sku",
json_extract_path_text(properties, '$.networkDeviceRole') as "network_device_role",
json_extract_path_text(properties, '$.networkRackId') as "network_rack_id",
json_extract_path_text(properties, '$.managementIpv4Address') as "management_ipv4_address",
json_extract_path_text(properties, '$.managementIpv6Address') as "management_ipv6_address",
json_extract_path_text(properties, '$.configurationState') as "configuration_state",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.administrativeState') as "administrative_state",
subscriptionId,
resourceGroupName,
networkDeviceName
FROM azure.managed_network_fabric.network_devices
WHERE subscriptionId = 'replace-me';