Skip to main content

vw_projects

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

Overview

Namevw_projects
TypeView
Iddatabricks_workspace.postgres.vw_projects

Fields

The following fields are returned by this view:

NameDatatypeDescription
namestringThe project identifier (last component of the resource path).
create_timestringTimestamp when the project was created.
initial_endpoint_specobjectInitial endpoint configuration for the project.
specobjectProject specification including display_name, pg_version, and default endpoint settings.
compute_last_active_timestringTimestamp of the last compute activity on the project.
min_cunumberMinimum autoscaling Compute Units for the default endpoint.
max_cunumberMaximum autoscaling Compute Units for the default endpoint.
suspend_timeout_durationstringDuration of inactivity after which the default endpoint is automatically suspended.
display_namestringHuman-readable project name.
enable_pg_native_loginbooleanWhether PG native password login is enabled on all endpoints in this project.
history_retention_durationstringDuration for retaining point-in-time recovery history across all branches.
ownerstringEmail of the project owner.
pg_versionintegerMajor Postgres version number in use.
uidstringSystem-generated unique ID for the project.
update_timestringTimestamp when the project was last updated.

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
deployment_namestringThe Databricks workspace deployment name.

SELECT Examples

SELECT
name,
create_time,
initial_endpoint_spec,
spec,
compute_last_active_time,
min_cu,
max_cu,
suspend_timeout_duration,
display_name,
enable_pg_native_login,
history_retention_duration,
owner,
pg_version,
uid,
update_time
FROM databricks_workspace.postgres.vw_projects
WHERE deployment_name = '{{ deployment_name }}';

SQL Definition

SELECT
SPLIT_PART(name, '/', -1) AS name,
create_time,
initial_endpoint_spec,
spec,
JSON_EXTRACT(status, '$.compute_last_active_time') AS compute_last_active_time,
JSON_EXTRACT(status, '$.default_endpoint_settings.autoscaling_limit_min_cu') AS min_cu,
JSON_EXTRACT(status, '$.default_endpoint_settings.autoscaling_limit_max_cu') AS max_cu,
JSON_EXTRACT(status, '$.default_endpoint_settings.suspend_timeout_duration') AS suspend_timeout_duration,
JSON_EXTRACT(status, '$.display_name') AS display_name,
JSON_EXTRACT(status, '$.enable_pg_native_login') AS enable_pg_native_login,
JSON_EXTRACT(status, '$.history_retention_duration') AS history_retention_duration,
JSON_EXTRACT(status, '$.owner') AS owner,
JSON_EXTRACT(status, '$.pg_version') AS pg_version,
uid,
update_time
FROM databricks_workspace.postgres.projects
WHERE deployment_name = '{{ deployment_name }}'