- 类别:
系统函数 (系统信息)
SYSTEM$GET_CMK_INFO_POSTGRES¶
返回您的客户管理密钥 (CMK) 的状态以搭配 Snowflake Postgres Tri-Secret Secure 使用。 仅返回当前注册和激活的密钥的信息。
语法¶
SYSTEM$GET_CMK_INFO_POSTGRES()
返回¶
返回一条状态信息,说明 CMK 的状态。输出结果包括调用 SYSTEM$REGISTER_CMK_INFO_POSTGRES 时指定的值。
以 Amazon Web Services 上的 CMKs 作为代表性示例,可能会出现以下消息:
您的 CMK 已注册,但尚未启用以使用 Snowflake Postgres Tri-Secret Secure:
CMK with ARN: arn:aws:kms:us-west-2:736112632310:key/ceab36e4-f0e5-4b46-9a78-86e8f17a0f59 is pre-registered for Tri-Secret Secure.
您的 CMK 已激活,正在与 Snowflake Postgres Tri-Secret Secure 一起使用:
CMK with ARN: arn:aws:kms:us-west-2:736112632310:key/ceab36e4-f0e5-4b46-9a78-86e8f17a0f59 is activated for Tri-Secret Secure.
您有一个活动 CMK,但您刚刚预注册了一个新密钥:
CMK with ARN: arn:aws:kms:us-west-2:736112632310:key/ceab36e4-f0e5-4b46-9a78-86e8f17a0f59 is activated with Tri-Secret Secure, but CMK with ARN: arn:aws:kms:us-west-2:481048248138:key/e08cb6c0-7c09-4f37-8e55-e395a12fe965 is pre-registered for Tri-Secret Secure.
您有一个活动密钥,但尚未注册任何 CMK 以使用 Snowflake Postgres Tri-Secret Secure:
CMK info has not been pre-registered in this account yet, but CMK arn:aws:kms:us-west-2:736112632310:key/ceab36e4-f0e5-4b46-9a78-86e8f17a0f59 is activated with Tri-Secret Secure.
您尚未注册任何 CMK 以使用 Snowflake Postgres Tri-Secret Secure:
CMK info has not been pre-registered in this account yet.
访问控制要求¶
只有账户管理员(具有 ACCOUNTADMIN 角色的用户)或被授予账户 MONITOR SECURITY 权限的角色才能调用此函数。
示例¶
获取 Snowflake 账户的状态 CMK:
SELECT SYSTEM$GET_CMK_INFO_POSTGRES();