N8N中文教程
集成节点/Built in_nodes/Triggers

TheHive 5 触发器节点#

使用 TheHive 5 触发器节点可响应 TheHive 中的事件,并将 TheHive 与其他应用程序集成。n8n 内置支持多种 TheHive 事件类型,包括告警(alerts)、案件(cases)、评论(comments)、页面(pages)和任务(tasks)。

本页将列出 TheHive5 触发器节点可响应的事件类型,并提供相关资源的链接。

TheHive 与 TheHive 5 版本说明

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

示例与模板

如需查看使用示例和快速入门模板,请参阅 n8n 的 TheHive 5 触发器集成页面。

事件类型#

  • 告警(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)

相关资源#

n8n 为 TheHive 5 提供了应用节点,相关节点文档请访问此处。 有关该服务的更多信息,请参阅 TheHive 的官方文档。

在 TheHive 中配置 Webhook#

按以下步骤为 TheHive 实例配置 Webhook:

  1. 从 TheHive 触发器节点复制测试环境和生产环境的 Webhook URL
  2. 在 TheHive 配置文件 application.conf 中添加以下配置段:
 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: [] } ]


---|---
  3. 将 `TESTING_WEBHOOK_URL` 和 `PRODUCTION_WEBHOOK_URL` 替换为你在上一步复制的 URL。
  4. 将 `TESTING_WEBHOOK_NAME` 和 `PRODUCTION_WEBHOOK_NAME` 替换为你偏好的端点名称。
  5. 将 `ORGANIZATION_NAME` 替换为你的组织名称。
  6. 执行以下 cURL 命令以启用通知:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

| ```
curl'Content-type: application/json''
{
	"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" }
		}
	]
}'

---|---

与文档互动 本页面 !点赞 有帮助 !点踩 无帮助 感谢您的反馈! 提交 上一页 常见问题 下一页 TheHive 触发器 基于 Material for MkDocs Insiders 构建