Project

General

Profile

Actions

User story #21082

closed

User story #21083: Provide a page to list the different hooks of a Rudder server

List of hooks API

Added by Elaad FURREEDAN over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Dependencies
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:

Description

Add an API to get all hooks in order to create hook's page
The format should look like :

{
  "action": "listHooks",
  "result": "success",
  "data": {
    "root": "/opt/rudder/etc/hooks.d",
    "events": {
      "node-inventory-received-accepted": [],
      "node-inventory-received-pending": [],
      "node-post-acceptance": [],
      "node-post-deletion": [],
      "node-pre-deletion": [],
      "policy-generation-failed": [],
      "policy-generation-finished": [],
      "policy-generation-node-finished": [],
      "policy-generation-node-ready": [],
      "policy-generation-started": [],
    }
  }
}
Actions

Also available in: Atom PDF