On Mon, Jul 30, 2012 at 8:50 AM, George Reese
<george.re...@enstratus.com> 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? :)

I think this works (see http://api.openstack.org/) but haven't tested
it in a while:

Stop: Encode this python dict with json.dumps:

params = { "suspend": None, }

and POST it as the body to v2/{tenant_id}/servers/{server_id}/action

The None really needs to be a None. To start back up, use "resume"
instead of "suspend".

_______________________________________________
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