[Openstack] Suspend/Stop VM
Mark Moseley
moseleymark at gmail.com
Mon Jul 30 16:26:48 UTC 2012
On Mon, Jul 30, 2012 at 8:50 AM, George Reese
<george.reese at 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".
More information about the Openstack
mailing list