First time poster, so forgive me if I am doing this entirely wrong.
I was trying to pull down our users via https://discuss.elastic.co/admin/users/list/all.json?api_key=KEY&api_username=USER
which is working fine. However I have two problems when dealing with pagination and I could do with some clarification.
https://discuss.elastic.co/admin/users/list/all.json?api_key=KEY&api_username=USER&page=0
andhttps://discuss.elastic.co/admin/users/list/all.json?api_key=KEY&api_username=USER&page=1
seem to return the same thing.https://discuss.elastic.co/admin/users/list/all.json?api_key=KEY&api_username=USER&page=9999999
returns a HTTP 200, but no body, because the page count doesn’t go that high.
I don’t seem to see anything in the response body or headers to indicate what the first/next/last page is. And the docs only say it takes an integer (buts accepts negative ones too).
Appreciative of any guidance that can be offered