Hi Marco,<div><br></div><div>The XML-RPC call requests an image id because the image has to be created beforehand.</div><div>You can check how it is done in the oneimage command (it's a straight forward ruby script), and then replicate the same steps in your code.</div>

<div><br></div><div>Regards,</div><div>Carlos.</div><div><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>Carlos Martín, Engineer, MSc<br>Project Major Contributor<br>

<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br><a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>


<br><br><div class="gmail_quote">On 8 February 2011 17:03, Marco Strutz <span dir="ltr"><<a href="mailto:marco.strutz@desy.de">marco.strutz@desy.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello.<br>
<br>
What is the best way to map the "onevm saveas" command [1] to OCCI or<br>
XMLRPC-Request? I need to save vm images but want to avoid using the<br>
command line interface.<br>
<br>
I cannot simply use the xmlrpc-call  "one.vm.savedisk" [2] since I then<br>
would need to know the "image id where the disk will be saved". But this<br>
ID will be dynamically created by the "onevm saveas" command, right?<br>
Furthermore where should I place the <image_name> in the XMLRPC-call?<br>
The same problem with OCCI: Are there any attributes (perhaps for the<br>
<CONTEXTUALISATION> section) I can use for the "onevm saveas"?<br>
<br>
<br>
<br>
Thanks<br>
Marco<br>
<br>
<br>
[1]<br>
onevm saveas <vm_id> <disk_id> <image_name><br>
<br>
<br>
[2]<br>
one.vm.savedisk<br>
****************<br>
Type     Data Type     Description<br>
IN     String     the session string associated to the connected user. * *<br>
IN     Int     the virtual machine Id (vid) of the instance.<br>
IN     Int     disk id of the disk we want to save.<br>
IN     Int     image id where the disk will be saved.<br>
OUT     Boolean     true or false whenever is successful or not<br>
OUT     String     if an error occurs this is error message, otherwise<br>
it does not exist.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br></div>