{
"nodeid": 9,
"hostname": "VM-01",
"sockets":1,
"cores": 2,
"threads": 2,
"nested": false,
"modelGroup": 2,
"cpu": "host",
"arch": "x86_64",
"memory": 1024,
"storage": "auto",
"systemDiskSize": 40,
"os": "CentOS-8-Stream-x64.qcow2",
"osType": "linux",
"bandwidth": 100,
"ipConfig":{
"1": ""
},
"dataDisk": {
"1":40
},
"onBoot": 1,
"username": "root",
"password":"123456",
"ifnat": 1,
"natnum": 10
}
curl --location --request POST '/createVm' \
--header 'Content-Type: application/json' \
--data-raw '{
"nodeid": 9,
"hostname": "VM-01",
"sockets":1,
"cores": 2,
"threads": 2,
"nested": false,
"modelGroup": 2,
"cpu": "host",
"arch": "x86_64",
"memory": 1024,
"storage": "auto",
"systemDiskSize": 40,
"os": "CentOS-8-Stream-x64.qcow2",
"osType": "linux",
"bandwidth": 100,
"ipConfig":{
"1": ""
},
"dataDisk": {
"1":40
},
"onBoot": 1,
"username": "root",
"password":"123456",
"ifnat": 1,
"natnum": 10
}'
{}