mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 18:20:23 +00:00
Add new iohyve API call to set properties
Requires "name" of the VM, and then any other args
will be set on the VM as properties
REST Request:
-------------------------------
PUT /sysadm/iohyve
{
"ram" : "512M",
"name" : "bsdguest",
"action" : "setprop"
}
WebSocket Request:
-------------------------------
{
"namespace" : "sysadm",
"id" : "fooid",
"args" : {
"ram" : "512M",
"name" : "bsdguest",
"action" : "setprop"
},
"name" : "iohyve"
}
Response:
-------------------------------
{
"args": {
"setprop": {
"bsdguest": {
"ram": "512M"
}
}
},
"id": "fooid",
"name": "response",
"namespace": "sysadm"
}
This commit is contained in:
@@ -641,6 +641,10 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmIohyveRequest(const QJsonVal
|
||||
ok = true;
|
||||
out->insert("resizedisk", sysadm::Iohyve::resizeDisk(in_args.toObject()));
|
||||
}
|
||||
else if(act=="setprop"){
|
||||
ok = true;
|
||||
out->insert("setprop", sysadm::Iohyve::setProp(in_args.toObject()));
|
||||
}
|
||||
else if(act=="setup"){
|
||||
ok = true;
|
||||
out->insert("setup", sysadm::Iohyve::setupIohyve(in_args.toObject()));
|
||||
|
||||
Reference in New Issue
Block a user