Plugins
Get node plugins state
Section titled “Get node plugins state”Retrieve the status of all plugins of a managed node in WombatOAM.
Definition
Section titled “Definition”GET /api/plugins/node/NODE_ID/pluginExample request
Section titled “Example request”curl -X GET "http://127.0.0.1:8080/api/plugins/node/\298548c9-f5f8-464d-9a2c-07d494c3ecd4/plugin" \ -u admin:PASSWORDExample response
Section titled “Example response”{ "plugins": [ { "plugin_name": "wombat_plugin_error_logger", "plugin_apps": "kernel", "plugin_state": "on" }, { "plugin_name": "wombat_plugin_logger", "plugin_apps": "kernel", "plugin_state": "on" }, { "plugin_name": "wombat_plugin_builtin_memory_metrics", "plugin_apps": "kernel", "plugin_state": "on" }, {...} ]}Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| node ID | Required. The identifier of the node from which to retrieve plugin state. |
Returns
Section titled “Returns”An array of plugin objects. The plugin objects contain the plugin_name,
the plugin_apps, and the plugin_state, which indicates whether a plugin
is switched on or off.
Set all node plugins state
Section titled “Set all node plugins state”Set the state of all plugins on a node to either on or off.
Definition
Section titled “Definition”PUT /api/plugins/node/NODE_ID/pluginExample request
Section titled “Example request”curl -X PUT "http://127.0.0.1:8080/api/plugins/node/\298548c9-f5f8-464d-9a2c-07d494c3ecd4/plugin" \ -H "Content-Type: application/json" \ -d "{\"plugin_state\":\"on\"}" \ -u admin:PASSWORD{ "plugin_state": "PLUGIN_STATE"}Example response
Section titled “Example response”{ "plugins": [ { "plugin_name": "wombat_plugin_mnesia", "plugin_apps": "mnesia", "plugin_state": "on" }, { "plugin_name": "wombat_plugin_process_monitor", "plugin_apps": "kernel", "plugin_state": "on" }, { "plugin_name": "wombat_plugin_profiler", "plugin_apps": "kernel", "plugin_state": "on" }, { "plugin_name": "wombat_plugin_shell_killer", "plugin_apps": "kernel", "plugin_state": "on" }, {...} ]}Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| NODE_ID | Required. The identifier of the node on which to set the plugin state. |
| PLUGIN_STATE | Required. The intended plugin state (on or off). |
Returns
Section titled “Returns”An array of plugin objects. The plugin objects contain the plugin_name,
the plugin_apps, and the plugin_state, which indicates whether a plugin
is switched on or off.
Set node plugin state
Section titled “Set node plugin state”Set a specific node plugin state to either on or off.
Definition
Section titled “Definition”PUT /api/plugins/node/NODE_ID/plugin/PLUGIN_ID{ "plugin_state": "PLUGIN_STATE"}Example request
Section titled “Example request”curl -X PUT "http://127.0.0.1:8080/api/plugins/node/\36ee2813-76c6-4823-9c8f-243014916bb1/\plugin/wombat_plugin_node_info" \ -H "Content-Type: application/json" \ -d "{\"plugin_state\":\"off\"}" \ -u admin:PASSWORDExample response
Section titled “Example response”{ "plugin_name": "wombat_plugin_node_info", "plugin_apps": "kernel", "plugin_state": "off"}Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
| NODE_ID | Required. The identifier of the node on which to set the plugin state. |
| PLUGIN_ID | Required. The identifier of the plugin for which to set the state. |
| PLUGIN_STATE | Required. The intended plugin state (on or off). |
Returns
Section titled “Returns”Updated details of the plugin, showing the new plugin state.
