← Back to team overview

openstack team mailing list archive

Re: Suspend/Stop VM

 

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)




Follow ups

References