Have you checked this link https://developer.arubanetworks.com/cppm/docs/rest-api-filtering
Maybe you have necessary information there.
I am not an expert on this, but i think you should send:
POST https://<clearpass>/api/session?calculate_count=true&limit=1
Authorization: Bearer <token>
Content-Type: application/json
{
"filter": {
"acctstoptime": { "$exists": false }
}
}
So from the link provided i think you should be filtering by state. Instead, you should filter by acctstoptime, and use ?calculate_count=true to get the total.
------------------------------
Shpat | ACEP | ACMP | ACCP | ACDP
Just an Aruba enthusiast and contributor by cases
If you find my comment helpful, KUDOS are appreciated.
------------------------------