无法验证存储作为服务的顺序

时间:2018-02-17 07:23:49

标签: ibm-cloud-infrastructure

我有以下用于订购存储的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

2 个答案:

答案 0 :(得分:0)

您可以看到如下内容。

python - 我们如何订购“存储即服务(StaaS)”? - Stack Overflow:How can we order "Storage As A Service (StaaS)"?

答案 1 :(得分:0)

这是我的订单容器,没有错误。 我想您的性能存储价格ID应该更改为" 100 - 499 GBs performance_storage_space"。

RuntimeError: Invalid option key: raise_on_unfiltered_parameters=
app/controllers/application_controller.rb:1:in `<top (required)>'

reporter.rb:70:in `method': undefined method `test_should_create_me
mbership' for class `Minitest::Result' (NameError)