类别:

系统函数 (系统控制)

SYSTEM$REGISTER_CMK_INFO

注册与 Tri-Secret Secure 一起使用的客户管理的密钥 (CMK)。

另请参阅:

自助注册概述

语法

Amazon Web Services

SYSTEM$REGISTER_CMK_INFO( '<cmk-arn>' )
Copy

Microsoft Azure

SYSTEM$REGISTER_CMK_INFO( '<vault-uri>' , '<key-name>' )
Copy

Google Cloud Platform

SYSTEM$REGISTER_CMK_INFO( '<project-id>' , '<location>', '<key-ring>' , '<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('arn:aws:kms:us-west-2:736112632310:key/ceab36e4-f0e5-4b46-9a78-86e8f17a0f59');
Copy

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

SELECT SYSTEM$REGISTER_CMK_INFO('https://trisecretsite.vault.azure.net/', 'trisecretazkey');
Copy

在 Google Cloud Platform 上为您的 Snowflake 账户注册 CMK:

SELECT SYSTEM$REGISTER_CMK_INFO('my-env', 'us-west1', 'trisecrettest', 'trisecretgcpkey');
Copy
语言: 中文