2013-09-05 13:32:38 +03:00
|
|
|
The :program:`manila` shell utility
|
2013-09-02 23:42:41 -04:00
|
|
|
=========================================
|
|
|
|
|
2023-03-30 22:55:24 -07:00
|
|
|
.. important::
|
|
|
|
|
|
|
|
This shell client is deprecated as of version ``5.0.0``. A future
|
|
|
|
version of python-manilaclient may not ship this legacy shell client. If
|
|
|
|
you rely on it, it is highly recommended that you begin using the
|
|
|
|
openstack CLI client right away. Refer to the `mapping guide
|
|
|
|
<../cli/decoder.html>`_ to help with this transition.
|
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
.. program:: manila
|
2013-09-02 23:42:41 -04:00
|
|
|
.. highlight:: bash
|
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
The :program:`manila` shell utility interacts with the OpenStack Manila API
|
|
|
|
from the command line. It supports the entirety of the OpenStack Manila API.
|
2013-09-02 23:42:41 -04:00
|
|
|
|
2017-04-19 10:41:19 +01:00
|
|
|
You'll need to provide :program:`manila` with your OpenStack username and API
|
|
|
|
key. You can do this with the `--os-username`, `--os-password` and
|
|
|
|
`--os-tenant-name` options, but it's easier to just set them as environment
|
|
|
|
variables by setting two environment variables:
|
2013-09-02 23:42:41 -04:00
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
.. envvar:: OS_USERNAME or MANILA_USERNAME
|
2013-09-02 23:42:41 -04:00
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
Your OpenStack Manila username.
|
2013-09-02 23:42:41 -04:00
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
.. envvar:: OS_PASSWORD or MANILA_PASSWORD
|
2013-09-02 23:42:41 -04:00
|
|
|
|
|
|
|
Your password.
|
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
.. envvar:: OS_TENANT_NAME or MANILA_PROJECT_ID
|
2013-09-02 23:42:41 -04:00
|
|
|
|
|
|
|
Project for work.
|
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
.. envvar:: OS_AUTH_URL or MANILA_URL
|
2013-09-02 23:42:41 -04:00
|
|
|
|
|
|
|
The OpenStack API server URL.
|
|
|
|
|
2014-06-13 07:21:42 -04:00
|
|
|
.. envvar:: OS_SHARE_API_VERSION
|
2013-09-02 23:42:41 -04:00
|
|
|
|
2014-06-13 07:21:42 -04:00
|
|
|
The OpenStack Shared Filesystems API version.
|
2013-09-02 23:42:41 -04:00
|
|
|
|
|
|
|
For example, in Bash you'd use::
|
|
|
|
|
2014-06-13 07:21:42 -04:00
|
|
|
export OS_USERNAME=foo
|
|
|
|
export OS_PASSWORD=bar
|
|
|
|
export OS_TENANT_NAME=foobarproject
|
2013-09-02 23:42:41 -04:00
|
|
|
export OS_AUTH_URL=http://...
|
2017-08-07 06:31:44 -04:00
|
|
|
export OS_SHARE_API_VERSION=2
|
2013-09-02 23:42:41 -04:00
|
|
|
|
|
|
|
From there, all shell commands take the form::
|
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
manila <command> [arguments...]
|
2013-09-02 23:42:41 -04:00
|
|
|
|
2013-09-05 13:32:38 +03:00
|
|
|
Run :program:`manila help` to get a full list of all possible commands,
|
|
|
|
and run :program:`manila help <command>` to get detailed help for that
|
2013-09-02 23:42:41 -04:00
|
|
|
command.
|
2014-11-21 13:07:38 +01:00
|
|
|
|
2018-08-22 14:21:39 -07:00
|
|
|
.. program-output:: manila --help
|