hi all, I have post a patch about Json Ppc Client API. http://gerrit.ovirt.org/11846
After this patch, we can call json API more easily.
for example, if we want to call VM.shutdown. 1. Firstly, we can get the description from the vdsm/vdsm_api/vdsm-api.html, as follow.
* VM.shutdown:* Request a graceful shutdown of a VM. Arguments vmID UUID cid:part2.04060403.02020709@linux.vnet.ibm.com The UUID of the VM delay int cid:part3.02040007.06060401@linux.vnet.ibm.com #optional Wait a number of seconds before shutting down message str cid:part4.00050703.02040502@linux.vnet.ibm.com #optional Message to display to VM users before shutting down
Since: /4.10.0/
2. Then we can call this API easily in our python code: insAPI = ApiJsonPpcClientAPI(reactorClient) insAPI.VM.shutdown(UUID, delay=10, message="shutdown in 10 seconds")
vdsm-devel@lists.fedorahosted.org