How to resize vm disk via API, for oVirt provider? #22535
Unanswered
oysterme1ster
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi, I don't have that infrastructure for replicate the lab, but have you tried changing the device_name? instead of use file "3c57..." use "cloud-rhv-test1-Disk3". could be. good luck. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, it try to reconfigure disk size, using this guide:
https://www.manageiq.org/docs/reference/latest/api/examples/reconfigure_vm.html
When i do it for Vsphere vms,
I take disk filename from this request:
Then pass the filename value to the disk_name arg in the post request.
POST /api/requests
{
"action" : "create",
"options": {
"request_type": "vm_reconfigure",
"src_ids": ["3301"],
"disk_remove": [
{
"disk_name": "[Pure09_SSD_lun152] dev-pcld-app114/dev-pcld-app114_2.vmdk",
"delete_backing": true
}
]
}
}
And everything is ok. Request completes successfully.
But if i do the same for oVirt vms:
Request drop with Error:
Beta Was this translation helpful? Give feedback.
All reactions