60 lines
1.7 KiB
ReStructuredText
Raw Normal View History

2013-09-05 13:32:38 +03:00
The :program:`manila` shell utility
2013-09-02 23:42:41 -04: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
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.
.. envvar:: OS_SHARE_API_VERSION
2013-09-02 23:42:41 -04:00
The OpenStack Shared Filesystems API version.
2013-09-02 23:42:41 -04:00
For example, in Bash you'd use::
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://...
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.
.. program-output:: manila --help