Bug 1374213 - How restful API to oVirt events tab and set the number of each page event.
Summary: How restful API to oVirt events tab and set the number of each page event.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 3.6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ---
: ---
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 09:23 UTC by Evan
Modified: 2016-09-08 13:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-08 13:05:47 UTC
oVirt Team: Reports
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.