SYSTEM$GET_CMK_INFO_POSTGRES
SYSTEM$GET_CMK_INFO_POSTGRES
Snowflake Postgres Tri-Secret Secure와 함께 사용하기 위한 고객 관리 키(CMK, customer-managed key)의 상태를 반환해요. 현재 등록되고 활성화된 키에 대해서만 정보가 반환돼요.
본문
구문 (Syntax)
SYSTEM$GET_CMK_INFO_POSTGRES()
반환 값 (Returns)
CMK의 상태를 나타내는 상태 메시지를 반환해요. 출력에는 SYSTEM$REGISTER_CMK_INFO_POSTGRES를 호출할 때 지정한 값이 포함돼요.
Amazon Web Services의 CMK를 대표적인 예로 사용해 다음과 같은 메시지가 가능해요.
- 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. - 활성 키가 있지만 Snowflake Postgres Tri-Secret Secure 사용을 위해 등록된 CMK가 없을 때:
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. - Snowflake Postgres Tri-Secret Secure 사용을 위해 등록된 CMK가 없을 때:
CMK info has not been pre-registered in this account yet.
접근 제어 요구 사항 (Access Control Requirements)
계정 관리자(ACCOUNTADMIN 역할을 가진 사용자) 또는 계정에 대한 MONITOR SECURITY 권한이 부여된 역할만 이 함수를 호출할 수 있어요.
예제 (Examples)
Snowflake 계정의 CMK 상태를 가져와요:
SELECT SYSTEM$GET_CMK_INFO_POSTGRES();
더 알아보기
- Snowflake 시스템 정보 함수 — 관련 시스템 함수 전체 목록