- Categories:
System functions (System Information)
SYSTEM$GET_ CMK_ INFO¶
Returns the status of your customer-managed key (CMK) for use with Tri-Secret Secure.
Syntax¶
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¶
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.
The following messages are possible, using CMKs on Amazon Web Services as a representative example:
-
Your CMK is registered, but not yet enabled, to use Tri-Secret Secure:
-
Your CMK is activated and in use with Tri-Secret Secure:
-
You have an active CMK, but you just pre-registered a new key:
-
You have an active key, but have not registered any CMK to use Tri-Secret Secure:
-
You have not registered any CMK to use Tri-Secret Secure:
-
Your active CMK is registered with private connectivity enabled.
-
Your active CMK is registered with private connectivity not enabled.
Access control requirements¶
- 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.
Examples¶
Obtain the status of the CMK for your Snowflake account:
Obtain the status of the CMK for a specific SSA account: