Description of problem: Currently our /rest/resource is not yet enough powerful. For example it returns resources that are not yet imported in inventory and there is no way to distinguish InventoryStatus This BZ should have been only about InventoryStatus, although I think REST api deserves more general improvement. Version-Release number of selected component (if applicable): RHQ 4.7-master What about supporting all possible (or a larger subset) Filters from ResourceCriteria we would get rid of query parameter 'q' which now filters by name And we add at least these parameters (those make sense for me) name status (InventoryStatus) : default COMMITED availability (AvailabilityType) : default UP type (resourceTypeName) parentName (parentResourceName) parentType (parentResourceTypeName) pluginName category would be kept strict=true|false order=fieldName
Addition of inventory status and filtering on it has been implemented in master as 8868d160 as Bug 960959
The parameter 'q' has been introduced as most search apis seem to use this (e.g google ), so it will not be dropped.