← Back to team overview

openstack team mailing list archive

Re: Suspend/Stop VM

 

On Mon, 2012-07-30 at 10:50 -0500, George Reese 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? :)

Try 'nova --debug pause $instance'

Shows e.g.

  POST /v2/$tenant/servers/$instance/action HTTP/1.1
  Host: $host:8774
  Accept: application/json
  Content-Length: application/json
  Content-Type: text/html
  x-auth-project-id: demo
  x-auth-token: $token

  {"pause": null}'

  HTTP/1.1 202 Accepted

It's an API extension, not part of the core API, and AFAIK they're not
so well documented.

Mark.



Follow ups

References