On 02/01/2013 12:56 PM, navin p wrote: > Hi, > When i do the api call for events from , i only get 100 events. Can > someone tell me how to get all the events ? >
There are 2 options: 1. Use the overloaded Event.list method and specify the amount of result you wish to get. In the next example you'll get 1000 entries. Events events = api.getEvents(); events.list("", false, "", 1000); You can use this method to retrieve events by extents. 2. Increase the value of the configuration value 'SearchResultsLimit' to the desired reasonable value. > List<Event> evlst=api.getEvents().list(); > for(Event obj:evlst) { > System.out.println(obj.getDescription() + ":" +obj.getSeverity() > +":"+obj.getTime().toString()+":"+k.toString()); > } > > Regards, > Navin > > > _______________________________________________ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel > _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel