【问题标题】:Error SoftLayer_Product_Order. (SoftLayer_Product_Order:: verifyOrder)错误 SoftLayer_Product_Order。 (SoftLayer_Product_Order::verifyOrder)
【发布时间】:2021-11-15 06:55:03
【问题描述】:

我在调用 modifyContact 时遇到问题。每次我尝试执行它时都会收到错误:

{
    "error": "Invalid container specified: SoftLayer_Container_Product_Order. Ordering a server or service requires a specific container type, not the generic base order container.",
    "code": "SoftLayer_Exception_Order_InvalidContainer"
}

网址

https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Order/verifyOrder.json

CURL 请求

{
    "parameters": [
        {
            "quantity": 1,
            "location": "DALLAS09",
            "packageId": 10,
            "properties": [
                {
                    "name": "orderOrigin",
                    "value": "control"
                }
            ],
            "hardware": [
                {
                    "hostname": "vsiHostname",
                    "domain": "domain.com"
                }
            ]
        }
    ]
}

【问题讨论】:

    标签: rest ibm-cloud ibm-cloud-infrastructure ims


    【解决方案1】:

    尝试使用以下负载:

    {
    "parameters": [
        {
            "complexType": "SoftLayer_Container_Product_Order_Software_Component_Virtual",
            "hardware": [
            {
               "domain": "domain.com",
               "hostname": "vsiHostname"
            }
              ],
           "location": "448994",
           "packageId": 10,
           "prices": [
                {"id": 242840,
                 "item": {
                      "description": "cPanel/WHM with Fantastico and RVskin Premier Cloud up to 100 Accounts",
                      "id": 14292
                  }
                }
            ],
          "endPointIpAddressIds":[1111111],
          "quantity": 1
        }
    ]
    

    }

    将 1111111 替换为您的 ipAddressId。

    【讨论】:

    • 嗨@F.Ojeda。我收到一个错误:{“错误”:“订单容器上提供的无效价格帐户设置费 (1798)。”、“代码”:“SoftLayer_Exception_Order_Item_Invalid”}
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-24
    • 2015-03-25
    • 2013-05-15
    • 1970-01-01
    相关资源
    最近更新 更多