メインコンテンツへスキップ

前提条件

CData IP をホワイトリストに登録

PostgreSQL への接続を確立するには、CData のIP 経由でPostgreSQL へのアクセスを許可する必要があります。PostgreSQL をファイアウォールの内側でホスティングする場合は、これらのIP アドレスをファイアウォールの許可リストに登録する必要があります。
  • 範囲:52.224.0.16052.224.0.175 および4.154.117.1604.154.117.175
  • CIDR 表記:52.224.0.160/28 および4.154.117.160/28

PostgreSQL が一般にアクセス可能であることを確認

パブリックフェイシングIP / ドメインを指定して、このデータソースに接続します。次のプライベートIP の範囲は機能しません。
  • 10.0.0.0 to 10.255.255.255
  • 172.16.0.0 to 172.31.255.255
  • 192.168.0.0 to 192.168.255.255
  • 127.0.0.1 (aka ‘localhost’)

セットアップガイド

以下の手順で、PostgreSQL をConnect AI アカウントに接続します。
1
Connect AI のダッシュボードからConnections ページを開きます。
2
右上の + Add Connection をクリックします。
3
検索フィールドに PostgreSQL と入力し、データソース名をクリックします。
4
新しいコネクションのBasic Settings タブで、コネクション名を入力するかデフォルトの名前をそのまま使用します。
5
If your PostgreSQL connection is behind a firewall, set the Connection Type to SSH Tunnel and follow the instructions in SSH Tunnel Instructions. Then continue with these instructions. Otherwise, leave the Connection Type as Direct.
6
In the Server field, enter PostgreSQL サーバーのホスト名またはIP アドレス.
7
Note: If your PostgreSQL database has a self-signed certificate, you must copy the self-signed certificate into the Advanced Settings > SSL Server Cert field.
8
Select the Authentication method, then proceed to the relevant section and follow those instructions.

Authentication Methods

1
In the User field, enter 認証用のPostgreSQL ユーザー名.
2
Enter ユーザーパスワード in the Password field.
3
(Optional) Enter the name of the PostgreSQL Database. If none is entered, the user’s default database is used.
4
(Optional) Specify PostgreSQL サーバーに接続するためのポート in the Port field. This is set to 5432 by default.
5
PostgreSQL で、Connect AI 静的IP アドレスを接続のホワイトリストに追加します。
6
Connect AI Add PostgreSQL Connection ページ上部の、Save & Test をクリックします。
  • 接続テストに成功すると、コネクションが作成されたことを示すConnection successfully saved というメッセージが表示されます。Edit Connection ページのStatusAuthenticated に変わります。Edit Connection ページの右ペインにあるData Model タブで、成功したコネクションのデータモデルを表示します。
  • 接続テストに失敗した場合は、入力したログイン情報に余分なスペースや文字がないかを確認してください。Connect AI は、データが不足している必須フィールドの下にエラーメッセージを表示します。一部のデータソースでは、ソースのWeb サイトに直接サインインする必要があります。サインインしていない場合は、Sign in ボタンの下にエラーメッセージが表示されます。エラーを修正し、もう一度試してください。
  • 失敗したコネクションは下書きとして保存され、StatusNot Authenticated になります。後でコネクションに戻って認証することができます。

SSH Tunnel Instructions

If your PostgreSQL data source is behind a firewall, follow these instructions.
1
Click Connection Type of SSH Tunnel.
2
Enter the following information:
  • SSH Server–enter the name of the SSH server.
  • SSH Port–enter the SSH port. The default value is 22.
  • SSH Auth Mode–enter the authentication mode of Password or Public_Key.
    • If Password, enter the SSH User name and SSH Password.
    • If Public_Key, enter the SSH User name, SSH Client Cert, and SSH Client Cert Password (optional). Only PEMKEY_BLOB is available as the SSH Client Cert Type. The SSH Client Cert is required, and is a valid private key. Enter the SSH Client Cert Password if the SSH client certificate has a password.
3
Continue with the authentication instructions in the Setup Guide.

詳細について

Connect AI とPostgreSQL の連携の詳細動作については、こちらのページを参照してください。