summaryrefslogtreecommitdiff
path: root/doc/source/command-objects/image.rst
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-09-19 13:04:13 -0400
committerSteve Martinelli <stevemar@ca.ibm.com>2015-09-21 14:51:03 -0400
commitf5b50df8ea6de7e763f1c2e7079429d9c783f963 (patch)
tree49cb051a5de9c6d4144d58a4f5ea8f893ef9643f /doc/source/command-objects/image.rst
parentb288fbfb35a00fac7e2646592a7cabeff09026b3 (diff)
downloadpython-openstackclient-f5b50df8ea6de7e763f1c2e7079429d9c783f963.tar.gz
Add image create support for image v2
We have it for v1, but v2 is the future. There are two differences, things in v2 do not go into a properties dict, and the actual image data needs to get uploaded as a second step. Closes-Bug: 1405562 Co-Authored-By: Niall Bunting <niall.bunting@hp.com> Co-Authored-By: Sean Perry <sean.perry@hp.com> Change-Id: If7b81c4a6746c8a1eb0302c96e045fb0f457d67b
Diffstat (limited to 'doc/source/command-objects/image.rst')
-rw-r--r--doc/source/command-objects/image.rst21
1 files changed, 20 insertions, 1 deletions
diff --git a/doc/source/command-objects/image.rst b/doc/source/command-objects/image.rst
index 25741424..8e44f517 100644
--- a/doc/source/command-objects/image.rst
+++ b/doc/source/command-objects/image.rst
@@ -7,7 +7,7 @@ Image v1, v2
image create
------------
-*Only supported for Image v1*
+*Image v1, v2*
Create/upload an image
@@ -32,6 +32,7 @@ Create/upload an image
[--protected | --unprotected]
[--public | --private]
[--property <key=value> [...] ]
+ [--tag <tag> [...] ]
<image-name>
.. option:: --id <id>
@@ -42,6 +43,8 @@ Create/upload an image
Upload image to this store
+ *Image version 1 only.*
+
.. option:: --container-format <container-format>
Image container format (default: bare)
@@ -54,10 +57,14 @@ Create/upload an image
Image owner project name or ID
+ *Image version 1 only.*
+
.. option:: --size <size>
Image size, in bytes (only used with --location and --copy-from)
+ *Image version 1 only.*
+
.. option:: --min-disk <disk-gb>
Minimum disk size needed to boot image, in gigabytes
@@ -70,10 +77,14 @@ Create/upload an image
Download image from an existing URL
+ *Image version 1 only.*
+
.. option:: --copy-from <image-url>
Copy image from the data store (similar to --location)
+ *Image version 1 only.*
+
.. option:: --file <file>
Upload image from local file
@@ -90,6 +101,8 @@ Create/upload an image
Image hash used for verification
+ *Image version 1 only.*
+
.. option:: --protected
Prevent image from being deleted
@@ -110,6 +123,12 @@ Create/upload an image
Set a property on this image (repeat for multiple values)
+.. option:: --tag <tag>
+
+ Set a tag on this image (repeat for multiple values)
+
+ .. versionadded:: 2
+
.. describe:: <image-name>
New image name