list of the client en API /query/client

  • 1
  • Question
  • Updated 1 month ago
  • Answered
Hello, I am working with the SZ100 API, and I need to get the complete list of connected clients I am using the following call:

https://ip_sz100:7443/api/public /v5_0/query/client

and this answers me and says that there are 120 clients, but only with the information of the first 10 clients. How can I do so that I respond with the information of all the clients?

Regards

Photo of Julio Saldivar

Julio Saldivar

  • 2 Posts
  • 0 Reply Likes

Posted 1 month ago

  • 1
Photo of Diego Garcia del Rio

Diego Garcia del Rio

  • 89 Posts
  • 32 Reply Likes
All of the apis that can return a long list of options are paginated. Meaning they respond with only the first N answers and you need to keep calling them with a "page" attribute to get the next N. I don't recall the parameter name but search the api guide for pagination. Or open your browser and use F12 (developer console) to see the api calls that the GUI makes. Go to the client page and then click on the "next" arrow to get more results
Photo of Julio Saldivar

Julio Saldivar

  • 2 Posts
  • 0 Reply Likes
Thank you very much, you should add the following in the in data:

"limit": 200

Regards


Photo of Diego Garcia del Rio

Diego Garcia del Rio

  • 89 Posts
  • 32 Reply Likes
Well. That will work but only up to 200 clients. And eventually won't work cause the limit parameter is not "infinite". Don't remember the max value. But eventually you will need to support pagination