前提条件
CData IP をホワイトリストに登録
Snowflake への接続を確立するには、CData のIP 経由でSnowflake へのアクセスを許可する必要があります。Snowflake をファイアウォールの内側でホスティングする場合は、これらのIP アドレスをファイアウォールの許可リストに登録する必要があります。- 範囲:
52.224.0.160~52.224.0.175および4.154.117.160~4.154.117.175 - CIDR 表記:
52.224.0.160/28および4.154.117.160/28
Snowflake が一般にアクセス可能であることを確認
パブリックフェイシングIP / ドメインを指定して、このデータソースに接続します。次のプライベートIP の範囲は機能しません。10.0.0.0to10.255.255.255172.16.0.0to172.31.255.255192.168.0.0to192.168.255.255127.0.0.1(aka ‘localhost’)
セットアップガイド
以下の手順で、Snowflake をConnect AI アカウントに接続します。Enter the URL of the Snowflake database. Snowflake supports URLs in either the account name or connection name format.
- To use the account name, refer to Finding the organization and account name for an account in the Snowflake documentation.
- To use the connection name, use the SHOW CONNECTIONS command. The URL format depends on how you are connecting. Refer to the Connecting with a URL in the Snowflake documentation for help in entering the URL correctly. The following are a few examples of formatting the URL:
- Standard URL with account name:
https://<orgname>-<account_name>.snowflakecomputing.com. - Standard URL with connection name:
https://<orgname>-<connectionname>.snowflakecomputing.com. - Okta SSO:
https://<orgname>-<account-name>.snowflakecomputing.com(if your account name contains an underscore, change the underscore to a hyphen).
Select the Authentication method, then proceed to the relevant section and follow those instructions.
Authentication Methods
- OAuth
- Password
- Private Key
- Okta
- PingFederate
The Callback URL, or Redirect URL, is the URL you need (
https://oauth.cdata.com/oauth/) when setting up your OAuth app. Copy this URL and paste it into your OAuth app.Select the OAuth Authenticator that the OAuth application requests from Snowflake. If there is no authenticator, use the default None.
(Optional) Enter the Snowflake Database and Schema. Selecting a schema may improve performance for some applications.
Connect AI Connection ページ上部の、Save & Test をクリックします。
- 接続テストに成功すると、コネクションが作成されたことを示すConnection successfully saved というメッセージが表示されます。Edit Connection ページのStatus もAuthenticated に変わります。Edit Connection ページの右ペインにあるData Model タブで、成功したコネクションのデータモデルを表示します。
- 接続テストに失敗した場合は、入力したログイン情報に余分なスペースや文字がないかを確認してください。Connect AI は、データが不足している必須フィールドの下にエラーメッセージを表示します。一部のデータソースでは、ソースのWeb サイトに直接サインインする必要があります。サインインしていない場合は、Sign in ボタンの下にエラーメッセージが表示されます。エラーを修正し、もう一度試してください。
- 失敗したコネクションは下書きとして保存され、Status はNot Authenticated になります。後でコネクションに戻って認証することができます。