we are missing a way to invoke the GetVmTemplatesFromStorageDomain query in the REST API. this query is being used in the GUI in the 'Storage -> Templates' sub-tab. [AFAIK, this query returns all templates that have at list one disk that resides on the specified storage domain; it returns the templates information along with their disks' information]
This information is already available, using a search query: #!/bin/sh -x url="https://ovirt.example.com/ovirt-engine/api" user="admin@internal" password="******" curl \ --verbose \ --insecure \ --request GET \ --user "${user}:${password}" \ --header "Accept: application/xml" \ "${url}/templates?search=storage%3Dmydata"
@Juan - this query is used by the UserPortal which requires a filtered list according to user permissions. The search mechanism doesn't support that filtering, do we plan to introduce such functionality when moving the UI on top of the rest-api? Or maybe we can invoke this query on the specific search request?
Bug 1155967 is requesting implementation of the "search" mechanism combined with the "Filter" header, but it won't probably be implemented for 3.6, thus I'm reopening this bug.
Bug 1155967 has been re-targed for 3.6, so this can be now be closed as a duplicate, as it will be possible to use the mechanism described in comment 1 combined with the "Filter" header. *** This bug has been marked as a duplicate of bug 1155967 ***