Skip to main content

lakeview_published

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

Overview

Namelakeview_published
TypeResource
Iddatabricks_workspace.dashboards.lakeview_published

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
warehouse_idstringThe warehouse ID used to run the published dashboard.
display_namestring
embed_credentialsbooleanIndicates whether credentials are embedded in the published dashboard.
revision_create_timestringThe timestamp of when the published dashboard was last revised.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdashboard_id, deployment_nameGet the current published dashboard.
publishexecdashboard_id, deployment_namePublish the current draft dashboard.
unpublishexecdashboard_id, deployment_nameUnpublish the dashboard.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
dashboard_idstringUUID identifying the published dashboard.
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

Get the current published dashboard.

SELECT
warehouse_id,
display_name,
embed_credentials,
revision_create_time
FROM databricks_workspace.dashboards.lakeview_published
WHERE dashboard_id = '{{ dashboard_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

Lifecycle Methods

Publish the current draft dashboard.

EXEC databricks_workspace.dashboards.lakeview_published.publish 
@dashboard_id='{{ dashboard_id }}' --required,
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"embed_credentials": {{ embed_credentials }},
"warehouse_id": "{{ warehouse_id }}"
}'
;