| 1 |
========================= |
| 2 |
Trove Client User Guide |
| 3 |
========================= |
| 4 |
|
| 5 |
Command-line Interface |
| 6 |
---------------------- |
| 7 |
|
| 8 |
Installing this package allows you to use ``openstack`` command to interact |
| 9 |
with Trove. Refer to |
| 10 |
https://docs.openstack.org/python-openstackclient/latest |
| 11 |
for how to install ``openstack`` command and configuration. |
| 12 |
|
| 13 |
You can find all supported Trove commands in ``openstack.database.v1`` |
| 14 |
entry_points section in ``setup.cfg`` file of the repo. |
| 15 |
|
| 16 |
Python API |
| 17 |
---------- |
| 18 |
|
| 19 |
There's also a complete Python API. |
| 20 |
|
| 21 |
Quick-start using keystone:: |
| 22 |
|
| 23 |
>>> from troveclient import client |
| 24 |
>>> trove_client = client.Client('1.0', session=keystone_session, endpoint_type='public', service_type='database', region_name='RegionOne') |
| 25 |
>>> trove_client.datastores.list() |
| 26 |
[...] |
| 27 |
>>> trove_client.instances.list() |
| 28 |
[...] |
| 29 |
|
| 30 |
.. toctree:: |
| 31 |
:maxdepth: 2 |
| 32 |
|
| 33 |
api |