- カテゴリ:
システム関数 (システム制御)
SYSTEM$REGISTER_CMK_INFO¶
Registers your customer-managed key (CMK) for use with Tri-Secret Secure.
構文¶
AWS:
SYSTEM$REGISTER_CMK_INFO( '<cmk_arn>' [ , '<privatelink_enabled>' ] )
Azure:
SYSTEM$REGISTER_CMK_INFO( '<vault_uri>' , '<key_name>' [ , '<privatelink_enabled>' ] )
Google Cloud:
SYSTEM$REGISTER_CMK_INFO( '<project_id>' , '<location>', '<key_ring>' , '<key_name>' [ , '<privatelink_enabled>' ] )
引数¶
Required:
AWS
cmk_arnTri-Secret Secure で使用する顧客管理キー(CMK)を指定する Amazon Web Services リソース番号(ARN)を指定します。
Azure
vault_uriAzure Key Vault の Microsoft Azure 一意なエンドポイント識別子を指定します。
key_nameMicrosoft Azure で CMK の名前を指定します。
Google Cloud
project_idSpecifies the unique identifier for your project in Google Cloud.
locationSpecifies the Google Cloud region that hosts your Snowflake account.
key_ringSpecifies the key ring for your CMK in Google Cloud.
key_nameSpecifies the name for your CMK in Google Cloud.
Optional:
privatelink_enabledSpecify whether or not to use your private connectivity endpoint for Tri-Secret Secure by passing in one of the following values:
重要
If you omit this argument or pass in an empty string, Snowflake doesn't use a private connectivity endpoint for Tri-Secret Secure.
'TRUE'Specifies that Snowflake uses the provisioned private connectivity endpoint for Tri-Secret Secure.
'FALSE'(デフォルト)Specifies that Snowflake doesn't use a private connectivity endpoint for Tri-Secret Secure.
''空の文字列。
'FALSE'と同じ動作。
戻り値¶
Returns a status message stating that the registration is complete.
アクセス制御の要件¶
アカウント管理者(ACCOUNTADMIN ロールを持つユーザー)のみが、この関数を呼び出すことができます。
例¶
Amazon Web Services で、Snowflakeアカウント用に CMK を登録します。
SELECT SYSTEM$REGISTER_CMK_INFO('arn:aws:kms:us-west-2:736112632310:key/ceab36e4-f0e5-4b46-9a78-86e8f17a0f59');
Microsoft Azure で、Snowflakeアカウント用に CMK を登録します。
SELECT SYSTEM$REGISTER_CMK_INFO('https://trisecretsite.vault.azure.net/', 'trisecretazkey');
Register your CMK for your Snowflake account on Google Cloud:
SELECT SYSTEM$REGISTER_CMK_INFO('my-env', 'us-west1', 'trisecrettest', 'trisecretgcpkey');
Register your CMK with a privatelink endpoint for your Snowflake account on Amazon Web Services:
SELECT SYSTEM$REGISTER_CMK_INFO('arn:aws:kms:us-west-2:736112632310:key/ceab36e4-f0e5-4b46-9a78-86e8f17a0f59', 'true');
Register your CMK with a privatelink endpoint for your Snowflake account on Microsoft Azure:
SELECT SYSTEM$REGISTER_CMK_INFO('https://trisecretsite.vault.azure.net/', 'trisecretazkey', 'true');
Register your CMK with a privatelink endpoint for your Snowflake account on Google Cloud:
SELECT SYSTEM$REGISTER_CMK_INFO('my-env', 'us-west1', 'trisecrettest', 'trisecretgcpkey', 'true');