- 类别:
:doc:`/sql-reference/functions-system`(系统控制)
SYSTEM$REGISTER_CMK_INFO_POSTGRES¶
注册您的客户管理密钥 (CMK) 以用于 Snowflake Postgres Tri-Secret Secure。
语法¶
AWS:
SYSTEM$REGISTER_CMK_INFO_POSTGRES( '<cmk_arn>' )
Azure:
SYSTEM$REGISTER_CMK_INFO_POSTGRES( '<vault_uri>' , '<key_name>' )
实参¶
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');
在 Microsoft Azure 上为您的 Snowflake 账户注册 CMK:
SELECT SYSTEM$REGISTER_CMK_INFO_POSTGRES('https://trisecretsite.vault.azure.net/', 'trisecretazkey');