I’m trying to get information about prices for virtual servers from Softlayer API with this python code:
client['Product_Package'].getItems(id=835)
received results I’m trying to use to recreate offers of flavors which can be found on this web page: https://www.softlayer.com/cloud-computing/bluemix/Store/orderComputingInstance?language=en&cm_mc_uid=06493590598515064371141&cm_mc_sid_50200000=1506586953&cm_mc_sid_52640000=1506586953
base on web page I noticed that there are a few groups of flavors (Balanced, Balanced Local Storage, Balanced Local Storage SSD, Compute, Memory) and each of them have some special rules for marching cpu with ram and hard drives.
Unfortunately I do not find this logic (for matching cpu with ram and hard drives) in offers from Softlayer API. Yes there is keyName property in ram offers which contains words ‘Balanced’, ‘Memory’, ‘HDD’ and CPUs names but it is not enough to recreate full offers from web page. For example I’m missing information which CPU to use in Balanced Local Storage flavor, which hard drives are allowed for which flavors, sometimes ram offers without any special name in keyName property (I though they should be used only for Compute flavor) are used for different flavors.
Which results are correct? On the web page or from API?
How can I get the logic for matching ingredients of flavors?