Categories:

System functions (System Information)

SYSTEM$SHOW_OAUTH_CLIENT_SECRETS

以字符串形式返回客户端密钥。客户端 ID 和客户端密钥必须包含在 OAuth 令牌端点的授权标头中。

语法

SYSTEM$SHOW_OAUTH_CLIENT_SECRETS( '<integration_name>' )

实参

integration_name

集成的名称。请注意,集成名称区分大小写,且必须为大写,并用单引号括起来。

输出

该函数在 JSON 对象中返回以下元素:

Column NameData TypeDescription
oauth_client_secret_2BASE64Secondary client secret for the specified integration. Snowflake supports two client secrets to allow for uninterrupted rotation.
oauth_client_secretBASE64Client secret for the specified integration
oauth_client_idSTRINGClient ID in Snowflake

示例

以下示例检索了指定集成的客户端密钥:

select system$show_oauth_client_secrets('MYINT');