{
"vms_id": 2,
"vms_os_username": "administrator",
"vms_os_passwd": "mc520.",
"vms_osid": 1,
"vms_disks": [
{
"path": "/home/kvm/kvm2",
"size": 100,
"is_system_disk": true,
"format": "qcow2",
"cache": "writeback",
"iops_read": 2000,
"iops_write": 2000
},
{
"path": "/home/kvm/kvm2",
"size": 200,
"format": "qcow2",
"is_system_disk": false,
"cache": "writeback",
"iops_read": 3000,
"iops_write": 3000
}
]
}curl --location --request POST 'https://localhost/api/vms/reinstall' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"vms_id": 2,
"vms_os_username": "administrator",
"vms_os_passwd": "mc520.",
"vms_osid": 1,
"vms_disks": [
{
"path": "/home/kvm/kvm2",
"size": 100,
"is_system_disk": true,
"format": "qcow2",
"cache": "writeback",
"iops_read": 2000,
"iops_write": 2000
},
{
"path": "/home/kvm/kvm2",
"size": 200,
"format": "qcow2",
"is_system_disk": false,
"cache": "writeback",
"iops_read": 3000,
"iops_write": 3000
}
]
}'{}