I am trying to create a VM using Opennebula XML-RPC API. That shouldn't be a problem, according to their documentation.
However, parameters required for this method are nowhere to be seen (as well as for all other methods).
So far, I have managed to list all VMs, by diving into Opennebula CLI scripts and finding that onevm list
(one.vmpool.info
in context of pyone) requires 4 parameters that have to be integers:
In [1]: import pyone
In [2]: one = pyone.OneServer('http://oneserver:2633/RPC2', session='admin:pass')
In [3]: one.vmpool.info(-1, -1, -1, -1)
Out[3]: <pyone.bindings.VM_POOLSub at 0x103be9190>
This approach is quite ridiculous, however.
I'm sure there is a way to get the required RPC method parameters more easily, I just can't find one.
Hoping for your help!
The parameters for IN and OUT are located in the documentation link you mentioned - https://docs.opennebula.io/6.0/integration_and_development/system_interfaces/api.html#actions-for-templates-management
You can find all the necessary parameters here. In case you still have issues, do let me know!