Skip to main content

vw_endpoints

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

Overview

Namevw_endpoints
TypeView
Iddatabricks_workspace.postgres.vw_endpoints

Fields

The following fields are returned by this view:

NameDatatypeDescription
namestringThe endpoint identifier (last component of the resource path).
create_timestringTimestamp when the endpoint was created.
project_idstringThe project identifier that owns this endpoint.
branch_idstringThe branch identifier that owns this endpoint.
specobjectEndpoint specification including type, autoscaling limits, and suspension settings.
max_cunumberMaximum autoscaling Compute Units for the endpoint.
min_cunumberMinimum autoscaling Compute Units for the endpoint.
current_statestringCurrent operational state of the endpoint (e.g. ACTIVE, IDLE, INIT).
disabledbooleanWhether connections to the endpoint are restricted.
endpoint_typestringThe compute endpoint type (ENDPOINT_TYPE_READ_WRITE or ENDPOINT_TYPE_READ_ONLY).
last_active_timestringTimestamp of the last activity on the endpoint.
settingsobjectPostgres settings for the endpoint.
group_enable_readable_secondariesbooleanWhether read-only connections to the read-write endpoint are allowed.
group_maxintegerMaximum number of computes in the endpoint group.
group_minintegerMinimum number of computes in the endpoint group.
hoststringHostname for connecting to this endpoint.
read_write_pooled_hoststringPooled read-write hostname for the endpoint.
uidstringSystem-generated unique ID for the endpoint.
update_timestringTimestamp when the endpoint was last updated.

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
project_idstringThe project identifier to scope the query.
branch_idstringThe branch identifier to scope the query.
deployment_namestringThe Databricks workspace deployment name.

SELECT Examples

SELECT
name,
create_time,
project_id,
branch_id,
spec,
max_cu,
min_cu,
current_state,
disabled,
endpoint_type,
last_active_time,
settings,
group_enable_readable_secondaries,
group_max,
group_min,
host,
read_write_pooled_host,
uid,
update_time
FROM databricks_workspace.postgres.vw_endpoints
WHERE project_id = '{{ project_id }}'
AND branch_id = '{{ branch_id }}'
AND deployment_name = '{{ deployment_name }}';

SQL Definition

SELECT
SPLIT_PART(name, '/', -1) AS name,
create_time,
project_id,
branch_id,
spec,
JSON_EXTRACT(status, '$.autoscaling_limit_max_cu') AS max_cu,
JSON_EXTRACT(status, '$.autoscaling_limit_min_cu') AS min_cu,
JSON_EXTRACT(status, '$.current_state') AS current_state,
JSON_EXTRACT(status, '$.disabled') AS disabled,
JSON_EXTRACT(status, '$.endpoint_type') AS endpoint_type,
JSON_EXTRACT(status, '$.last_active_time') AS last_active_time,
JSON_EXTRACT(status, '$.settings') AS settings,
JSON_EXTRACT(status, '$.group.enable_readable_secondaries') AS group_enable_readable_secondaries,
JSON_EXTRACT(status, '$.group.max') AS group_max,
JSON_EXTRACT(status, '$.group.min') AS group_min,
JSON_EXTRACT(status, '$.hosts.host') AS host,
JSON_EXTRACT(status, '$.hosts.read_write_pooled_host') AS read_write_pooled_host,
uid,
update_time
FROM databricks_workspace.postgres.endpoints
WHERE project_id = '{{ project_id }}'
AND branch_id = '{{ branch_id }}'
AND deployment_name = '{{ deployment_name }}'