Managing Cloudpe Using API

 Access to Cloudpe API

Cloudpe uses OpenStack-based API with password credentials.

Here is a list of access parameters:

NamePython CLI VariableValue
User DomainOS_USER_DOMAIN_NAMEYour domain name.
Project DomainOS_PROJECT_DOMAIN_NAMEYour project domain name.
Project NameOS_PROJECT_NAMEYour project name. You can view it in the upper-right corner of the self-service panel.
UsernameOS_USERNAMEYour user name.
PasswordOS_PASSWORDYour password.
URLOS_AUTH_URLYour cloud URL should be one of the following:https://eu1-cloud.cloudpe.com:/5000/v3https://eu3-cloud.cloudpe.com:/5000/v3https://us1-cloud.cloudpe.com:/5000/v3


Access Example with Python CLI

The example below is for the Ubuntu system you can use to connect to Cloudpe Cloud API. It can be a virtual machine on the Cloudpe or your laptop with a similar system:

  1. Install the Python 3 OpenStack client:# apt install python3-OpenStack client python3-heat client python3-magnum client python3-octaviaclient
  2. Prepare a credentials file: In the request below, replace the values with your ones. echo -e “export OS_PROJECT_DOMAIN_NAME=cloudpe-pc \nexport OS_USER_DOMAIN_NAME=cloudpe-pc \nexport OS_PROJECT_NAME=pc-345 \nexport [email protected] \nexport OS_PASSWORD=”strong password” \nexport OS_AUTH_URL=https://eu1-cloud.cloudpe.com:5000/v3″ > cloud-cred.rc
  3. Load the credentials into an Env Var: /cloud-cred.rc

Now, you can use the OpenStack CLI to manage your cloud objects. For more details, go to OpenStack CLI Reference. For example:

# openstack server list

The abovementioned command will output a list of virtual machines.

API Automation Solutions

You can use the same credential information set for Heat Orchestration and Terraform on Heat.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support