Bug 1374213

Summary: How restful API to oVirt events tab and set the number of each page event.
Product: [oVirt] ovirt-engine Reporter: Evan <evan1104>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED NOTABUG QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.6.7CC: bugs
Target Milestone: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-08 13:05:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Reports RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Evan 2016-09-08 09:23:53 UTC
Description of problem:
I use "/ovirt-engine/api/events?search=sortby%20time%20asc%20max%204%20page%201" wants the event page, but fails, all the event are displayed, and only 1 page. what should I do?

Version-Release number of selected component (if applicable):
oVirt engine : 3.6.7.5-1.el6

How reproducible:
/ovirt-engine/api/events?search=sortby%20time%20asc%20max%204%20page%201

Comment 1 Juan Hernández 2016-09-08 13:05:47 UTC
The "max" parameter isn't part of the search language, but a separate matrix parameter. In your particular case it is just ignored, thus you get all the results, as that that is the default when "max" isn't specified. If you only want to get 4 results per page, for example, you should send a request like this:

  GET /ovirt-engine/api/events;max=4?search=sortby%20time%20asc%20page%201

I'm closing as NOTABUG because I think that there is nothing to fix. If you think that something needs to be changed then reopen the bug and explain it.