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 and TheHive 5

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

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

Examples and templates

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

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

事件#

¥Events

  • 提醒

¥Alert

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 案例

¥Case

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 日志

¥Log

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 可观察对象

¥Observable

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

  • 任务

¥Task

  • 已创建

    ¥Created

  • 已删除

    ¥Deleted

  • 已更新

    ¥Updated

相关资源#

¥Related resources

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:

¥Version 3

¥Version 4

在 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: 0
		wsConfig: {}
		includedTheHiveOrganisations: ["ORGANIZATION_NAME"]
		excludedTheHiveOrganisations: []
	},
	{
		name: PRODUCTION_WEBHOOK_NAME
		url: PRODUCTION_WEBHOOK_URL
		version: 0
		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" }
		}
	]
}'