Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Did you try nova image-create?

$ nova help image-create
usage: nova image-create [--poll] <server> <name>

Create a new image by taking a snapshot of a running server.

Positional arguments:
  <server>  Name or ID of server.
  <name>    Name of snapshot.

Did you try nova image-create?

$ nova help image-create
usage: nova image-create [--poll] <server> <name>

Create a new image by taking a snapshot of a running server.

Positional arguments:
  <server>  Name or ID of server.
  <name>    Name of snapshot.

Looking at the curl calls details using nova --debug image-create:

curl -i http://<my_ip>:8774/v2/<my_tenant_id>/servers/<my_server_id>/action -X POST -H "X-Auth-Project-Id: demo" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <my_token>" -d '{"createImage": {"name": "mysnapshot", "metadata": {}}}'