【问题标题】:Unable to validate order for storage as a service无法验证存储即服务的订单
【发布时间】: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

【问题讨论】:

    标签: ibm-cloud-infrastructure


    【解决方案1】:

    可以看到如下内容。

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

    【讨论】:

    • 在查看上述内容后,仍然不清楚上面我订购性能存储的 JSON 有什么问题(不是每 GB IOPS 定价的耐久性)。通过 REST api 传递上面的 JSON 时,您是否发现它有问题?通常,如果 JSON 中有错误,则会返回正确的错误代码 - 但在这种情况下,正如我提到的,返回以下内容:“error”:“Internal Error”,“code”:“SoftLayer_Exception_Public”}
    【解决方案2】:

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

    {
                "complexType":"SoftLayer_Container_Product_Order_Network_Storage_AsAService",
        "volumeSize": 20, # 20, 40, 80, 100, 250, 500, 1000, ..., 12000
        "quantity": 1,
        "iops": 1000,
                "osFormatType":{  
                    "keyName":"LINUX",
                    "id":12,
            "complexType": "SoftLayer_Network_Storage_Iscsi_OS_Type"
                },
                'location': 449604, # Tokyo
                'packageId': 759,  # Storage As A Service (StaaS)
                'prices': [
                        {'id':189433},  # Storage As A Service
                        {'id':189453},  # File storage
                        {'id':189483},  # 20 - 39 GBs performance_storage_space
                        {'id':189543}  # 100 - 1000 IOPS performance_storage_iops
                ],      
        }
    

    【讨论】:

      猜你喜欢
      • 2014-03-30
      • 1970-01-01
      • 1970-01-01
      • 2014-01-19
      • 2018-02-11
      • 2013-10-08
      • 2015-11-28
      • 1970-01-01
      • 2017-09-02
      相关资源
      最近更新 更多