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 ParamsOptional ParamsDescription
fetch_notification_integrationSELECTname, endpoint-Fetch a notification integration
list_notification_integrationsSELECTendpointlikeList notification integrations
create_notification_integrationINSERTdata__name, data__notification_hook, endpointcreateModeCreate a notification integration
delete_notification_integrationDELETEname, endpointifExistsDelete a notification integration

Optional Parameter Details
NameDescriptionTypeDefault
createModeQuery parameter allowing support for different modes of resource creation. Possible values include: - errorIfExists: Throws an error if you try to create a resource that already exists. - orReplace: Automatically replaces the existing resource with the current one. - ifNotExists: Creates a new resource when an alter is requested for a non-existent resource.stringerrorIfExists
ifExistsQuery parameter that specifies how to handle the request for a resource that does not exist: - true: The endpoint does not throw an error if the resource does not exist. It returns a 200 success response, but does not take any action on the resource. - false: The endpoint throws an error if the resource doesn't exist.booleanfalse
likeQuery parameter to filter the command output by resource name. Uses case-insensitive pattern matching, with support for SQL wildcard characters.string-

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 }}';