SHOW NOTIFICATION INTEGRATIONS

列出您账户中的通知集成。

输出包括每个通知集成的元数据和属性。

另请参阅:

CREATE NOTIFICATION INTEGRATIONALTER NOTIFICATION INTEGRATIONDESCRIBE NOTIFICATION INTEGRATIONDROP INTEGRATION

语法

SHOW NOTIFICATION INTEGRATIONS [ LIKE '<pattern>' ]
Copy

参数

LIKE 'pattern'

(可选)按对象名称筛选命令输出。筛选器使用 不区分大小写 的模式匹配,并支持 SQL 通配符(%_)。

例如,以下模式返回 相同的 结果:

... LIKE '%testing%' ...
... LIKE '%TESTING%' ...

. 默认:无值(不对输出应用筛选)。

输出

命令的输出包括以下列,它们描述了对象的属性和元数据:

描述

name

通知集成名称。

type

通知集成类型。值可以是以下其中一项:

category

集成的类别。对于通知集成,始终是 NOTIFICATION

enabled

表示是否启用通知集成:

  • 如果为 true,则通知集成已启用。

  • 如果为 false,则通知集成已禁用。

comment

通知集成的注释。

created_on

创建通知集成时的日期和时间。

direction

表示集成是否支持发送或接收通知。值可以是以下其中一项:

  • OUTBOUND:Snowflake 使用集成向第三方消息传递服务发送通知。

    此值适用于具有以下任何属性的通知集成:

    • TYPE=QUEUEDIRECTION=OUTBOUND

    • TYPE=EMAIL

    • TYPE=WEBHOOK

  • INBOUND:Snowflake 使用集成来接收来自第三方消息传递服务的通知。

    此值用于未指定 DIRECTION=OUTBOUND 的通知集成。

访问控制要求

用于执行此 SQL 命令的 角色 必须至少具有以下 一项 权限

权限

对象

备注

USAGE

集成

OWNERSHIP

集成

OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the GRANT OWNERSHIP command to a different role by the owning role (or any role with the MANAGE GRANTS privilege).

有关创建具有指定权限集的自定义角色的说明,请参阅 创建自定义角色

有关对 安全对象 执行 SQL 操作的相应角色和权限授予的一般信息,请参阅 访问控制概述

使用说明

  • 该命令不需要正在运行的仓库即可执行。

  • To post-process the output of this command, you can use the pipe operator (->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.

    The output column names for this command are generated in lowercase. If you consume a result set from this command with the pipe operator or the RESULT_SCAN function, use double-quoted identifiers for the column names in the query to ensure that they match the column names in the output that was scanned. For example, if the name of an output column is type, then specify "type" for the identifier.

示例

显示所有通知集成:

SHOW NOTIFICATION INTEGRATIONS;
Copy
+-----------------------------+-----------------------------+--------------+---------+---------+-------------------------------+-----------+
| name                        | type                        | category     | enabled | comment | created_on                    | direction |
|-----------------------------+-----------------------------+--------------+---------+---------+-------------------------------+-----------|
| MY_AZURE_INBOUND_QUEUE_INT  | QUEUE - AZURE_STORAGE_QUEUE | NOTIFICATION | true    | NULL    | 2025-03-08 11:34:55.861 -0800 | INBOUND   |
| MY_GCP_INBOUND_QUEUE_INT    | QUEUE - GCP_PUBSUB          | NOTIFICATION | true    | NULL    | 2025-03-08 11:35:35.163 -0800 | INBOUND   |
| MY_GCP_OUTBOUND_QUEUE_INT   | QUEUE - GCP_PUBSUB          | NOTIFICATION | true    | NULL    | 2025-03-08 11:37:06.487 -0800 | OUTBOUND  |
| MY_AWS_OUTBOUND_QUEUE_INT   | QUEUE - AWS_SNS             | NOTIFICATION | true    | NULL    | 2025-03-08 11:36:13.072 -0800 | OUTBOUND  |
| MY_EMAIL_INT                | EMAIL                       | NOTIFICATION | true    | NULL    | 2025-03-08 11:38:55.866 -0800 | OUTBOUND  |
| MY_AZURE_OUTBOUND_QUEUE_INT | QUEUE - AZURE_EVENT_GRID    | NOTIFICATION | true    | NULL    | 2025-03-08 11:36:40.822 -0800 | OUTBOUND  |
| MY_WEBHOOK_INT              | WEBHOOK                     | NOTIFICATION | true    | NULL    | 2025-03-08 11:40:17.336 -0800 | OUTBOUND  |
+-----------------------------+-----------------------------+--------------+---------+---------+-------------------------------+-----------+
语言: 中文