[Openstack] Suspend/Stop VM

George Reese george.reese at enstratus.com
Mon Jul 30 16:48:29 UTC 2012


Thanks for this and a number of other suggestions. I am giving them a try.

Just a note though: some of the things that appear to work are inconsistent with other server actions in structure (os-stop vs. pause vs. os-start vs. reboot).

-George

On Jul 30, 2012, at 11:32 AM, Mark McLoughlin <markmc at redhat.com> wrote:

> On Mon, 2012-07-30 at 10:50 -0500, George Reese wrote:
>> I must be missing something, but I can't find any docs on how to suspend or stop a VM via API.
>> 
>> Any pointers, please? :)
> 
> Try 'nova --debug pause $instance'
> 
> Shows e.g.
> 
>  POST /v2/$tenant/servers/$instance/action HTTP/1.1
>  Host: $host:8774
>  Accept: application/json
>  Content-Length: application/json
>  Content-Type: text/html
>  x-auth-project-id: demo
>  x-auth-token: $token
> 
>  {"pause": null}'
> 
>  HTTP/1.1 202 Accepted
> 
> It's an API extension, not part of the core API, and AFAIK they're not
> so well documented.
> 
> Mark.
> 

--
George Reese - Chief Technology Officer, enStratus
e: george.reese at enstratus.com    Skype: nspollution    t: @GeorgeReese    p: +1.207.956.0217
enStratus: Enterprise Cloud Management - @enStratus - http://www.enstratus.com
To schedule a meeting with me: http://tungle.me/GeorgeReese

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120730/3f3be1c8/attachment.html>


More information about the Openstack mailing list