Skip to main content

notification_destinations

Operations on a notification_destinations resource.

Overview

Namenotification_destinations
TypeResource
Iddatabricks_workspace.workspace.notification_destinations

Fields

NameDatatype
idstring
destination_typestring
display_namestring

Methods

NameAccessible byRequired ParamsDescription
getSELECTid, deployment_nameGets a notification destination.
listSELECTdeployment_nameLists notification destinations.
createINSERTdeployment_nameCreates a notification destination. Requires workspace admin permissions.
deleteDELETEid, deployment_nameDeletes a notification destination. Requires workspace admin permissions.
updateUPDATEid, deployment_nameUpdates a notification destination. Requires workspace admin permissions. At least one field is required in the request body.

SELECT examples

SELECT
id,
destination_type,
display_name
FROM databricks_workspace.workspace.notification_destinations
WHERE deployment_name = '{{ deployment_name }}';

INSERT example

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

/*+ create */
INSERT INTO databricks_workspace.workspace.notification_destinations (
deployment_name,
data__config,
data__display_name
)
SELECT
'{{ deployment_name }}',
'{{ config }}',
'{{ display_name }}'
;

UPDATE example

Updates a notification_destinations resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.workspace.notification_destinations
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE id = '{{ id }}' AND
deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a notification_destinations resource.

/*+ delete */
DELETE FROM databricks_workspace.workspace.notification_destinations
WHERE id = '{{ id }}' AND
deployment_name = '{{ deployment_name }}';