APIを使ってIPを許可リストに追加
/security/ip-allowlist/ipsエンドポイントでPOSTメソッドを使って、IP許可リストにIPを追加します。
この例では、Talend API Testerを使ってAPIクエリーを発行します。Talend API Testerの詳細は、Talend Cloud API Testerユーザーガイドをご覧ください。
始める前に
手順
タスクの結果
![Talend Management Consoleの[IP allowlist] (IP許可リスト)タブにIPがリスト表示されている状態。](/talend/ja-JP/api-user-guide/Cloud/Content/Resources/images/ip_allowlist_with_ips.png)
この操作はコマンドラインツールでcurlコマンドを使って実行することもできます。
curl -X POST "https://api.<env>.cloud.talend.com/security/ip-allowlist/ips" -H "accept: */*" -H "Authorization: Bearer <your_access_token>" -H "Content-Type: application/json" -d "[ { \"description\": \"Data Prep user1\", \"ip\": \"230.65.223.167\" }, {\t\"description\": \"Data Prep user2\", \"ip\": \"230.65.223.169\" }]"