Issue associating Credentials with Connection Alias for MID Server API Integration

NaoyaT
Kilo Guru

I am currently configuring an API integration (HTTP) from ServiceNow to a server in a private network (Server A) via a MID Server.
While setting up the "Connection & Credential Alias," I have encountered an issue where the created Credential cannot be properly selected or associated within the HTTP Connection record.

[Goal]

Establish an HTTP connection to Server A via a MID Server.
Secure the API Key by using ServiceNow’s Credential management to keep it hidden from users.
[Current Configuration]

sys_alias: alias_A (Type: Connection and Credential / HTTP)
api_key_credentials: credential_B (Applies to all MID Servers)
http_connection: connection_C (Use MID Server: true / Specific MID Server selected)
[Issue]
I am unable to associate the alias and credential correctly in the HTTP Connection settings.
Specifically, the "Credential alias" field on the api_key_credentials record is currently empty. Could you please provide the correct procedure to link these components to ensure the MID Server can successfully use the credential for this alias?

1件の返信1

takshisan
Kilo Guru
Hi NaoyaT san,
エイリアスと認証情報の関連付けについて:
[接続および認証情報エイリアス(Connection & Credential Alias)]の作成と紐付けは完了しておりますでしょうか。
詳細は下記の手順を参照ください。
 
■1.前提条件
・エイリアスや接続情報の作成には admin または connection_admin / credential_admin などの適切な権限が必要。
 
■2.認証情報(Credential)の作成
API接続で使用する認証情報(トークンやパスワードなど)をあらかじめ作成する。
2-1. ナビゲーションメニューから [すべて] > [統合ハブ (IntegrationHub)] > [Connections & Credentials] > [Credentials] に移動し
2-2. [新規 (New)] をクリック
2-3. 連携方式に応じた種類(例:OAuth 2.0 Credentials や API Key など)を選択し
2-4. 必要な項目(名前、クライアントID、シークレット、トークンなど)を入力し、[送信] または [保存] をクリックする。
 
■3. 接続および認証情報エイリアス(Connection & Credential Alias)の新規作成
3-1. ナビゲーションメニューから [すべて] > [統合ハブ (IntegrationHub)] > [Connections & Credentials] > [Connection & Credential Aliases] に移動します。
3-2. [新規 (New)] をクリックします。
3-3. 以下の基本情報を入力・設定します:
• Name(名前): わかりやすいエイリアス名(例: My Custom API Alias)
• ID: 自動生成されますが、必要に応じて変更
• Connection type(接続タイプ): HTTP や用途に合わせたタイプを選択
3-4. [送信] または [保存] をクリックします。
 
■4. 接続(Connection)レコードの作成とエイリアスの紐付け
作成したエイリアスに対して、実際の接続先URL(エンドポイント)と先ほど作成した認証情報を紐付けます。
4-1. 作成したエイリアスの詳細画面を開きます。
4-2. 画面下部にある関連リスト [Connections] タブから [新規 (New)] をクリックします。
4-3. 以下の項目を設定します:
• Name(名前): 接続名(例: My API Connection)
• Connection URL(接続URL): 接続先APIのエンドポイントURL(例: https://example.com)
• Credential(認証情報): ステップ2で作成した認証情報レコードを選択
4-4. [送信] または [保存] をクリックする。
 
本投稿が回答への貢献となりましたらサムアップの押下お願いいたします。
 
※これでも解消しない場合、プラットフォームのバージョンはいくつでしょうか。