【问题标题】:Softlayer api: exception The location provided for this order is invalidSoftlayer api: exception 此订单提供的位置无效
【发布时间】:2017-07-11 09:53:00
【问题描述】:

背景

使用 sl_product_order.placeOrder api 订购 vsi。订单参数:

{'prices': [{'id': 1644}, {'id': 1640}, {'id': 2202}, {'id': 272}, {'id': 45466}, {'id': 905}, {'id': 21}, {'id': 57}, {'id': 55}, {'id': 58}, {'id': 420}, {'id': 418}, {'id': 17129}, {'id': 1800}], 'location': '224092', 'packageId': 835, 'complexType': 'SoftLayer_Container_Product_Order_Virtual_Guest', 'useHourlyPricing': True, 'virtualGuests': [{'domain': 'xxx.com', 'hostname': 'xxx-rkgw77q5'}], 'quantity': 1}

'dataCenter': 'sng01' id:224092

异常

SoftLayerAPIError(SoftLayer_Exception_Order_InvalidLocation):为此订单提供的位置无效。

问题

昨天,这个 api 适用于创建具有相同参数的 vsi。但是,现在它不起作用了。

我可以在门户网站购买sng01的vsi。但是api总是告诉这个订单提供的位置无效。

【问题讨论】:

    标签: python api ibm-cloud-infrastructure


    【解决方案1】:

    在订购之前,您需要确保您要使用的软件包适用于您要使用的位置,以检查您是否必须运行此方法:

    http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getRegions

    当前您使用的包没有有效的位置 sng01,这就是您收到错误的原因。

    另一方面,您可以使用控制门户在该区域订购,因为控制门户使用另一个虚拟服务器包,它使用的是包 46,因此您需要更改订单中的包,可能还有价格也因为每个包裹都有自己的价格。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-03
      • 1970-01-01
      相关资源
      最近更新 更多