Skip to main content

vw_ncc_aws_private_endpoint_rules

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

Overview

Namevw_ncc_aws_private_endpoint_rules
TypeView
Iddatabricks_account.settings.vw_ncc_aws_private_endpoint_rules

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
network_connectivity_config_idstringUnique identifier for the parent network connectivity configuration.
ncc_namestringHuman-readable name of the parent network connectivity configuration.
regionstringCloud region of the parent network connectivity configuration.
rule_idstringUnique identifier for this AWS private endpoint rule (one row per rule).
rule_ncc_idstringNetwork connectivity config ID stored within the rule object.
connection_statestringState of the AWS VPC endpoint connection (e.g. pending, available, rejected).
endpoint_servicestringName of the AWS endpoint service this rule connects to.
vpc_endpoint_idstringAWS VPC endpoint ID for this private endpoint rule.
enabledbooleanWhether this private endpoint rule is currently active.
deactivatedbooleanWhether this private endpoint rule has been deactivated.
resource_namesarrayList of resource names associated with this private endpoint rule.
domain_namesarrayList of domain names routed through this private endpoint.
error_messagestringError message if the private endpoint rule is in a failed state.
creation_timeintegerUnix timestamp (ms) when the rule was created.
updated_timeintegerUnix timestamp (ms) when the rule was last updated.

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_connectivity_config_id,
ncc_name,
region,
rule_id,
rule_ncc_id,
connection_state,
endpoint_service,
vpc_endpoint_id,
enabled,
deactivated,
resource_names,
domain_names,
error_message,
creation_time,
updated_time
FROM databricks_account.settings.vw_ncc_aws_private_endpoint_rules
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
ncc.account_id,
ncc.network_connectivity_config_id,
ncc.name AS ncc_name,
ncc.region,
JSON_EXTRACT(r.value, '$.rule_id') AS rule_id,
JSON_EXTRACT(r.value, '$.network_connectivity_config_id') AS rule_ncc_id,
JSON_EXTRACT(r.value, '$.connection_state') AS connection_state,
JSON_EXTRACT(r.value, '$.endpoint_service') AS endpoint_service,
JSON_EXTRACT(r.value, '$.vpc_endpoint_id') AS vpc_endpoint_id,
JSON_EXTRACT(r.value, '$.enabled') AS enabled,
JSON_EXTRACT(r.value, '$.deactivated') AS deactivated,
JSON_EXTRACT(r.value, '$.resource_names') AS resource_names,
JSON_EXTRACT(r.value, '$.domain_names') AS domain_names,
JSON_EXTRACT(r.value, '$.error_message') AS error_message,
JSON_EXTRACT(r.value, '$.creation_time') AS creation_time,
JSON_EXTRACT(r.value, '$.updated_time') AS updated_time
FROM databricks_account.settings.network_connectivity ncc,
JSON_EACH(JSON_EXTRACT(ncc.egress_config, '$.target_rules.aws_private_endpoint_rules')) r
WHERE account_id = '{{ account_id }}'