openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15230
Re: Suspend/Stop VM
Thanks, this bit is perfect.
-George
On Jul 30, 2012, at 11:57 AM, Eric Windisch <eric@xxxxxxxxxxxxxxxx> 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@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
References