Skip to main content

notification_integrations

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

Overview

Namenotification_integrations
TypeResource
Idsnowflake.notification_integration.notification_integrations

Fields

NameDatatypeDescription
namestringName of the notification.
commentstringComment for the notification integration.
created_onstringDate and time when the notification was created.
enabledbooleanWhether the notification integration is enabled.
notification_hookobject

Methods

NameAccessible byRequired ParamsDescription
fetch_notification_integrationSELECTname, endpointFetch a notification integration
list_notification_integrationsSELECTendpointList notification integrations
create_notification_integrationINSERTdata__name, data__notification_hook, endpointCreate a notification integration
delete_notification_integrationDELETEname, endpointDelete a notification integration

SELECT examples

List notification integrations

SELECT
name,
comment,
created_on,
enabled,
notification_hook
FROM snowflake.notification_integration.notification_integrations
WHERE endpoint = '{{ endpoint }}';

INSERT example

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

/*+ create */
INSERT INTO snowflake.notification_integration.notification_integrations (
data__name,
data__enabled,
data__comment,
data__notification_hook,
endpoint
)
SELECT
'{{ name }}',
'{{ enabled }}',
'{{ comment }}',
'{{ notification_hook }}',
'{{ endpoint }}'
;

DELETE example

Deletes the specified notification_integrations resource.

/*+ delete */
DELETE FROM snowflake.notification_integration.notification_integrations
WHERE name = '{{ name }}'
AND endpoint = '{{ endpoint }}';