Openstack CLI

Platform9's Private Cloud Director is built behind the scenes using KVM, OpenStack and Kubernetes. All PCD core services expose OpenStack APIs and as such you can use the Openstack CLI to perform an even wider set of operations than what you can do using the Private Cloud Director UI.

This guide provides steps to install and configure the Openstack CLI.

Install OpenStack CLI

Run this command to install OpenStack CLI on your local machine.

apt install python3-openstackclient -y

Authenticate OpenStack CLI

The Private Cloud Director UI provides you with OpenStack RC file that's configured specific to your Private Cloud Director environment, to be used with the OpenStack CLI.

  1. Navigate to Access & Security -> API Access -> OpenStack RC in UI

  2. Copy the contents to a new file named openstackrc and update OS_PASSWORD with your Private Cloud Director password.

  3. Run source openstackrc to set the environment variables.

Run OpenStack CLI

Now you are ready to run the OpenStack CLI. The following command will list all virtual machines in your current tenant.

openstack server list

Last updated

Was this helpful?