Skip to main content

dashboard_subscriptions

Operations on a dashboard_subscriptions resource.

Overview

Namedashboard_subscriptions
TypeResource
Iddatabricks_workspace.lakeview.dashboard_subscriptions

Fields

NameDatatype
create_timestring
created_by_user_idstring
dashboard_idstring
etagstring
schedule_idstring
subscriberobject
subscription_idstring
update_timestring

Methods

NameAccessible byRequired ParamsDescription
getsubscriptionSELECTdashboard_id, schedule_id, subscription_id, deployment_name
listsubscriptionsSELECTdashboard_id, schedule_id, deployment_name
createsubscriptionINSERTdeployment_name
deletesubscriptionDELETEdashboard_id, schedule_id, subscription_id, deployment_name

SELECT examples

SELECT
create_time,
created_by_user_id,
dashboard_id,
etag,
schedule_id,
subscriber,
subscription_id,
update_time
FROM databricks_workspace.lakeview.dashboard_subscriptions
WHERE dashboard_id = '{{ dashboard_id }}' AND
schedule_id = '{{ schedule_id }}' AND
deployment_name = '{{ deployment_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new dashboard_subscriptions resource.

/*+ create */
INSERT INTO databricks_workspace.lakeview.dashboard_subscriptions (
deployment_name,
data__subscriber,
data__etag
)
SELECT
'{{ deployment_name }}',
'{{ subscriber }}',
'{{ etag }}'
;

DELETE example

Deletes a dashboard_subscriptions resource.

/*+ delete */
DELETE FROM databricks_workspace.lakeview.dashboard_subscriptions
WHERE dashboard_id = '{{ dashboard_id }}' AND
schedule_id = '{{ schedule_id }}' AND
subscription_id = '{{ subscription_id }}' AND
deployment_name = '{{ deployment_name }}';