Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

In addition to the normal dashboard access, Cloud users can also make direct use of API endpoints using appropriate tools. This page documents the process for configuring API endpoint access for the most common set of OpenStack tools - the Unified OpenStack Client.

...

The OpenStack RC file details the credentials needed to access the Nirin API. These credentials provide complete access to managing the creation and deletion create and delete cloud resources, and should be protected appropriately. 

...

A file called foo-openrc.sh will be made available for download - save this to your local disk, and then copy the file to a machine with whichever machine you wish to use to access to the API endpoints.

...

The OpenStack client libraries and tools are all written in Python, and require a functioning Python installation to run - almost any Linux distribution will provide this by default. The best means to install the OpenStack Client will depend on the system you are running it on, but a reasonably safe way to experiment with it is to use a Python virtual environment and install the client using the standard Python package management tool pip (see related virtualenv documentation):

Code Block
languagebash
$ mkdir osc-venv
$ virtualenv osc-venv
created virtual environment CPython3.7.7.final.0-64 in 132ms
  creator CPython3Posix(dest=/Volumes/Kali Home/osric/osc-venv, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/Volumes/Kali Home/osric/Library/Application Support/virtualenv/seed-app-data/v1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
$ source osc-venv/bin/activate
$ pip install python-openstackclient
Defaulting to user installation because normal site-packages is not writeable
Collecting python-openstackclient
  Downloading python_openstackclient-5.8.0-py3-none-any.whl (984 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 984.1/984.1 KB 5.6 MB/s eta 0:00:00


$ openstack --version
openstack 5.2.0
$ openstack help
usage: openstack [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
                 [--os-cloud <cloud-config-name>]
$ 

...