Bug #24071
Add VM device to API
Status:
Resolved
Priority:
No priority
Assignee:
Vaibhav Chauhan
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No
Description
had a conversation with marcelo, he convinced me to use websocket instead of REST API. which is fine by me.
I need following items from marcelo. ()
1). need more elaborate examples in VM section http://10.211.1.193/api/docs/#vm, which specifies how a websocket calls with args would look like,
midclt call vm.update '1' '{"devices": [{"dtype": "VNC", "attributes": {"wait": true, "vnc_port": "9100", "vnc_resolution": "640x480"}}, {"dtype": "NIC", "attributes": {"type": "VIRTIO", "mac": "00:a0:98:FF:FF:CC"}}, {"dtype": "CDROM", "attributes": {"path": null}}, {"dtype": "DISK", "attributes": {"path": "/dev/", "type": ""}}, {"dtype": "NIC", "attributes": {"type": "", "mac": ""}}, {"dtype": "VNC", "attributes": {"wait": true, "vnc_port": "2026", "vnc_resolution": "1024x768"}}]}'
2). clearly, state the limitations of the existing calls in the documentation.
Subtasks
Associated revisions
WIP commit
Ticket: #24071
WIP commit
Ticket: #24071
Added Bool method to utils.
Ticket: #24071
websocket API payload should be an Object.
Ticket: #24071
Remove RestService imports and initilization as it's not needed anymore.
Ticket: #24071
History
#1
Updated by Vaibhav Chauhan over 3 years ago
- Subject changed from VM edit makes use of websocket instead of REST API. to VM device edit makes use of websocket instead of REST API.
#2
Updated by Kris Moore over 3 years ago
- Target version changed from 11.0 to 11.1
#3
Updated by Vaibhav Chauhan over 3 years ago
- Status changed from Unscreened to Screened
#4
Updated by Vaibhav Chauhan over 3 years ago
- Status changed from Screened to Resolved
#5
Updated by Dru Lavigne over 3 years ago
- Subject changed from VM device edit makes use of websocket instead of REST API. to Add VM device to API
#6
Updated by Dru Lavigne over 3 years ago
- Target version changed from 11.1 to 11.1-BETA1
#7
Updated by Joe Maloney about 3 years ago
- Needs QA changed from Yes to No
- QA Status deleted (
Not Tested)