1

我在使用 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

卷曲请求

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

1 回答 1

2

尝试使用以下有效负载:

{
"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。

于 2021-11-15T21:19:08.433 回答