Niklas Granryd
-
2009-10-01
With this patch one can fetch "all" instances, including all child templates instances, from a specific template.
To update copy the TemplateInstance.class file to <installdir>/tomcat*/webapps/ROOT/WEB-INF/classes/org/onecmdb/core/utils/xpath/model.
Usage:
http://xxxx:8080/remote/http/query?auth=$token&path=/template/System/allinstances
Will return all instances and child instances of template System.
Alt.
http://xxxx:8080/remote/http/query?auth=$token&path=/template/System/instances
Will return only instances derived from System, is equivalent to /instance/System/*