Hi
I am using the API for an Android app and can't figure out how to get status of a plugin (stopped/started).
I can send a GET to:
/api/v1.0/plugins/plugins/
which results in a response like this on 9.3:
[
{
"id": 1,
"plugin_api_version": "2",
"plugin_arch": "amd64",
"plugin_enabled": true,
"plugin_ip": "-",
"plugin_jail": "transmission_1",
"plugin_name": "transmission",
"plugin_path": "/usr/pbi/transmission-amd64",
"plugin_pbiname": "transmission-2.92-amd64",
"plugin_port": 12346,
"plugin_version": "2.92"
}
]
API documentation: http://api.freenas.org/resources/plugins.html#list-resource
This plugin is stopped which isn't showing in the results. I can get the status of the jail "transmission_1", but that doesn't necessarily have the same status (jails can be started while plugin is stopped).
There are operations for starting and stopping a plugin, so there should be a status as well...:
http://api.freenas.org/resources/plugins.html#start-plugin
http://api.freenas.org/resources/plugins.html#stop-plugin
Have I missed anything?
I am using the API for an Android app and can't figure out how to get status of a plugin (stopped/started).
I can send a GET to:
/api/v1.0/plugins/plugins/
which results in a response like this on 9.3:
[
{
"id": 1,
"plugin_api_version": "2",
"plugin_arch": "amd64",
"plugin_enabled": true,
"plugin_ip": "-",
"plugin_jail": "transmission_1",
"plugin_name": "transmission",
"plugin_path": "/usr/pbi/transmission-amd64",
"plugin_pbiname": "transmission-2.92-amd64",
"plugin_port": 12346,
"plugin_version": "2.92"
}
]
API documentation: http://api.freenas.org/resources/plugins.html#list-resource
This plugin is stopped which isn't showing in the results. I can get the status of the jail "transmission_1", but that doesn't necessarily have the same status (jails can be started while plugin is stopped).
There are operations for starting and stopping a plugin, so there should be a status as well...:
http://api.freenas.org/resources/plugins.html#start-plugin
http://api.freenas.org/resources/plugins.html#stop-plugin
Have I missed anything?