Security

 View Only

Fetching all sessions from clearpass.

This thread has been viewed 4 times
  • 1.  Fetching all sessions from clearpass.

    Posted Feb 15, 2026 11:26 PM

    Hi, 
    I'm trying to build an external integration with clearpass where I need to fetch all sessions from clearpass. I'm polling multiple pages concurrently from /api/session REST API until I fetch all pages.  Clearpass doesn't support cursor pagination so I risk getting duplicate or missing data if data changes midway (because records may shift to other pages).

    Eg: 

    Page 1: id1, id3

    Page 2: id4, id5,

    If id2 is added in after fetching page 1, pages become

    Page 1: id1, id2

    Page 2: id3, id4

    Page 3: id5

    I lose id2 in this case.

    Questions:

    1. If I sort by session ID, is it guaranteed that new sessions are always added to the end, i.e., are the IDs ever-increasing? If this is true, I could sort by +id to make it work.

    2.  If the IDs are assigned at random, what is the recommended way to fetch all pages?



    -------------------------------------------