From f5b50df8ea6de7e763f1c2e7079429d9c783f963 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 19 Sep 2015 13:04:13 -0400 Subject: 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 Co-Authored-By: Sean Perry Change-Id: If7b81c4a6746c8a1eb0302c96e045fb0f457d67b --- doc/source/command-objects/image.rst | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'doc/source/command-objects') 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 [...] ] + [--tag [...] ] .. option:: --id @@ -42,6 +43,8 @@ Create/upload an image Upload image to this store + *Image version 1 only.* + .. option:: --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 Image size, in bytes (only used with --location and --copy-from) + *Image version 1 only.* + .. option:: --min-disk 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 Copy image from the data store (similar to --location) + *Image version 1 only.* + .. option:: --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 + + Set a tag on this image (repeat for multiple values) + + .. versionadded:: 2 + .. describe:: New image name -- cgit v1.2.1