- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- API Pagination Question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:23 AM
06-07-2022 09:23 AM
API Pagination Question
Pagination with our API. Is the expectation to parse the meta return for total vs current and determine the remaining page loop? Most have a header or a data value for nextlink. I guess I’ve always been lazy on ours with a -1 or something. Trying to figure out the cleanest way to paginate.
- Tags:
- API
- pagination

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:36 AM
06-07-2022 09:36 AM
Re: API Pagination Question
-1 will be getting removed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:42 AM
06-07-2022 09:42 AM
Re: API Pagination Question
make that a big bold red warning in the docs please

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:29 AM
06-07-2022 09:29 AM
Re: API Pagination Question
if you passed an offset greater than the total, it would loop forever

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:28 AM
06-07-2022 09:28 AM
Re: API Pagination Question
looks great on mobile?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:28 AM
06-07-2022 09:28 AM
Re: API Pagination Question
I dunno…but the pattern is sound

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:32 AM
06-07-2022 09:32 AM
Re: API Pagination Question
didn’t think about an increase during runtime

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:35 AM
06-07-2022 09:35 AM
Re: API Pagination Question
was going to post it

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:32 AM
06-07-2022 09:32 AM
Re: API Pagination Question
Oh…yeah, good catch

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:37 AM
06-07-2022 09:37 AM
Re: API Pagination Question
We should start doing that in 5.5 actually

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:43 AM
06-07-2022 09:43 AM
Re: API Pagination Question
it’s definitely going to break stuff, but I know it’s the proper way to do it

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:28 AM
06-07-2022 09:28 AM
Re: API Pagination Question
>=
intstead of ==

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:30 AM
06-07-2022 09:30 AM
Re: API Pagination Question
ie. a bunch of records got deleted right before you send your last request

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:24 AM
06-07-2022 09:24 AM
Re: API Pagination Question

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:28 AM
06-07-2022 09:28 AM
Re: API Pagination Question
if nextResult['meta']['offset'] + nextResult['meta']['size'] >= result['meta']['total']

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:33 AM
06-07-2022 09:33 AM
Re: API Pagination Question
I have a powershell script that pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 09:24 AM
06-07-2022 09:24 AM
Re: API Pagination Question
correct, no nextlinks with morpheus