繁体   English   中英

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

[英]Location based pricing in Softlayer via API

以下链接中的脚本为每个项目提供了基于位置的定价: 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有什么问题?

你能仔细检查一下吗? 因为我验证了Portal显示的价格与API相同。 我相信您看到的价格是针对其他数据中心的。

  1. 首先选择数据中心:TOR01-Toronto
  2. 查看RAM 8 GB的价格

暂无
暂无

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

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