How to install and use OpenStack command-line clients - Data Centers APIs

To install openstack client on Ubuntu

sudo snap install openstackclients --classic

To access STC Jeddah Cloud Jed1

Create openrc.sh file using your favorite editor

nano openrc.sh

Copy the following text to the file and change the Username and the Project name to yours, then save and exit


export OS_USERNAME='Enter Your Username'
echo "enter the password"
read -sr OS_PASSWORD
export OS_PASSWORD=$OS_PASSWORD
export OS_TENANT_NAME='Enter Your Project Name'
export OS_AUTH_URL=https://api-jed1-vdc.bluvalt.com/identity/v3
export OS_IDENTITY_API_VERSION=3
export OS_USER_DOMAIN_NAME=jed1
export OS_PROJECT_DOMAIN_NAME=jed1

Then run

 source openrc.sh

To verify your access run

openstack server list

To access STC Riyadh2 Cloud RUH2

Create openrc.sh file using your favorite editor

nano openrc.sh

Copy the following text to the file and change username, password and project name to yours, then save and exit

export OS_USERNAME='Enter Your Username'
echo "enter the password"
read -sr OS_PASSWORD
export OS_PASSWORD=$OS_PASSWORD
export OS_TENANT_NAME='Enter Your Project Name'
export OS_AUTH_URL=https://api-ruh2-vdc.bluvalt.com/identity/v3
export OS_IDENTITY_API_VERSION=3
export OS_USER_DOMAIN_NAME=ruh2
export OS_PROJECT_DOMAIN_NAME=ruh2

Then run

 source openrc.sh

To verify your access run

openstack server list

For more details about how to use Openstack CLI clients please refer to below link

https://docs.openstack.org/ocata/user-guide/cli.html