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

The following fields are returned by SELECT queries:

A Snowflake notification

NameDatatypeDescription
namestringName of the notification. (pattern: ^"([^"]|"")+"|[a-zA-Z_][a-zA-Z0-9_$]*$)
commentstringComment for the notification integration.
created_onstring (date-time)Date and time when the notification was created.
enabledbooleanWhether the notification integration is enabled.
notification_hookobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_notification_integrationsselectendpointlikeList notification integrations
fetch_notification_integrationselectname, endpointFetch a notification integration
create_notification_integrationinsertendpointcreateModeCreate a notification integration
delete_notification_integrationdeletename, endpointifExistsDelete a notification integration

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
endpointstringOrganization and Account Name (default: orgid-acctid)
namestringIdentifier (i.e. name) for the resource.
createModestringQuery 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.
ifExistsbooleanQuery 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.
likestringQuery parameter to filter the command output by resource name. Uses case-insensitive pattern matching, with support for SQL wildcard characters.

SELECT examples

List notification integrations

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

INSERT examples

Create a notification integration

INSERT INTO snowflake.notification_integration.notification_integrations (
data__name,
data__enabled,
data__comment,
data__notification_hook,
endpoint,
createMode
)
SELECT
'{{ name }}' --required,
{{ enabled }},
'{{ comment }}',
'{{ notification_hook }}' --required,
'{{ endpoint }}',
'{{ createMode }}'
;

DELETE examples

Delete a notification integration

DELETE FROM snowflake.notification_integration.notification_integrations
WHERE name = '{{ name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND ifExists = '{{ ifExists }}';