Skip to main content

vw_resources

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

Overview

Namevw_resources
TypeView
Idazure.iot_hub.vw_resources

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
location as location,
etag as etag,
sku as sku,
identity as identity,
systemData as system_data,
type as type,
tags as tags,
JSON_EXTRACT(properties, '$.authorizationPolicies') as "authorization_policies",
JSON_EXTRACT(properties, '$.disableLocalAuth') as "disable_local_auth",
JSON_EXTRACT(properties, '$.disableDeviceSAS') as "disable_device_sas",
JSON_EXTRACT(properties, '$.disableModuleSAS') as "disable_module_sas",
JSON_EXTRACT(properties, '$.restrictOutboundNetworkAccess') as "restrict_outbound_network_access",
JSON_EXTRACT(properties, '$.allowedFqdnList') as "allowed_fqdn_list",
JSON_EXTRACT(properties, '$.publicNetworkAccess') as "public_network_access",
JSON_EXTRACT(properties, '$.ipFilterRules') as "ip_filter_rules",
JSON_EXTRACT(properties, '$.networkRuleSets') as "network_rule_sets",
JSON_EXTRACT(properties, '$.minTlsVersion') as "min_tls_version",
JSON_EXTRACT(properties, '$.privateEndpointConnections') as "private_endpoint_connections",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.state') as "state",
JSON_EXTRACT(properties, '$.hostName') as "host_name",
JSON_EXTRACT(properties, '$.eventHubEndpoints') as "event_hub_endpoints",
JSON_EXTRACT(properties, '$.routing') as "routing",
JSON_EXTRACT(properties, '$.storageEndpoints') as "storage_endpoints",
JSON_EXTRACT(properties, '$.messagingEndpoints') as "messaging_endpoints",
JSON_EXTRACT(properties, '$.enableFileUploadNotifications') as "enable_file_upload_notifications",
JSON_EXTRACT(properties, '$.cloudToDevice') as "cloud_to_device",
JSON_EXTRACT(properties, '$.comments') as "comments",
JSON_EXTRACT(properties, '$.features') as "features",
JSON_EXTRACT(properties, '$.locations') as "locations",
JSON_EXTRACT(properties, '$.enableDataResidency') as "enable_data_residency",
subscriptionId,
resourceGroupName,
resourceName
FROM azure.iot_hub.resources
WHERE subscriptionId = 'replace-me';