softlayer api:SoftLayerAPIError(softlayer\异常\订单\项目\无效):价格1 GB(204925)对包(46)无效

2024-05-15 00:02:27 发布

您现在位置:Python中文网/ 问答频道 /正文

背景

使用sl\ U产品_订单.地点订单订购vsi的api。美国地区(包括wdc4、sjc3、dla2)创建VSI失败,无法使用package46下订单。其他区域可以使用package46成功创建VSI。你知道吗

例外情况

SoftLayerAPIError(SoftLayer\异常\订单\项目\无效):1 GB(204925)的价格对包(46)无效

相关问题

上个月,我问了另一个关于包(Softlayer Api: Exception: Invalid data on the order for property: packageId. Package (835) requires a preset configuration)的问题

问题

你能告诉我哪个软件包适用于所有的软层区域吗?你知道吗


Tags: 订单api区域产品地区例外情况背景地点
1条回答
网友
1楼 · 发布于 2024-05-15 00:02:27

您遇到的问题不是由于包装问题,如果您想订购任何softlayer地区的设备,则需要使用标准项目价格。你知道吗

我建议您查看底部列出的参考资料,但基本上您需要使用SoftLayer\u Product\u Package::getItemPrices方法,并使用以下对象筛选器来获取标准价格:

objectFilter={"itemPrices":{"locationGroupId":{"operation":"is null"}}}

下面是使用REST的示例:

https://[userName]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/46/getItemPrices?objectFilter={"itemPrices":{"locationGroupId":{"operation":"is null"}}}

参考资料

Softlayer Evault Price Ids

How to create a priceConflicts hash like on store package configure

SoftLayer API: Price is not been adjusted based on the location for Netscaler

相关问题 更多 >

    热门问题