[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-06-01 Thread Joey Ma
As a side note, The current the v4.3 API docs shows that the only field of a disk that can be update is `qcow_version` ( http://ovirt.github.io/ovirt-engine-api-model/4.3/#services/disk/methods/update). While all the properties, including the inner disk properties, are supported when updating a dis

[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-06-01 Thread Joey Ma
On Fri, Jun 1, 2018 at 1:48 PM, Ondra Machacek wrote: > Looking the API, the Disk type has element 'vms', but we don't feed it > with data: > > > https://github.com/oVirt/ovirt-engine-api-model/blob/master/ > src/main/java/types/Device.java#L50 > > I can fix the API so it returns it. So feel free

[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-05-31 Thread Ondra Machacek
Looking the API, the Disk type has element 'vms', but we don't feed it with data: https://github.com/oVirt/ovirt-engine-api-model/blob/master/src/main/java/types/Device.java#L50 I can fix the API so it returns it. So feel free to open a bug if you need it. But maybe, can you describe your exac

[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-05-31 Thread Joey Ma
Hi Ondra, I tried your URL but it not worked. I want to retrieve all the attached vms by a disk, so I cloud not provide a specified vm name for searching. Also tried with https://fqdn/ovirt-engine/api/vms?search= *disk=DISKNAME*, unfor

[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-05-31 Thread Joey Ma
OK, got it. Search is a powerful solution. Thank you very much. On Thu, May 31, 2018 at 6:49 PM, Ondra Machacek wrote: > On 05/31/2018 09:28 AM, iterjpnic wrote: > >> Hi all, >> >> I use oVirt engine API v4.2 for implementing terraform oVirt provider. >> And I want to check if a Disk has been a

[ovirt-users] Re: how to use oVirt engine API to retrieve the attached VM list by a disk id.

2018-05-31 Thread Ondra Machacek
On 05/31/2018 09:28 AM, iterjpnic wrote: 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/