Skip to content

Plugins

Retrieve the status of all plugins of a managed node in WombatOAM.

GET /api/plugins/node/NODE_ID/plugin
curl -X GET "http://127.0.0.1:8080/api/plugins/node/\
298548c9-f5f8-464d-9a2c-07d494c3ecd4/plugin" \
-u admin:PASSWORD
{
"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"
},
{...}
]
}
Argument Description
node ID Required. The identifier of the node from which to retrieve plugin state.

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 the state of all plugins on a node to either on or off.

PUT /api/plugins/node/NODE_ID/plugin
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"
}
{
"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"
},
{...}
]
}
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).

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 a specific node plugin state to either on or off.

PUT /api/plugins/node/NODE_ID/plugin/PLUGIN_ID
{
"plugin_state": "PLUGIN_STATE"
}
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:PASSWORD
{
"plugin_name": "wombat_plugin_node_info",
"plugin_apps": "kernel",
"plugin_state": "off"
}
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).

Updated details of the plugin, showing the new plugin state.