osFormatType耐力块存储订购软件层 [英] osFormatType Endurance Block Storage ordering Softlayer

查看:36
本文介绍了osFormatType耐力块存储订购软件层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网上进行了一些搜索,但似乎无法弄清为什么OS格式类型错误.我已经完成查询,并且id和keyname是正确的.

I've done some searching online and can't seem to figure out why the OS format type is wrong. I Have done a query and the id and keyname is correct.

enduranceOrder = {
    "location": 1441195,
    "packageId": 240,
    "quantity": 48,
    "prices": [
        {
            "id": 45064 # endurance
        },
        {
            "id": 45104 # block storage
        },
        {
            "id": 178501 # 10 IOPS
        },
        {
            "id": 178581 # 250 GB storage space
        }
    ],
    "osFormatType": {
        "id": 12,
        "keyName": "LINUX",
        "complexType": "SoftLayer_Network_Storage_Iscsi_OS_Type"
    }
}

是我的命令.我已经尝试过,不管有没有复杂的类型.

is my order. I have tried it with and without the complex type.

SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_Order_InvalidData):无效的数据 在属性的顺序上:osFormatType.没有OS格式类型的键名 放.请提供有效值

SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_Order_InvalidData): Invalid data on the order for property: osFormatType. No OS format type key name set. Please provide a valid value

是错误

推荐答案

因为API不知道您的订单使用的是哪个容器,通常不需要指定它,但是在这种情况下,您需要使用它.

because the API does not know what container your order is using, normally you do not need to specify it but in this case you need it.

尝试一下:

enduranceOrder = {
    "complexType": "SoftLayer_Container_Product_Order_Network_Storage_Enterprise", 
    "location": 1441195,
    "packageId": 240,
    "quantity": 48,
    "prices": [
        {
            "id": 45064 # endurance
        },
        {
            "id": 45104 # block storage
        },
        {
            "id": 178501 # 10 IOPS
        },
        {
            "id": 178581 # 250 GB storage space
        }
    ],
    "osFormatType": {
        "id": 12,
        "keyName": "LINUX",
        "complexType": "SoftLayer_Network_Storage_Iscsi_OS_Type"
    }
}

致谢

这篇关于osFormatType耐力块存储订购软件层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆