XML RPC Template Content

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.

You just need to pass a string to the call. The string contents. The string can be formatted as XML or attribute=value.

Here are some examples of one.user.update.

attribute=value

Wed Jun 18 22:26:01 2025 [Z0][ReM][D]: Req:1728 UID:0 IP:127.0.0.1 one.user.update invoked , 0, "SSH_PUBLIC_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYz+lkZoNyspRhrtXDKFN3cIEwN3w08mz0YGKpVDIiV0+/vgG8dAUQ70Irs3m83W9BHN+vNjKPgKcF+X+sSfxniOtavahxGCRjAhhs1IVm196C5ODbSgXVUWULdtmMHelXbLBJ8X340h/UO+eQ6eRLaRfslXUsgRqremVcvCCPz4LIuRiliGWiELAmqYcY+1zJLeg3QV2Pgn5vschM9e/A4AseKO+HnbGB/I5tnoeZT/Gc3FGfUZLNFVB2XsVGAEEzkqO8VI2msB7MCAZBHffIK6WfLIYgGP6Ha2JT1NWJU7Ncj9Xuql0ElF01VwWMDWzqc0DOiVSsTL89ugJKU6+h one"", 1

XML formattted

Thu Jun 19 14:03:58 2025 [Z0][ReM][D]: Req:80 UID:0 IP:127.0.0.1 one.user.update invoked , 0, "<ROOT><FIREEDGE><SCHEME>system</SCHEME><LANG>en</LANG><SIDEBAR>false</SIDEBAR><DEFAULT_ZONE_ENDPOINT></DEFAULT_ZONE_ENDPOINT><DEFAULT_VIEW></DEFAULT_VIEW><ROW_STYLE>card</ROW_STYLE><ROW_SIZE>100</ROW_SIZE><FULL_SCREEN_INFO>false</FULL_SCREEN_INFO><DISABLE_ANIMATIONS>false</DISABLE_ANIMATIONS></FIREEDGE></ROOT>", 1

The parameters required for each call are mentioned in the XMLRPC API Call doc.

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:

It does NOT display what the parameters for the XML template should be.

Should I be looking some where else and can you please point me to the place.

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

Thank you for your time, I really appreciate it.