Blog Posts French Process Management

Cloud Info API

Blog: Smile - Le blog des consultants

Cloud Info API

The Cloud Info API, available over our Github, includes public cloud services prices from three cloud providers: AWS, Azure and GCP. It also provides specification such as the amount of CPU, RAM and other resources. The prices table is automatically updated via a scheduled job every month.

Concepts

The API has two main types: Products and Prices.

The main properties of Products are:

Products

Prices

Installation

The API supports a deployment using Helm Chart to deploy into a Kubernetes cluster. Before going further, some of these requirements below need to be fulfilled:

Once you get all the prerequisites, we can deploy it using the below command :

helm install cloud-pricing ./cloud-pricing

The deployment will take a few moments, we make sure the API is up and running by checking the status of pods changed to RUNNING.

Now the API should be accessible at:

localhost:5042

Use

To search for a VM price, the API endpoint query is put in place. There are 2 parameters expected by API: filter and query.

filter

The parameter filter allows us to find exactly the instance that we need based on the instance attributes. Let say we want to find the instance r5d.16xlarge of AWS EC2 service, the filter syntax would be the following:

{ “vendorName”: “aws”, “productFamily”: “Compute Instance”, “attributeFilters”: [{“key”: “instanceType”, “value”: “r5d.16xlarge”}, {“key”: “tenancy ”, “value”: “Shared”}, {“key”: “operatingSystem”, “value”: “Linux”}]}

Example for a request made through the Cloud Info API.

purchase_option

This parameter separates the type of an instance commitment, a VM instance can be proposed as:

And we will get something like this as a result:

[{
“price”: 0.012,
CPU: 64
},]


Cloud Info API was originally published in Smile Innovation on Medium, where people are continuing the conversation by highlighting and responding to this story.

Leave a Comment

Get the BPI Web Feed

Using the HTML code below, you can display this Business Process Incubator page content with the current filter and sorting inside your web site for FREE.

Copy/Paste this code in your website html code:

<iframe src="https://www.businessprocessincubator.com/content/cloud-info-api/?feed=html" frameborder="0" scrolling="auto" width="100%" height="700">

Customizing your BPI Web Feed

You can click on the Get the BPI Web Feed link on any of our page to create the best possible feed for your site. Here are a few tips to customize your BPI Web Feed.

Customizing the Content Filter
On any page, you can add filter criteria using the MORE FILTERS interface:

Customizing the Content Filter

Customizing the Content Sorting
Clicking on the sorting options will also change the way your BPI Web Feed will be ordered on your site:

Get the BPI Web Feed

Some integration examples

BPMN.org

XPDL.org

×