← Back to team overview

openstack team mailing list archive

Re: Suspend/Stop VM

 

On Mon, Jul 30, 2012 at 8:50 AM, George Reese
<george.reese@xxxxxxxxxxxxx> 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".


Follow ups

References