Skip to content

TheHive 触发器节点(TheHive Trigger node)#

本页面列出了 TheHive 触发器节点可以响应的事件列表以及更多资源的链接。

🌐 On this page, you'll find a list of events the TheHive Trigger node can respond to and links to more resources.

TheHive 和 TheHive 5

n8n 提供了两个用于 TheHive 的节点。如果您想使用 TheHive 的 3 或 4 版本 API,请使用此节点(TheHive Trigger)。如果您想使用 5 版本,请使用 TheHive 5 Trigger

示例和模板

有关使用示例和帮助你入门的模板,请参阅 n8n 的 TheHive Trigger 集成 页面。

事件(Events)#

  • 提醒
    • 已创建
    • 已删除
    • 已更新
  • 案例
    • 已创建
    • 已删除
    • 已更新
  • 日志
    • 已创建
    • 已删除
    • 已更新
  • 可观察对象
    • 已创建
    • 已删除
    • 已更新
  • 任务
    • 已创建
    • 已删除
    • 已更新

n8n 为 TheHive 提供了一个应用节点。你可以在这里找到该节点的文档。

🌐 n8n provides an app node for TheHive. You can find the node docs here.

在 n8n 网站上查看示例工作流及相关内容

🌐 View example workflows and related content on n8n's website.

有关服务的更多信息,请参阅 TheHive 的文档。

🌐 Refer to TheHive's documentation for more information about the service:

在 TheHive 中配置 Webhook(Configure a webhook in TheHive)#

要为你的 TheHive 实例配置 Webhook:

🌐 To configure the webhook for your TheHive instance:

  1. 从 TheHive 触发器节点复制测试和生产环境的 webhook URL。
  2. 将以下行添加到 application.conf 文件中。这是 TheHive 的配置文件:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    notification.webhook.endpoints = [
    	{
    		name: TESTING_WEBHOOK_NAME
    		url: TESTING_WEBHOOK_URL
    		version: 0
    		wsConfig: {}
    		includedTheHiveOrganisations: ["ORGANIZATION_NAME"]
    		excludedTheHiveOrganisations: []
    	},
    	{
    		name: PRODUCTION_WEBHOOK_NAME
    		url: PRODUCTION_WEBHOOK_URL
    		version: 0
    		wsConfig: {}
    		includedTheHiveOrganisations: ["ORGANIZATION_NAME"]
    		excludedTheHiveOrganisations: []
    	}
    ]
    
  3. TESTING_WEBHOOK_URLPRODUCTION_WEBHOOK_URL 替换为你在上一步中复制的 URL。

  4. TESTING_WEBHOOK_NAMEPRODUCTION_WEBHOOK_NAME 替换为你首选的端点名称。
  5. ORGANIZATION_NAME 替换为你的组织名称。
  6. 执行以下 cURL 命令以启用通知:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    curl -XPUT -uTHEHIVE_USERNAME:THEHIVE_PASSWORD -H 'Content-type: application/json' THEHIVE_URL/api/config/organisation/notification -d '
    {
    	"value": [
    		{
    		"delegate": false,
    		"trigger": { "name": "AnyEvent"},
    		"notifier": { "name": "webhook", "endpoint": "TESTING_WEBHOOK_NAME" }
    		},
    		{
    		"delegate": false,
    		"trigger": { "name": "AnyEvent"},
    		"notifier": { "name": "webhook", "endpoint": "PRODUCTION_WEBHOOK_NAME" }
    		}
    	]
    }'