[Users] REST API query syntax

Hi, all I learned some query language from "REST API User Guid" to get a reduced result list, for example: /api/storagedomains?search=name%3D*iso* it works. but the following querys do not work /api/storagedomains?search=type%3Diso /api/storagedomains?search=id%3D3f00108a-5c0e-4723-aa88-0013773bf122 /api/vms?search=display.type%3Dvnc I don't know what is the difference between them, and which property can be act as the part of query ? thanks!

On 04/26/2012 05:59 AM, Hui Kai Ran wrote:
Hi, all
I learned some query language from "REST API User Guid" to get a reduced result list, for example:
/api/storagedomains?search=name%3D*iso*
it works. but the following querys do not work /api/storagedomains?search=type%3Diso /api/storagedomains?search=id%3D3f00108a-5c0e-4723-aa88-0013773bf122 /api/vms?search=display.type%3Dvnc
I don't know what is the difference between them, and which property can be act as the part of query ?
easiest would be to open the UI and check the search syntax (since UI has auto complete / suggestions on search syntax)
participants (2)
-
Hui Kai Ran
-
Itamar Heim