简体   繁体   English

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

[英]Location based pricing in Softlayer via API

The script in the following link provides location based pricing for each item: http://sldn.softlayer.com/blog/cmporter/location-based-pricing-and-you 以下链接中的脚本为每个项目提供了基于位置的定价: http : //sldn.softlayer.com/blog/cmporter/location-based-pricing-and-you

When I run above script for example for Toronto location, the returned value does not match the pricing in the SL portal for Toronto. 例如,当我在上面的脚本中为多伦多位置运行时,返回的值与多伦多的SL门户中的价格不匹配。 For example, the script returns 8GB @ 0.085/hr vs pricing from portal which is 0.090 for 8GB in Tor: 例如,脚本返回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": ""
},

What's wrong with this APIs? 这些API有什么问题?

Can you make double check please? 你能仔细检查一下吗? because I verified that Portal is displaying the same price than API. 因为我验证了Portal显示的价格与API相同。 I believe the price that you saw was for other datacenter. 我相信您看到的价格是针对其他数据中心的。

  1. Select first the datacenter: TOR01 - Toronto 首先选择数据中心:TOR01-Toronto
  2. Check the price for RAM 8 GB 查看RAM 8 GB的价格

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM