Get the script file contents.
-
OAuth bearer token authorization header.
get /events/scripts/{id}
"string"
Delete a script file.
-
OAuth bearer token authorization header.
delete /events/scripts/{id}
Update or rename a script file.
-
-
OAuth bearer token authorization header.
patch /events/scripts/{id}
List of all script files.
OAuth bearer token authorization header.
get /events/scripts
-
-
[
{
"id": 0,
"name": "string"
}
]
Create a script file.
-
OAuth bearer token authorization header.
post /events/scripts
-
{
"id": {}
}
List of all available hook points.
OAuth bearer token authorization header.
get /events/hooks/hook-points
-
True for hook points running on Ceph nodes. False for hook points running on the management node.
Description of the hook point.
Information on parameters passed to the script.
-
-
[
{
"name": "string",
"canChooseServer": true,
"description": "string",
"parameters": [
{
"name": "string",
"description": "string"
}
]
}
]
List of all installed hook scripts.
OAuth bearer token authorization header.
get /events/hooks
-
-
-
[PreNetworkConfig, PostNetworkConfig, PreDaemonStart, PostDaemonStart, PreFormatDisk, PostFormatDisk, PostCephDaemonStart, OnHealthDegrade, OnHealthRecover, PreCrushMapChange, PostCrushMapChange, PostConfigChanged, OnDhcpLeaseUpdate]
-
-
-
[
{
"id": 0,
"scriptId": 0,
"scriptName": "string",
"event": "PreNetworkConfig",
"allServers": true,
"serverIds": [
0
],
"serverNames": [
"string"
]
}
]
Install a hook script at a given hook point.
-
OAuth bearer token authorization header.
post /events/hooks
Delete a hook event.
-
OAuth bearer token authorization header.
delete /events/hooks/{id}
Install a hook script at a given hook point.
-
-
OAuth bearer token authorization header.
patch /events/hooks/{id}
Run a hook script now.
-
OAuth bearer token authorization header.
post /events/hooks/{id}/execute