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 <mar...@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.re...@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

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to