n8nインスタンスのパブリックIPアドレスを取得
中級
これはEngineering分野の自動化ワークフローで、6個のノードを含みます。主にSet, Webhook, Aggregate, HttpRequest, RespondToWebhookなどのノードを使用。 n8nインスタンスのパブリックIPアドレスを取得
前提条件
- •HTTP Webhookエンドポイント(n8nが自動生成)
- •ターゲットAPIの認証情報が必要な場合あり
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "OU7CNqiRY4Kbvq1a",
"meta": {
"instanceId": "135b9ed6d0f8a3f531d9011b0173000ad0dac1ffc90258e867f38c270f30c9dc",
"templateCredsSetupCompleted": true
},
"name": "fetch-public-IP-address-for-n8n-instance",
"tags": [],
"nodes": [
{
"id": "1f1aa04c-fde0-4166-a714-451964e45fe5",
"name": "HTTP リクエスト",
"type": "n8n-nodes-base.httpRequest",
"notes": "request public IP address information as json",
"position": [
300,
-160
],
"parameters": {
"url": "https://api.ipify.org",
"options": {},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "format",
"value": "json"
}
]
}
},
"executeOnce": false,
"notesInFlow": true,
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "ddb35464-535f-4ce4-a14d-682673690ca0",
"name": "Webhook トリガー",
"type": "n8n-nodes-base.webhook",
"notes": "simple webhook with header-auth",
"position": [
-140,
-160
],
"webhookId": "4879bc79-d6f8-48df-bfe4-613366c7f399",
"parameters": {
"path": "4879bc79-d6f8-48df-bfe4-613366c7f399",
"options": {},
"responseMode": "responseNode",
"authentication": "headerAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "0K7Eny0GNMoVhKel",
"name": "Header Auth account"
}
},
"notesInFlow": true,
"typeVersion": 2
},
{
"id": "a6ac927d-404d-44a7-8268-4609094c1346",
"name": "Respond to Webhook トリガー",
"type": "n8n-nodes-base.respondToWebhook",
"notes": "return an array from the workflow and end the webhook invocation.",
"position": [
740,
-160
],
"parameters": {
"options": {},
"respondWith": "text",
"responseBody": "={{ $json.data.pluck('ip').unique().toJsonString() }}"
},
"executeOnce": true,
"notesInFlow": true,
"typeVersion": 1.2,
"alwaysOutputData": true
},
{
"id": "20a55cc9-fba5-4392-a807-2783db6261bb",
"name": "付箋ノート",
"type": "n8n-nodes-base.stickyNote",
"position": [
-200,
-300
],
"parameters": {
"width": 1160,
"height": 380,
"content": "## to fetch the public IP address(es) for the hosting n8n instance\n\n* prerequisite: a header-auth credential with a uuid or an arbitrary random string.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n* example invocation\n$ curl -H \"api-key: super-long-api-token\" http://localhost:5678/webhook-test/4879bc79-d6f8-48df-bfe4-613366c7f399\n[\"88.88.88.66\", \"88.88.88.88\"]"
},
"typeVersion": 1
},
{
"id": "908003cf-f012-4bd6-8128-b3238de2507d",
"name": "集計",
"type": "n8n-nodes-base.aggregate",
"position": [
520,
-160
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData"
},
"typeVersion": 1
},
{
"id": "115d0f12-7ee0-4d0d-8086-f462e8bee197",
"name": "Repeat",
"type": "n8n-nodes-base.set",
"notes": "Repeat 10 times",
"position": [
80,
-160
],
"parameters": {
"options": {},
"duplicateItem": true,
"duplicateCount": 10
},
"executeOnce": true,
"notesInFlow": true,
"typeVersion": 3.4,
"alwaysOutputData": true
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "ea9c9b26-5362-4ee9-84b0-fae0bf02305c",
"connections": {
"115d0f12-7ee0-4d0d-8086-f462e8bee197": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "115d0f12-7ee0-4d0d-8086-f462e8bee197",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - エンジニアリング
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
CSVからJSON変換器(エラーハンドリングとSlack通知)
CSVからJSONへの変換ツール(エラーハンドリングとSlack通知機能付き)
If
Set
Code
+
If
Set
Code
18 ノードn8n Team
エンジニアリング
AI スマートアシスタント: Supabase ストレージと Google Drive ファイルとの対話
AIワンチャットボット:SupabaseストレージとGoogle Driveのファイルと対話
If
Set
Wait
+
If
Set
Wait
62 ノードMark Shcherbakov
エンジニアリング
LintBot:お客様の自動コード品質アシスタント
Google Gemini AIを使ったGitHub PRコード検査と自動修正の自動化
Set
Code
Webhook
+
Set
Code
Webhook
20 ノードAdam Bertram
エンジニアリング
Notion からコンテンツを作成して Linear チケットを生成
Notion のコンテンツから Linear チケットを作成
If
Set
Code
+
If
Set
Code
24 ノードDavid Roberts
エンジニアリング
GitHub モデルを使用した無料 AI アクセス用の OpenAI 互換 API 作成
GitHubモデルを使ってOpenAI互換APIを作成して無料AIアクセスを実現
If
Webhook
Aggregate
+
If
Webhook
Aggregate
17 ノードJimleuk
エンジニアリング
PUQ Docker NextCloud デプロイ
Docker NextCloud のディロイ、WHMCS/WISECP の API バックエンド
If
Set
Ssh
+
If
Set
Ssh
44 ノードPUQcloud
エンジニアリング
ワークフロー情報
難易度
中級
ノード数6
カテゴリー1
ノードタイプ6
作成者
Ger Longstacks
@dims3bodyDevOps expert passionate with automation, be it infrastructure provisioning, cloud operation, or workflow.
外部リンク
n8n.ioで表示 →
このワークフローを共有