根据 api,裸机在 dal10 中不可用

Baremetal not available in dal10 according to api

通话摘录,https://api.softlayer.com/rest/v3/SoftLayer_Product_Package/getAllObjects

{
"firstOrderStepId": 1,
"id": 50,
"isActive": 1,
"keyName": "BARE_METAL_INSTANCE",
"name": "Bare Metal Instance",
"unitSize": 1
},

我使用此 ID 拨打电话:https://api.softlayer.com/rest/v3/SoftLayer_Product_Package/50/getRegions 返回 dal01、dal05、dal06、dal07 和 dal09,但不返回 dal10。这解释了我在 dal10 中尝试验证 BM 订单时遇到的错误:

The location provided for this order is invalid. (HTTP 200)

如果我使用 UI 我可以在 dal10 中订购裸机。为什么我不能通过 api?

我使用的硬件模板:

hardwareTpl = datatypes.Hardware{
        Datacenter: &datatypes.Location{Name: sl.String("dal10")},
        Domain: sl.String("xxx"),
        Hostname: sl.String("xxx"),
        HourlyBillingFlag: sl.Bool(false),
        MemoryCapacity: sl.Uint(32),
        OperatingSystemReferenceCode: sl.String("UBUNTU_16_64"),
        PrimaryBackendNetworkComponent: &datatypes.Network_Component{Id: sl.Int(vlanPriId), MaxSpeed: sl.Int(10000)},
        PrimaryNetworkComponent: &datatypes.Network_Component{Id: sl.Int(vlanPubId), MaxSpeed: sl.Int(10000)},
        ProcessorCoreAmount: sl.Uint(4),
    }

没错,UI使用其他包来订购裸机服务器,我推荐使用这个请求:

https://api.softlayer.com/rest/v3/SoftLayer_Product_Package_Server/getAllObjects

这将 return UI 显示的所有包