| Summary: | [RFE] Pagination and Filtering For Listing OpenStack Server Groups Using REST API | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Jack Waterworth <jwaterwo> |
| Component: | openstack-nova | Assignee: | Eoghan Glynn <eglynn> |
| Status: | CLOSED WORKSFORME | QA Contact: | nlevinki <nlevinki> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 (Kilo) | CC: | berrange, byount, dasmith, dclarke, dhill, eglynn, jwaterwo, kchamart, sbauza, sferdjao, sgordon, srevivo, vromanso |
| Target Milestone: | ga | Keywords: | FutureFeature |
| Target Release: | 11.0 (Ocata) | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-22 13:57:07 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Comment 2
Jack Waterworth
2016-01-19 16:26:49 UTC
The 'os-server-groups' endpoint uses 'limit' & 'offset' query parameters, not 'limit' & 'marker' query parameters.
For example, testing notes on devstack:
http://paste.openstack.org/show/589962/
Can you give 'offset' a try and let me know if that doesn't work?
Marking this as closed since 'os-server-groups' paging has worked for a few years now (I'm not sure when it was first introduced). I've added it to my TODO list to update the api-ref docs [1] to include the optional 'limit' and 'offset' query parameters. This is the code [2] 'os-server-groups' is using to facilitate paging. From that code: 'offset' is where to start in the list, and 'limit' is the maximum number of items to return. If 'limit' is not specified, 0, or > max_limit, we default to max_limit. [1] http://developer.openstack.org/api-ref/compute/?expanded=list-server-groups-detail [2] https://github.com/openstack/nova/blob/47ff843551cdaf5935ddf74647a1b81153975b21/nova/api/openstack/common.py#L217 Hope that helps, Cheers! |