| 1 |
================================================ |
| 2 |
``openstack share`` Command-Line Interface (CLI) |
| 3 |
================================================ |
| 4 |
|
| 5 |
.. program:: openstack share |
| 6 |
|
| 7 |
Synopsis |
| 8 |
======== |
| 9 |
|
| 10 |
:program:`openstack [options] share` <command> [command-options] |
| 11 |
|
| 12 |
:program:`openstack help share` <command> |
| 13 |
|
| 14 |
|
| 15 |
Description |
| 16 |
=========== |
| 17 |
|
| 18 |
The OpenStack Client plugin interacts with the Manila service |
| 19 |
through the ``openstack share`` command line interface (CLI). |
| 20 |
|
| 21 |
To use the CLI, you must provide your OpenStack username, password, |
| 22 |
project, auth endpoint and the share API version. |
| 23 |
You can use configuration options ``--os-username``, |
| 24 |
``--os-password``, ``--os-project-name``, ``--os-auth-url`` |
| 25 |
and ``--os-share-api-version``, or set the corresponding |
| 26 |
environment variables:: |
| 27 |
|
| 28 |
export OS_USERNAME=foo |
| 29 |
export OS_PASSWORD=bar |
| 30 |
export OS_TENANT_NAME=foobarproject |
| 31 |
export OS_AUTH_URL=http://... |
| 32 |
export OS_SHARE_API_VERSION=2.51 |
| 33 |
|
| 34 |
It is possible to use different Manila endpoint while using Openstack |
| 35 |
Client. In this case, you can use configuration option |
| 36 |
``--os-endpoint-override`` or set the corresponding environment |
| 37 |
variable:: |
| 38 |
|
| 39 |
export OS_ENDPOINT_OVERRIDE=http://... |
| 40 |
|
| 41 |
|
| 42 |
Getting help |
| 43 |
============ |
| 44 |
|
| 45 |
To get a full list of all possible commands, run:: |
| 46 |
|
| 47 |
$ openstack help share |
| 48 |
|
| 49 |
To get detailed help for one command, run:: |
| 50 |
|
| 51 |
$ openstack help share <command> |
| 52 |
|
| 53 |
|
| 54 |
Examples |
| 55 |
======== |
| 56 |
|
| 57 |
Get information about the openstack share create command:: |
| 58 |
|
| 59 |
$ openstack help share create |
| 60 |
|
| 61 |
Create one share:: |
| 62 |
|
| 63 |
$ openstack share create NFS 1 --name "myshare" |
| 64 |
|
| 65 |
List shares:: |
| 66 |
|
| 67 |
$ openstack share list |
| 68 |
|
| 69 |
Display a share:: |
| 70 |
|
| 71 |
$ openstack share show myshare |
| 72 |
|
| 73 |
Delete a share:: |
| 74 |
|
| 75 |
$ openstack share delete myshare |
| 76 |
|
| 77 |
Extend a 1gb share to 2gb:: |
| 78 |
|
| 79 |
$ openstack share resize myshare 2 |
| 80 |
|
| 81 |
Shrink a 2gb share to 1gb:: |
| 82 |
|
| 83 |
$ openstack share resize myshare 1 |
| 84 |
|
| 85 |
|
| 86 |
Command Reference |
| 87 |
================= |
| 88 |
.. toctree:: |
| 89 |
:glob: |
| 90 |
:maxdepth: 3 |
| 91 |
|
| 92 |
osc/v2/* |