Skip to content

TheHive 5 触发器节点#

¥TheHive 5 Trigger node

使用 TheHive 5 Trigger 节点响应 TheHive 中的事件,并将 TheHive 与其他应用集成。n8n 内置支持 TheHive 的多种事件,包括警报、案例、评论、页面和任务。

¥Use the TheHive 5 Trigger node to respond to events in TheHive and integrate TheHive with other applications. n8n has built-in support for a wide range of TheHive events, including alerts, cases, comments, pages, and tasks.

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

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

TheHive and TheHive 5

n8n 提供了两个 TheHive 节点。如果需要使用 TheHive 的版本 5 API,请使用此节点(TheHive 5 触发器)。如果你想使用版本 3 或 4,请使用 TheHive 触发器

¥n8n provides two nodes for TheHive. Use this node (TheHive 5 Trigger) if you want to use TheHive's version 5 API. If you want to use version 3 or 4, use TheHive Trigger.

Examples and templates

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

¥For usage examples and templates to help you get started, refer to n8n's TheHive 5 Trigger integrations page.

事件#

¥Events

  • 提醒

¥Alert

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 案例

¥Case

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 注释

¥Comment

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 可观察对象

¥Observable

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • Page

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 任务

¥Task

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 任务日志

¥Task log

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

相关资源#

¥Related resources

n8n 提供 TheHive 5 的应用节点。你可以找到节点文档 此处

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

有关服务的更多信息,请参阅 TheHive 的 documentation

¥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。

¥Copy the testing and production webhook URLs from TheHive Trigger node.

  1. 将以下代码行添加到 application.conf 文件。这是 TheHive 配置文件:

¥Add the following lines to the application.conf file. This is TheHive configuration file:

 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: 1
		wsConfig: {}
		includedTheHiveOrganisations: ["ORGANIZATION_NAME"]
		excludedTheHiveOrganisations: []
	},
	{
		name: PRODUCTION_WEBHOOK_NAME
		url: PRODUCTION_WEBHOOK_URL
		version: 1
		wsConfig: {}
		includedTheHiveOrganisations: ["ORGANIZATION_NAME"]
		excludedTheHiveOrganisations: []
	}
]
  1. TESTING_WEBHOOK_URLPRODUCTION_WEBHOOK_URL 替换为你在上一步中复制的 URL。

¥Replace TESTING_WEBHOOK_URL and PRODUCTION_WEBHOOK_URL with the URLs you copied in the previous step.

  1. TESTING_WEBHOOK_NAMEPRODUCTION_WEBHOOK_NAME 替换为你首选的端点名称。

¥Replace TESTING_WEBHOOK_NAME and PRODUCTION_WEBHOOK_NAME with your preferred endpoint names.

  1. ORGANIZATION_NAME 替换为你的组织名称。

¥Replace ORGANIZATION_NAME with your organization name.

  1. 执行以下 cURL 命令以启用通知:

¥Execute the following cURL command to enable notifications:

 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" }
		}
	]
}'