Create VM using REST API in OLVM
I have added a disk under a storage domain in OLVM and I am trying to attach that disk while creating a VM using "/ovirt-engine/api/vms" with below payload. But I am getting the input payload is syntactically incorrect message:
Can you please provide the sample json to attach a disk while creating VM:
{
"name": "testVM",
"cluster": {
"id": "2f497450-5cc4-11eb-96bc-00163e031da2"
},
"host": {
"id": "61fe16b7-38e5-4c10-8f70-2db01f049d4f"
},
"template": {
"id": "56111010-f76a-40f3-8674-85f3fc9da03a"
},
"disk_attachment": [{
"disk": {
"id": "55162a35-b9db-468f-9220-cc9fd0775dd8"