- 类别:
系统函数 (系统信息)
SYSTEM$GET_CMK_INFO¶
返回您的客户管理密钥 (CMK) 的状态以搭配 Tri-Secret Secure 使用。
语法¶
Arguments¶
Required:
None.
Optional:
ssa_account_nameA string that specifies the name of SSA account name for which you want to retrieve the CMK status.
返回¶
Returns a status message indicating the state of your CMK. The output includes the values that you specified when calling SYSTEM$REGISTER_CMK_INFO. If you have enabled private connectivity, the status message returned by SYSTEM$GET_CMK_INFO includes whether your CMK is privately connected.
以 Amazon Web Services 上的 CMKs 作为代表性示例,可能会出现以下消息:
您的 CMK 已注册,但尚未启用以使用 Tri-Secret Secure:
您的 CMK 已激活,正在与 Tri-Secret Secure 一起使用:
您有一个活动 CMK,但您刚刚预注册了一个新密钥:
您有一个活动密钥,但尚未注册任何 CMK 以使用 Tri-Secret Secure:
您尚未注册任何 CMK 以使用 Tri-Secret Secure:
您当前的 CMK 已注册,私有连接 已启用。
您当前的 CMK 已注册,私有连接 未启用。
访问控制要求¶
Only users with the ACCOUNTADMIN role or with a role that is granted the MONITOR SECURITY privilege can call this function.
Only users with the GLOBALORGADMIN role or ORGADMIN role can specify an SSA account name.
示例¶
Obtain the status of the CMK for your Snowflake account:
Obtain the status of the CMK for a specific SSA account: