Skip to main content

vw_networks

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

Overview

Namevw_networks
TypeView
Iddatabricks_account.provisioning.vw_networks

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
network_idstringUnique identifier for the network configuration.
network_namestringHuman-readable name of the network configuration.
vpc_idstringID of the VPC used by this network configuration (AWS only).
vpc_statusstringValidation status of the VPC (e.g. VALID, BROKEN, UNATTACHED).
workspace_idintegerID of the workspace this network configuration is attached to.
creation_timeintegerUnix timestamp (ms) when the network configuration was created.
security_group_idsarrayList of security group IDs associated with this network configuration (AWS only).
subnet_idsarrayList of subnet IDs associated with this network configuration (AWS only).
gcp_network_project_idstringGCP project ID that hosts the shared VPC network (GCP only).
gcp_vpc_idstringName of the GCP VPC network (GCP only).
gcp_subnet_idstringName of the GCP subnet used by the workspace (GCP only).
gcp_subnet_regionstringGCP region where the subnet is located (GCP only).
gcp_pod_ip_range_namestringName of the secondary IP range used for GKE pods (GCP only).
gcp_service_ip_range_namestringName of the secondary IP range used for GKE services (GCP only).
vpc_endpoint_rest_api_idsarrayList of VPC endpoint IDs used for REST API private connectivity (AWS only).
vpc_endpoint_dataplane_relay_idsarrayList of VPC endpoint IDs used for dataplane relay private connectivity (AWS only).

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.

SELECT Examples

SELECT
account_id,
network_id,
network_name,
vpc_id,
vpc_status,
workspace_id,
creation_time,
security_group_ids,
subnet_ids,
gcp_network_project_id,
gcp_vpc_id,
gcp_subnet_id,
gcp_subnet_region,
gcp_pod_ip_range_name,
gcp_service_ip_range_name,
vpc_endpoint_rest_api_ids,
vpc_endpoint_dataplane_relay_ids
FROM databricks_account.provisioning.vw_networks
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
n.account_id,
n.network_id,
n.network_name,
n.vpc_id,
n.vpc_status,
n.workspace_id,
n.creation_time,
n.security_group_ids,
n.subnet_ids,
JSON_EXTRACT(n.gcp_network_info, '$.network_project_id') AS gcp_network_project_id,
JSON_EXTRACT(n.gcp_network_info, '$.vpc_id') AS gcp_vpc_id,
JSON_EXTRACT(n.gcp_network_info, '$.subnet_id') AS gcp_subnet_id,
JSON_EXTRACT(n.gcp_network_info, '$.subnet_region') AS gcp_subnet_region,
JSON_EXTRACT(n.gcp_network_info, '$.pod_ip_range_name') AS gcp_pod_ip_range_name,
JSON_EXTRACT(n.gcp_network_info, '$.service_ip_range_name') AS gcp_service_ip_range_name,
JSON_EXTRACT(n.vpc_endpoints, '$.rest_api') AS vpc_endpoint_rest_api_ids,
JSON_EXTRACT(n.vpc_endpoints, '$.dataplane_relay') AS vpc_endpoint_dataplane_relay_ids
FROM databricks_account.provisioning.networks n
WHERE account_id = '{{ account_id }}'