[Openstack] Suspend/Stop VM

George Reese george.reese at enstratus.com
Mon Jul 30 17:36:13 UTC 2012


Thanks, this bit is perfect.

-George

On Jul 30, 2012, at 11:57 AM, Eric Windisch <eric at cloudscaling.com> wrote:

> I'm not sure where the actions are documented, but you can infer them from here:
> https://github.com/openstack/python-novaclient/blob/master/novaclient/v1_1/servers.py
> 
> Below, I've pasted a few of the methods related to this thread.  These are POST'ed to the action URI, as Mark suggested.
> 
> Regards,
> Eric Windisch
> 
>     def stop(self, server):
>         """
>         Stop the server.
>         """
>         return self._action('os-stop', server, None)
> 
>     def start(self, server):
>         """
>         Start the server.
>         """
>         self._action('os-start', server, None)
> 
>     def pause(self, server):
>         """
>         Pause the server.
>         """
>         self._action('pause', server, None)
> 
>     def unpause(self, server):
>         """
>         Unpause the server.
>         """
>         self._action('unpause', server, None)
> 
>     def lock(self, server):
>         """
>         Lock the server.
>         """
>         self._action('lock', server, None)
> 
>     def unlock(self, server):
>         """
>         Unlock the server.
>         """
>         self._action('unlock', server, None)
> 
>     def suspend(self, server):
>         """
>         Suspend the server.
>         """
>         self._action('suspend', server, None)
> 
>     def resume(self, server):
>         """
>         Resume the server.
>         """
>         self._action('resume', server, None)

--
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/c3bcb782/attachment.html>


More information about the Openstack mailing list