通过API在Softlayer中进行基于位置的定价

时间:2016-12-15 20:51:01

标签: api ibm-cloud-infrastructure

以下链接中的脚本为每个项目提供基于位置的定价: http://sldn.softlayer.com/blog/cmporter/location-based-pricing-and-you

当我在多伦多位置上运行上面的脚本时,返回的值与多伦多SL门户网站中的定价不匹配。例如,脚本返回8GB @ 0.085 / hr与来自门户网站的定价相比,在Tor中8GB是0.090:

"864": {
"capacity": "8",
"description": "8 GB",
"id": 864,
"itemCategory": {
"categoryCode": "ram",
"id": 3,
"name": "RAM",
"quantityLimit": 0
},
"itemTaxCategoryId": 166,
"keyName": "RAM_8_GB",
"prices": [
{
"currentPriceFlag": "",
"hourlyRecurringFee": ".085",
"id": 112677,
"itemId": 864,
"laborFee": "0",
"locationGroupId": 503,
"onSaleFlag": "",
"oneTimeFee": "0",
"packageReferences": [
{
"id": 891477,
"itemPriceId": 112677,
"packageId": 46
}
],
"quantity": "",
"recurringFee": "56.75",
"setupFee": "0",
"sort": 0
}
],
"softwareDescriptionId": "",
"units": "GB",
"upgradeItemId": ""
},

这个API有什么问题?

1 个答案:

答案 0 :(得分:0)

请你仔细检查一下吗?因为我确认Portal的价格与API相同。我相信您看到的价格是针对其他数据中心的。

  1. 首先选择数据中心:TOR01 - Toronto
  2. 检查RAM 8 GB的价格
相关问题