Pat.Aben
(Patrick ABENAQUI)
September 6, 2022, 1:42pm
1
Hello,
The api/hotspots/search function has a page size limitation of 500 max .
I have more than 500 hotspots
Is there any way to handle more than 500 hotspots from the WEB_API ?
I want to retrieve Security Hotspots through WEB_API but I cannot have more than 500.
Regards
Colin
(Colin)
September 6, 2022, 2:44pm
2
The Web API documentation for GET api/hotspots/search includes parameters for pagination (p
and ps
) to go past the first 500 results.
Pat.Aben
(Patrick ABENAQUI)
September 6, 2022, 3:05pm
3
Hello,
When I try with ps=1000 I have this message:
{“errors”:[{“msg”:“Page size must be between 1 and 500 (got 1000)”}]}
You can not see more than 500 issues per request, that is a hard limit. The idea is that you increment p
until there are no more issues, so you have to do multiple requests. p=1
on the first request, p=2
on the second request, …
Pat.Aben
(Patrick ABENAQUI)
September 7, 2022, 8:12am
5
Hello Hendrik,
Thanks!
Ok, I get it now. It works with the increment of p.
1 Like
system
(system)
Closed
September 14, 2022, 8:13am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.