I am currently working on an application where I am making use of the XML RPC api to interact with the server. The issue I am facing at the moment is that for the methods that require the string XML template, I have no clue what the XML structure should be.
An example is the one.user.update¶ it has this
The new template contents. Syntax can be the usual attribute=value or XML.
My question is where can I get the documentation that state all the XML values required to update a user and all the other methods that make use of the template XML string.
The success of my project is almost 100% hinged on this.
Any help in the right direction will be really appreciated.
Thank you so much @dclavijo i really appreciate this.
The issue is that I have spent hours on this doc page that you gave to me, except I am looking in the wrong place I do not see the parameters required for the XML calls
For example this the documentation about instantiating VM via a template:
A VM Template can be very simple or very complex, it doesn’t have a parameter list, the VM Template itself is the parameter to the call. Regarding what it should have or not, depends on the VM you want to create. There are some mandatory attributes, like memory and cpu. You can also take a look at the vm template schema for details.
If you are struggling to understand you can get more familiar with the process by issuing api calls through the CLI, for example onetemplate instantiate and then having another terminal open with tail -f /var/log/one/oned.log seeing how the call is issued. You might need to increase LOG_CALL_FORMAT for this.
For example
root@PC04:/opt/one-infra/tools/laptop# onetemplate instantiate base --memory 1111
VM ID: 802
-----
Mon Jun 23 17:15:19 2025 [Z0][ReM][D]: Req:9952 UID:0 IP:127.0.0.1 one.template.instantiate invoked , 170, "", false, "MEMORY=1111", false