How to pass the parameters for one.acl.addrule through XML-RPC API in opennebula?

I tried to add a new ACL rule using XML-RPC API one.acl.addrule,it requires 4 parameters.One is session string,another parameters are ACL rule components.How to pass the ACL rule components by using API.
For example,
I want to add a rule for user,

Hi

The parameters are shown here http://docs.opennebula.org/5.2/integration/system_interfaces/api.html#actions-for-acl-rules-management.

Note that the user/resource/right is a hex number coding the id’s types. Maybe you can use the ruby wrappers, take a look to acl.rb file, or the JAVA helpers in acl.java (AclTests.java)

Good Luck