To install and configure the Openstack Client, view our tutorial here. You will also need to install the neutron client, which you can do with the command (once the client is ready to go):
pip install python-novaclient
How to use
Once the client is authenticated, you can start to use them. See below for how to get started.
Command Line API
You can use Neutron command to manage your objects storage, you can type:
neutron --help to find out all the available options.
Python Neutron API
You can also use Python Neutron API in your python code to access object storage.
See below for a sample code:
from neutronclient.v2_0 import client username='adminUser' password='secretword' tenant_name='openstackDemo' auth_url='http://192.168.206.130:5000/v2.0' neutron = client.Client(username=username, password=password, tenant_name=tenant_name, auth_url=auth_url) networks = neutron.list_networks()
You can find more information in the Networking API section.