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,


The parameters are shown here

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 (

Good Luck