mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Add API call to show iohyve version
REST Request:
-------------------------------
PUT /sysadm/iohyve
{
"action" : "version"
}
WebSocket Request:
-------------------------------
{
"namespace" : "sysadm",
"args" : {
"action" : "version"
},
"id" : "fooid",
"name" : "iohyve"
}
Response:
-------------------------------
{
"args": {
"version": {
"version": "iohyve v0.7.3 2016/01/08 Bear in a Datacenter Edition"
}
},
"id": "fooid",
"name": "response",
"namespace": "sysadm"
}
This commit is contained in:
@@ -648,6 +648,10 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmIohyveRequest(const QJsonVal
|
||||
ok = true;
|
||||
out->insert("stop", sysadm::Iohyve::stopGuest(in_args.toObject()));
|
||||
}
|
||||
else if(act=="version"){
|
||||
ok = true;
|
||||
out->insert("version", sysadm::Iohyve::version());
|
||||
}
|
||||
//qDebug() << " - iohyve action finished:" << act << ok;
|
||||
} //end of "action" key usage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user