0
我正嘗試在Azure中使用Node js SDK創建網絡接口。Azure Node Js Api - 創建網絡接口
雖然它不工作,我不斷得到「無法解析請求」。微軟文檔並不是那麼有用。
請求爲:
{
"resourceGroupName": "name",
"networkInterfaceName": "another-name",
"properties": {
"location": "eastus2",
"ipConfigurations": [
{
"properties": {
"privateIpAddress": "10.1.10.1"
}
}
]
}
}
的響應是:
{
"request": {
"id": "7384079f-83a6-459f-b8a9-096f76db97ff",
"url": "/network/networkInterface/",
"method": "POST",
"timestamp": "2017-04-19T07:40:56.022Z"
},
"response": {
"status": {
"code": 400,
"message": "Bad Request"
},
"errors": [
{
"code": "Error",
"message": "Cannot parse the request."
}
]
}
}
沒有ipConfigurations陣列時,收到它規定我必須重視ipConfigurations的響應。
感謝, 吉拉德
你可以分享創建網絡接口的代碼嗎? –