【发布时间】:2018-02-24 11:32:49
【问题描述】:
我有以下 JSON 用于订购存储。我相信 json 是有效的,但我收到以下错误
"error":"Internal Error","code":"SoftLayer_Exception_Public"}
这是我正在使用的 json:
{
"parameters" : [
{
"location" : 1441195,
"packageId" : 759,
"osFormatType" : {
"id" : 12,
"keyName" : "LINUX"
},
"complexType" : "SoftLayer_Container_Product_Order_Network_Storage_AsAService",
"volumeSize" : "100",
"iops" : 100,
"useHourlyPricing" : true,
"quantity" : 1,
"prices" : [
{
"item" : {
"description" : "Storage as a serivce"
},
"id" : "189439"
},
{
"item" : {
"description" : ": FILE_STORAGE"
},
"id" : "189459"
},
{
"item" : {
"description" : ": 100 GB Storage Space"
},
"id" : "190899"
},
{
"item" : {
"description" : ": 100_6000_IOPS"
},
"id" : "189939"
} ]
} ]
}
我正在进行的其余调用如下(我将 json 保存到 test.json 文件中):
curl -X POST --data "@test.json" -u user:apikey https://api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder.json
【问题讨论】: