Skip to content

Build a webpage showing OVH Cloud products pricelist (dedicated servers, VPS, Public Cloud, ..)

License

Notifications You must be signed in to change notification settings

rustamgk/ovh_pricelist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OVHcloud pricelist

Build a webpage showing OVHcloud baremetal servers pricelist. Aim is to browse quickly the vast OVHcloud servers catalog. I list all the derivatives. A server with 2 memory options and 4 storages option will appear in 2x4 = 8 lines.

I collect all the informations from OVHcloud API then make big & dirty PHP loops to aggregate informations. One day i will move it to something else...

Feel free to contribute and give me your feedbacks via http://twitter.com/bastienovh/ .

Live demo

You can test it via https://pricelist.ovh

preview

Features

Thanks to datatables.net scripts :

  • Table view of all OVH.com dedicated servers with hardware, price, and few other informations.
  • Sorting and filtering
  • Export to CSV / EXCEL / PDF / JSON

Installation

All you need is a working PHP >=5.6 and Internet connectivity. No databases. No API tokens.

  1. Download source code here.
  2. copy it on your PHP environment.
  3. create a /cache folder with read-write access.
  4. Then go on index.php through your web browser.

Done !

Known limitations

  • OVHcloud US ranges are not shown (not the sames API calls, need work)
  • HG range derivatives are not fully shown (too many possibilities for customization)
  • Private Network and Public Network are not shown (need work)
  • CA/US and globally all billing countries with $USD are not shown (not the same API calls, need work)

OVHcloud API structure for servers

API for server specifications and prices

For OVHcloud european information system, the API endpoints for retrieving servers specifications and prices are :

The JSON structure need some clarifications :

{
    order.catalog.public.DedicatedServerCatalog: {
        description: "Describes a Dedicated server Catalog inside a Subsidiary",
        properties: {
            addons: { … },
            catalogId: { … },
            locale: { … },
            planFamilies: { … },
            plans: { … },
            products: { … }
        }
    }

}
  • addons : memory, storage, network, ... components are detailed as addons. Each addon has a planCode, a product and pricings. Technical specifications are not here.
  • catalogId : A version number. when the OVHcloud catalog is updated, the version number is incremented.
  • locale : Details the currencyCode used, the subsidiay, and the tax rate (prices may vary based on the country selected)
  • planFamilies : not used
  • plans : A plan is a combination or a product, addons, attached to pricings.
  • products : A product

To sum up, plans and addons are composed of products and pricings, and servers plans will contain addons. Only products contains technical specifications.

Here is an example showing nesting between JSON elements :

+-------------------------------------------------------------------------------------------------+
|Example : get ADVANCE-1 RAM specifications via OVH.com API /order/catalog/public/baremetalServers|
+-------------------------------------------------------------------------------------------------+

+---plans : invoiceName = ADVANCE-1------+
|                                        |     +---> +---Addons : planCode = ram-32-adv1-----+
|planCode : 19adv01                      |     |     |                                       |
|                                        |     |     |invoiceName : 32GB DDR4 ECC 2400MHz    |
|addons families                         |     |     |                                       |
|  +---memory-------------------------+  |     |     |pricings                               |
|  |ram-32g-adv1                      +--------+     |  +---------------------------------+  |
|  |ram-64g-adv1                      |  |           |  |1 month                          |  |
|  +----------------------------------+  |           |  +---------------------------------+  |
|  +---storage------------------------+  |           |  +---------------------------------+  |
|  |softraid-2x1000nvme-adv           |  |           |  |... (more pricings)              |  |
|  |softraid-3x1000nvme-adv           |  |           |  +---------------------------------+  |
|  |... (more addons)                 |  |           |                                       |
|  |hardraid-4x960ssd-adv             |  |      +----+product : ram-32g-ecc-2400             |
|  +----------------------------------+  |      |    |                                       |
|  +---vrack--------------------------+  |      |    +---------------------------------------+
|  |vrack-bandwidth-100-included      |  |      |
|  |vrack-bandwidth-1000-option       |  |      |
|  +----------------------------------+  |      |
|                                        |      |
|pricings                                |      +--> +---products : name = ram-32g-ecc-2400--+
|  +----------------------------------+  |           |                                       |
|  |setup fees                        |  |           | memory                                |
|  +----------------------------------+  |           |  +---------------------------------+  |
|  +----------------------------------+  |           |  |frequency : 2400                 |  |
|  |1 month                           |  |           |  |ecc : true                       |  |
|  +----------------------------------+  |           |  |ramType : DDR4                   |  |
|  +----------------------------------+  |           |  |size : 32                        |  |
|  |12 months                         |  |           |  +---------------------------------+  |
|  +----------------------------------+  |           |                                       |
|  +----------------------------------+  |           +---------------------------------------+
|  |24 months                         |  |
|  +----------------------------------+  |
|                                        |
|product : 19adv01                       |
|                                        |
+----------------------------------------+

About

Build a webpage showing OVH Cloud products pricelist (dedicated servers, VPS, Public Cloud, ..)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 94.8%
  • JavaScript 3.7%
  • CSS 1.5%