Script Hooks
Scripts Hooks
Return script hooks list
This function lists the server's script hooks.
get/list_hooks
Response
HTTP Request was successful.
Example response
{
"data": {
"categories": [
{
"category": "RPM::Versions",
"events": [
{
"event": "MariaDB-server",
"stage_order": [
"pre",
"post"
],
"stages": [
{
"actions": [
{
"category": "RPM::Versions",
"description": "A script description.",
"enabled": 1,
"event": "MariaDB-server",
"exectype": "script",
"hook": "/scripts/postcourier-authlibup",
"id": "KQVO65K_8MWe__3JMPETn43S",
"stage": "post",
"weight": 100
}
],
"description": "My hook script.",
"stage": "post"
}
]
}
]
}
]
},
"metadata": {
"command": "list_hooks",
"reason": "OK",
"result": 1,
"version": 1
}
}