Categorias:

Funções do sistema (Informações do sistema)

SYSTEM$GET_CMK_INFO

Retorna um status sobre sua chave gerenciada pelo cliente (CMK) para uso com Tri-Secret Secure.

Consulte também:

Visão geral do autorregistro

Sintaxe

SYSTEM$GET_CMK_INFO()
Copy

Retornos

Retorna uma mensagem de status indicando o estado do seu CMK. A saída inclui os valores que você especificou ao chamar SYSTEM$REGISTER_CMK_INFO.

As seguintes mensagens são possíveis, usando CMKs em Amazon Web Services como exemplo representativo:

  • Seu CMK está registrado, mas ainda não habilitado, para usar 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
    
  • Seu CMK está ativado e em uso com 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
    
  • Você tem um CMK ativo, mas você acabou de pré-registrar uma nova chave:

    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
    
  • Você tem uma chave ativa, mas não registrou nenhum CMK para usar 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
    
  • Você não registrou nenhum CMK para usar Tri-Secret Secure:

    CMK info has not been pre-registered in this account yet
    

Notas de uso

Somente administradores de conta (usuários com a função ACCOUNTADMIN) podem chamar esta função.

Exemplos

Obter o status CMK para sua conta Snowflake:

SELECT SYSTEM$GET_CMK_INFO();
Copy