Hi,<div><br>If you want to do an action on a compute using curl, you have to use the following command:<br>$ curl -u oneuser:sha1_pass <a href="http://localhost:4567/compute/id">http://localhost:4567/compute/id</a> -X PUT -d "<COMPUTE><STATE>resume</STATE></COMPUTE>"<br>

<br>Where the state can be,<br><ul><li>stopped</li><li>suspended</li><li>resume</li><li>cancel</li><li>shutdown</li><li>done</li></ul><div>that defines the target state.</div><div><br></div><div>Regards.</div><div><br><div class="gmail_quote">

On 11 August 2010 16:42, marwen marwen <span dir="ltr"><<a href="mailto:marwen.ensi@gmail.com">marwen.ensi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi <br><br>I am using OCCI with opennebula. I can create, delete, show and list all the virtual machine but I can't update a VM.<br>can you help me to know how to do an action (suspend, restart,stop..) to the virtual machine when using curl with OCCI <br>



<br>Best Regards<br><font color="#888888">Marwen
</font><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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Daniel Molina, Cloud Technology Engineer/Researcher<br>DSA Research Group: web <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a> and blog <a href="http://blog.dsa-research.org" target="_blank">http://blog.dsa-research.org</a><br>

OpenNebula Open Source Toolkit for Cloud Computing: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>
</div></div>