类别:

:doc:`/sql-reference/functions-system`(系统控制)

SYSTEM$REGISTER_CMK_INFO_POSTGRES

注册您的客户管理密钥 (CMK) 以用于 Snowflake Postgres Tri-Secret Secure。

语法

AWS:

SYSTEM$REGISTER_CMK_INFO_POSTGRES( '<cmk_arn>' )
Copy

Azure:

SYSTEM$REGISTER_CMK_INFO_POSTGRES( '<vault_uri>' , '<key_name>' )
Copy

实参

cmk_arn

指定指定与 Tri-Secret Secure 一起使用的客户管理密钥 (CMK) 的 Amazon Web Services 资源编号 (ARN)。

vault_uri

为 Azure 密钥库指定 Microsoft Azure 唯一端点标识符。

key_name

在 Microsoft Azure 中指定 CMK 的名称。

project_id

在 Google Cloud Platform 中指定项目唯一标识符。

location

指定托管您的 Snowflake 账户的 Google Cloud Platform 区域。

key_ring

在 Google Cloud Platform 中为 CMK 指定密钥环。

key_name

指定了 CMK 的名称。

返回

返回一条状态信息,说明注册已完成。

访问控制要求

只有账户管理员(具有 ACCOUNTADMIN 角色的用户)才能调用此函数。

示例

在 Amazon Web Services 上为您的 Snowflake 账户注册 CMK:

SELECT SYSTEM$REGISTER_CMK_INFO_POSTGRES('arn:aws:kms:us-west-2:736112632310:key/ceab36e4-f0e5-4b46-9a78-86e8f17a0f59');
Copy

在 Microsoft Azure 上为您的 Snowflake 账户注册 CMK:

SELECT SYSTEM$REGISTER_CMK_INFO_POSTGRES('https://trisecretsite.vault.azure.net/', 'trisecretazkey');
Copy
语言: 中文