Skip to main content

vw_network_policy_internet_destinations

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

Overview

Namevw_network_policy_internet_destinations
TypeView
Iddatabricks_account.settings.vw_network_policy_internet_destinations

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
network_policy_idstringUnique identifier for the network policy.
restriction_modestringOverall egress restriction mode for the policy (e.g. FULL_RESTRICTION, NO_RESTRICTION).
enforcement_modestringEnforcement mode for the egress policy (e.g. ENFORCED, AUDIT).
destinationstringAllowed internet destination hostname or CIDR (one row per destination).
destination_typestringClassification of the allowed internet destination (e.g. PUBLIC).

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_policy_id,
restriction_mode,
enforcement_mode,
destination,
destination_type
FROM databricks_account.settings.vw_network_policy_internet_destinations
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
np.account_id,
np.network_policy_id,
JSON_EXTRACT(np.egress, '$.network_access.restriction_mode') AS restriction_mode,
JSON_EXTRACT(np.egress, '$.network_access.policy_enforcement.enforcement_mode') AS enforcement_mode,
JSON_EXTRACT(d.value, '$.destination') AS destination,
JSON_EXTRACT(d.value, '$.internet_destination_type') AS destination_type
FROM databricks_account.settings.network_policies np,
JSON_EACH(JSON_EXTRACT(np.egress, '$.network_access.allowed_internet_destinations')) d
WHERE account_id = '{{ account_id }}'