SoftLayer虚拟服务器订单有新项目吗? [英] New items for SoftLayer virtual server order?
问题描述
事实证明,要订购虚拟服务器的新项目.这是我从API中获得的:
It turns out there are new items to order for virtual servers. Here is one I got from the API:
{"currentPriceFlag"=>"",
"hourlyRecurringFee"=>".918",
"id"=>172553,
"itemId"=>6521,
"laborFee"=>"0",
"locationGroupId"=>"",
"onSaleFlag"=>"",
"oneTimeFee"=>"0",
"quantity"=>"",
"recurringFee"=>"609",
"setupFee"=>"0",
"sort"=>0,
"item"=>
{"capacity"=>"56",
"description"=>"56 x 2.0 GHz Cores",
"id"=>6521,
"itemTaxCategoryId"=>166,
"keyName"=>"GUEST_CORES_56",
"softwareDescriptionId"=>"",
"units"=>"CORE",
"upgradeItemId"=>""}},
但是当我尝试使用它时,它显示类似以下内容:
But when I tried to use it, it shows something like:
阿姆斯特丹1不提供56 x 2.0 GHz内核.
56 x 2.0 GHz Cores is not available in Amsterdam 1.
由于locationGroupId为空,我想此项目应该在所有数据中心中都可用.有趣的是,我没有从SL门户看到它.看起来它以某种方式被过滤掉了.但是,API请求提供了新的项(新的ram和core的项).
Since locationGroupId is empty, I suppose this item should be available in all datacenters. What's interesting is that I don't see it from the SL portal. Looks like it's filtered out somehow. However, the API request gives new items(new ram and cores ones).
我错过了什么吗?我也应该过滤这些项目吗?如果是,怎么办?
Do I missed something? Should I filter those items as well? if yes, how?
推荐答案
You need to use the SoftLayer_Product_Package::getItemLocationConflicts method it will display all the items which have any conflinct in a datacenter in other words what items cannot be ordered in a datacenter. e.g. Using Rest Call
https://$USer:$APIKEY@api.softlayer.com/rest/v3/SoftLayer_Product_Package/46/getItemLocationConflicts
在回复中,您将看到以下内容:
In the response you will see this:
{
"itemId": 6521,
"message": "56 x 2.0 GHz Cores is not available in Amsterdam 1.",
"packageId": null,
"resourceTableId": 265592
},
这意味着该物品在Amterdam 1中不可用
that means that that item is not available in amterdam 1
致谢
这篇关于SoftLayer虚拟服务器订单有新项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!