openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15224
Re: Suspend/Stop VM
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@xxxxxxxxxx> 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@xxxxxxxxxxxxx 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
Follow ups
References