xPlore.Cloud API Documentation

xPlore.Cloud is a unique tool to quickly build a management and self service interface for an arbitrary hybrid or multi-cloud.

xPlore.Cloud is completely cloud agnostic and provides a very quick, efficient and predictable way to create a self service portal with any number of participating public/private clouds like AWS, Azure, GCP, OpenStack etc, as well as raw hypervisors like VMWare, KVM, Xen etc.

Overview

The xPlore.Cloud front-end API lets you consume the xPlore.Cloud services from a third-party website or application. Use this if you wanted to offer your users an unique and completely custom and even re-branded web experience.

This is an ideal option if you are a Managed Service Provider (MSP) and wanted to re-brand the xPlore.Cloud solution for use by your customers.

Here is a simple graphical representation of the xPlore.Cloud API workflow.

a simple graphical representation of the xPlore.Cloud API workflow

xPlore.Cloud introduces the state of art RESTful like API which allows developers the flexibility to build their own frontend. After going through this documentation you will be merely a few commands away to get listing of features and its actions and run any action of a particular feature.

Get Started

Step 1: Authenticating with xPlore.Cloud API with apikey and apisecret

Curl

curl -X POST -F 'apikey=your_api_key' -F 'apisecret=your_api_secret' https://cp0001.xplore.cloud/api/auth/login

Python

import requests
url = "https://cp0001.xplore.cloud/api/auth/login"
payload = {'apikey': 'your_api_key', 'apisecret': 'your_api_secret'}
response = requests.post(url, data=payload)
print(response.text)

Response

{"token":"token_generated_by_xPlore.Cloud_API"}

Step 2: Authenticating the user with xPlore.Cloud

Curl

curl -X POST\
 -H 'Content-Type: application/json'\
 -H 'authorization: Bearer <token_generated_by_xPlore.Cloud_API>'\
 -d '{"email":"<user_email>","password":"<user_password>"}'\
 https://cp0001.xplore.cloud/api/auth/userlogin

Python

import requests
url = "https://cp0001.xplore.cloud/api/auth/userlogin"
payload = {'email': '<user_email>', 'password': '<user_password>'}
btoken = "<token_generated_by_xPlore.Cloud_API>"
header = {'Authorization': 'Bearer ' + btoken}
response = requests.post(url, headers=header, data=payload)
print(response.text)

Response

{"usertoken":"usertoken_generated_by_xPlore.Cloud_API"}