[user-guide] Update the glance command option description

Specify the option --location is only available in V1 API

Change-Id: I1bb1e219d1160e6b4ec181b7e34a08fdcbff0076
Closes-Bug: #1607104
This commit is contained in:
chen-xing 2016-07-30 20:48:46 +08:00 committed by chen.xing
parent 0a1948c3cf
commit 3e115943b8

View File

@ -133,10 +133,10 @@ To update an image by name or ID, use :command:`openstack image set`:
.. code-block:: console .. code-block:: console
$ glance image-update imageName $ openstack image set imageName
The following list explains the optional arguments that you can use with The following list explains the optional arguments that you can use with
the ``create`` and ``update`` commands to modify image properties. For the ``create`` and ``set`` commands to modify image properties. For
more information, refer to Image service chapter in the `OpenStack more information, refer to Image service chapter in the `OpenStack
Command-Line Interface Command-Line Interface
Reference <http://docs.openstack.org/cli-reference/index.html>`__. Reference <http://docs.openstack.org/cli-reference/index.html>`__.
@ -164,9 +164,12 @@ Reference <http://docs.openstack.org/cli-reference/index.html>`__.
The minimum amount of RAM needed to boot the image, in megabytes. The minimum amount of RAM needed to boot the image, in megabytes.
``--location IMAGE_URL`` ``--location IMAGE_URL``
The URL where the data for this image resides. For example, if the The URL where the data for this image resides. This option is only
image data is stored in swift, you could specify available in V1 API. When using it, you also need to set
``swift://account:key@example.com/container/obj``. ``--os-image-api-version``. For example, if the image data is
stored in swift, you could specify
``--os-image-api-version 1
--location swift://account:key@example.com/container/obj``.
``--file FILE`` ``--file FILE``
Local file that contains the disk image to be uploaded during the Local file that contains the disk image to be uploaded during the