we are missing a way to invoke the GetVmsByStorageDomain query in the REST API. this query is being used in the GUI in the 'Storage -> VMs' sub-tab. [I assume that this query returns all of the VMs that contain disks/snapshots that reside on the specified Storage Domain, including that disks/snapshots information; not sure if we have a way to represent all of this data in a rest api response]
This is already possible combining a query, the "All-Content" header and the "detail" parameter of the "Accept" header: #!/bin/sh -ex url="https://ovirt.example.com/ovirt-engine/api" user="admin@internal" password="******" curl \ --verbose \ --insecure \ --user "${user}:${password}" \ --header "Accept: application/xml; detail=disks" \ --header "All-Content: true" \ "${url}/vms?search=storage.name%3Dmydata" Note the "detail=disks" parameter of the "Accept" header, this is what trigges population of the disks collection inline. It is also already implemented for "nics", "statistics" and "tags". Also note that the query used is "storage.name=mydata". It would be more convenient to use identifiers instead of names, but this isn't currently implemented in the backend search engine.