Hi all,
I use oVirt engine API v4.2 for implementing terraform oVirt provider. And I want to check
if a Disk has been attached to a VM, so I need to find all vms attached by this disk.
But after I checked the GET-Response data from the
"/ovirt-engine/api/disks/<disk-id>" rest url, there has no
disk-attachment/vm related properties or links. I could get a trade-off, by the following
steps:
1. getting all vms
2. get all disk-attachments of each vm
3. check if the given disk id equals to the `disk` property of each disk-attachment`
4. If equals, append the vm to result list
Is there any simpler and smarter way to get this? Thanks.