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 和 TheHive 5
n8n 提供了两个用于 TheHive 的节点。如果您想使用 TheHive 的版本 5 API,请使用此节点(TheHive 5 Trigger)。如果您想使用版本 3 或 4,请使用 TheHive Trigger。
示例和模板
有关使用示例和模板以帮助你入门,请参阅 n8n 的 TheHive 5 触发器集成 页面。
事件(Events)#
- 提醒
- 已创建
- 已删除
- 已更新
- 案例
- 已创建
- 已删除
- 已更新
- 注释
- 已创建
- 已删除
- 已更新
- 可观察对象
- 已创建
- 已删除
- 已更新
- Page
- 已创建
- 已删除
- 已更新
- 任务
- 已创建
- 已删除
- 已更新
- 任务日志
- 已创建
- 已删除
- 已更新
相关资源(Related resources)#
n8n 为 TheHive 5 提供了一个应用节点。您可以在这里找到节点文档。
🌐 n8n provides an app node for TheHive 5. You can find the node docs here.
有关该服务的更多信息,请参考 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:
- 从 TheHive 触发器节点复制测试和生产环境的 webhook URL。
-
将以下行添加到
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: 1 wsConfig: {} includedTheHiveOrganisations: ["ORGANIZATION_NAME"] excludedTheHiveOrganisations: [] }, { name: PRODUCTION_WEBHOOK_NAME url: PRODUCTION_WEBHOOK_URL version: 1 wsConfig: {} includedTheHiveOrganisations: ["ORGANIZATION_NAME"] excludedTheHiveOrganisations: [] } ] -
将
TESTING_WEBHOOK_URL和PRODUCTION_WEBHOOK_URL替换为你在上一步中复制的 URL。 - 将
TESTING_WEBHOOK_NAME和PRODUCTION_WEBHOOK_NAME替换为你首选的端点名称。 - 将
ORGANIZATION_NAME替换为你的组织名称。 -
执行以下 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" } } ] }'