05-18-2022 06:40 PM
https://IP:8443/wsg/api/public/v9_1/query/client
Here is my filter:
{
"filters": [
{
"type": "WLAN",
"value": "22"
}
]
}
It worked but only has 10 clients in "list" instead of 1768. How can I return correct number of client?
Solved! Go to Solution.
05-19-2022 01:15 AM - edited 05-19-2022 01:16 AM
By default the query will return only 10 entries. Try below and you can modify the number of entries returned, adding "limit" parameter to your body: "limit": X (where X is the number of entries returned).
Modified body:
{
"filters": [
{
"type": "WLAN",
"value": "22"
}
]
}
"limit":20
}
FYR :
https://support.ruckuswireless.com/articles/000009412
Best Regards
Vineet
05-19-2022 01:33 AM - edited 05-19-2022 01:34 AM
Hi @is_trouser
For example :
POST : https://:8443/api/public/v7_0/query/ap/wlan
Body :
{
"filters": [
{
"type": "DOMAIN",
"value": "8b2081d5-9662-40d9-a3db-2a3cf4dde3f7"
}
],
"fullTextSearch": {
"type": "AND",
"value": ""
},
"attributes": [
"*"
]
}
Results:
{"totalCount":468,"hasMore":true,"firstIndex":0,"list"
The query would return only 10 entry results by default
Modified body:
{
"filters": [
{
"type": "DOMAIN",
"value": "8b2081d5-9662-40d9-a3db-2a3cf4dde3f7"
}
],
"fullTextSearch": {
"type": "AND",
"value": ""
},
"attributes": [
"*"
] ,
"limit":1000
}
The query would return 1000 entry results by default
Best Regards
Vineet
05-19-2022 01:53 AM
Hi Vineet
I think maybe I find out the page parameter. Is it correct?
{
"filters": [
{
"type": "WLAN",
"value": "22"
}
],
"limit": 1000,
"page": 2
}
05-19-2022 01:55 AM
@is_trouser That is correct you can also use parameter "page": Y (where Y is the page number) to get following pages with more info.
Please mark the answer as solution once worked.
Best Regards
Vineet
05-19-2022 01:58 AM
Yes, it worked. Happy to have contributors like you in the community!