I have now tried by passing username and pass in config section but it didn’t work for me.
{
"zoneId": 15,
"instance": {
"name": "TEST",
"cloud": "myCloud",
"site": {
"id": 14
},
"instanceType": {
"code": "vmware"
},
"layout": {
"id": 1
},
"plan": {
"id": 2
}
},
"copies": 1,
"layoutSize": 1,
"volumes": [
{
"id": -1,
"rootVolume": true,
"name": "somevol",
"size": 40,
"storageType": 0,
"datastoreId": "auto"
}
],
"networkInterfaces": [
{
"network": {
"id": 1347
},
"networkInterfaceTypeId": 423
}
],
"config": {
"publicKeyId": 5,
"template": 5363,
"resourcePoolId": 787,
"noAgent": false,
"vmwareFolderId": "g42",
"vmwareUsr": "demo",
"vmwarePwd": "demo123"
}
}
Without user and pass
{
"zoneId": 15,
"instance": {
"name": "TEST",
"cloud": "myCloud",
"site": {
"id": 14
},
"instanceType": {
"code": "vmware"
},
"layout": {
"id": 1
},
"plan": {
"id": 2
}
},
"copies": 1,
"layoutSize": 1,
"volumes": [
{
"id": -1,
"rootVolume": true,
"name": "somevol",
"size": 40,
"storageType": 0,
"datastoreId": "auto"
}
],
"networkInterfaces": [
{
"network": {
"id": 1347
},
"networkInterfaceTypeId": 423
}
],
"config": {
"publicKeyId": 5,
"template": 5363,
"resourcePoolId": 787,
"noAgent": false,
"vmwareFolderId": "g42"
}
}
Let me if i am missing anything when you test.