| 1 |
============================== |
| 2 |
:program:`glance` CLI man page |
| 3 |
============================== |
| 4 |
|
| 5 |
.. program:: glance |
| 6 |
.. highlight:: bash |
| 7 |
|
| 8 |
SYNOPSIS |
| 9 |
======== |
| 10 |
|
| 11 |
:program:`glance` [options] <command> [command-options] |
| 12 |
|
| 13 |
:program:`glance help` |
| 14 |
|
| 15 |
:program:`glance help` <command> |
| 16 |
|
| 17 |
|
| 18 |
DESCRIPTION |
| 19 |
=========== |
| 20 |
|
| 21 |
The :program:`glance` command line utility interacts with OpenStack Images |
| 22 |
Service (Glance). |
| 23 |
|
| 24 |
In order to use the CLI, you must provide your OpenStack username, password, |
| 25 |
project (historically called tenant), and auth endpoint. You can use |
| 26 |
configuration options ``--os-username``, ``--os-password``, ``--os-project-id``, |
| 27 |
and ``--os-auth-url`` or set corresponding environment variables:: |
| 28 |
|
| 29 |
export OS_USERNAME=user |
| 30 |
export OS_PASSWORD=pass |
| 31 |
export OS_PROJECT_ID=b363706f891f48019483f8bd6503c54b |
| 32 |
export OS_AUTH_URL=http://auth.example.com:5000/v2.0 |
| 33 |
|
| 34 |
The command line tool will attempt to reauthenticate using provided credentials |
| 35 |
for every request. You can override this behavior by manually supplying an auth |
| 36 |
token using ``--os-image-url`` and ``--os-auth-token`` or by setting |
| 37 |
corresponding environment variables:: |
| 38 |
|
| 39 |
export OS_IMAGE_URL=http://glance.example.org:9292/ |
| 40 |
export OS_AUTH_TOKEN=3bcc3d3a03f44e3d8377f9247b0ad155 |
| 41 |
|
| 42 |
You can select an API version to use by ``--os-image-api-version`` option or by |
| 43 |
setting corresponding environment variable:: |
| 44 |
|
| 45 |
export OS_IMAGE_API_VERSION=1 |
| 46 |
|
| 47 |
Default Images API used is v2. |
| 48 |
|
| 49 |
OPTIONS |
| 50 |
======= |
| 51 |
|
| 52 |
To get a list of available commands and options run:: |
| 53 |
|
| 54 |
glance help |
| 55 |
|
| 56 |
To get usage and options of a command:: |
| 57 |
|
| 58 |
glance help <command> |
| 59 |
|
| 60 |
|
| 61 |
EXAMPLES |
| 62 |
======== |
| 63 |
|
| 64 |
Get information about image-create command:: |
| 65 |
|
| 66 |
glance help image-create |
| 67 |
|
| 68 |
See available images:: |
| 69 |
|
| 70 |
glance image-list |
| 71 |
|
| 72 |
To get a verbose output including more fields in the image list response:: |
| 73 |
|
| 74 |
glance --verbose image-list |
| 75 |
|
| 76 |
Create new image:: |
| 77 |
|
| 78 |
glance image-create --name foo --disk-format=qcow2 \ |
| 79 |
--container-format=bare --visibility=public \ |
| 80 |
--file /tmp/foo.img |
| 81 |
|
| 82 |
Describe a specific image:: |
| 83 |
|
| 84 |
glance image-show <Image-ID> |
| 85 |
|
| 86 |
|
| 87 |
BUGS |
| 88 |
==== |
| 89 |
|
| 90 |
Glance client is hosted in Launchpad so you can view current bugs at |
| 91 |
https://bugs.launchpad.net/python-glanceclient/. |