SoftLayer 虚拟服务器订单的新项目?
New items for SoftLayer virtual server order?
原来有新的虚拟服务器项目要订购。这是我从 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"=>""}},
但是当我尝试使用它时,它显示如下内容:
56 x 2.0 GHz Cores is not available in Amsterdam 1.
由于 locationGroupId 是空的,我想这个项目应该在所有数据中心都可用。有趣的是,我没有从 SL 门户网站上看到它。看起来它以某种方式被过滤掉了。但是,API 请求提供了新项目(新的 ram 和内核)。
我错过了什么吗?我也应该过滤那些项目吗?如果是,怎么做?
您需要使用 SoftLayer_Product_Package::getItemLocationConflicts 方法,它会显示数据中心中存在任何冲突的所有项目,换句话说,数据中心中无法订购的项目。例如使用休息电话
https://$USer:$APIKEY@api.softlayer.com/rest/v3/SoftLayer_Product_Package/46/getItemLocationConflicts
在回复中您会看到:
{
"itemId": 6521,
"message": "56 x 2.0 GHz Cores is not available in Amsterdam 1.",
"packageId": null,
"resourceTableId": 265592
},
这意味着该项目在 amterdam 1 中不可用
此致
原来有新的虚拟服务器项目要订购。这是我从 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"=>""}},
但是当我尝试使用它时,它显示如下内容:
56 x 2.0 GHz Cores is not available in Amsterdam 1.
由于 locationGroupId 是空的,我想这个项目应该在所有数据中心都可用。有趣的是,我没有从 SL 门户网站上看到它。看起来它以某种方式被过滤掉了。但是,API 请求提供了新项目(新的 ram 和内核)。
我错过了什么吗?我也应该过滤那些项目吗?如果是,怎么做?
您需要使用 SoftLayer_Product_Package::getItemLocationConflicts 方法,它会显示数据中心中存在任何冲突的所有项目,换句话说,数据中心中无法订购的项目。例如使用休息电话
https://$USer:$APIKEY@api.softlayer.com/rest/v3/SoftLayer_Product_Package/46/getItemLocationConflicts
在回复中您会看到:
{
"itemId": 6521,
"message": "56 x 2.0 GHz Cores is not available in Amsterdam 1.",
"packageId": null,
"resourceTableId": 265592
},
这意味着该项目在 amterdam 1 中不可用
此致