订购裸机服务器时出现子网错误 [英] Subnet error while ordering baremetal server
本文介绍了订购裸机服务器时出现子网错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下json参数订购Baremetal服务器
I use the following json parameters to order a Baremetal server
`{
"parameters": [
{
"location": "449494",
"packageId": 257,
"hardware": [
{
"hostname": "BMtest1",
"domain": "domain.com",
"primaryBackendNetworkComponent": {
"networkVlanId": "1229225"
}
}
],
"prices": [
{
"id": "49515"
},
{
"id": "50357"
},
{
"id": "49759"
},
{
"id": "876"
},
{
"id": "55"
},
{
"id": "57"
},
{
"id": "175791"
},
{
"id": "273"
},
{
"id": "21"
},
{
"id": "49495"
},
{
"id": "906"
},
{
"id": "418"
},
{
"id": "420"
},
{
"id": "58"
}
]
}
]
}`
verifyOrder调用成功,并返回详细信息.
但是当我下订单时,会出现以下错误:
{"error":"A valid subnet id must be provided.","code":"SoftLayer_Exception_Public"}
the verifyOrder call is success and returns the details.
But when I do place order it gives the following error:
{"error":"A valid subnet id must be provided.","code":"SoftLayer_Exception_Public"}
如何纠正此错误.请让我知道是否要添加一些其他参数.
How can I correct this error. Please let me know if some additional parameters are to be added.
推荐答案
您需要发送"1229225" ,且不带引号:
"networkVlanId":1229225
"networkVlanId": 1229225
尝试一下:
{
"parameters": [
{
"location": "449494",
"packageId": 257,
"hardware": [
{
"hostname": "BMtest1",
"domain": "domain.com",
"primaryBackendNetworkComponent": {
"networkVlanId": 1229225
}
}
],
"prices": [
{
"id": "49515"
},
{
"id": "50357"
},
{
"id": "49759"
},
{
"id": "876"
},
{
"id": "55"
},
{
"id": "57"
},
{
"id": "175791"
},
{
"id": "273"
},
{
"id": "21"
},
{
"id": "49495"
},
{
"id": "906"
},
{
"id": "418"
},
{
"id": "420"
},
{
"id": "58"
}
]
}
]
}`
这篇关于订购裸机服务器时出现子网错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文