Hello , I can see 120 projects from web GUI , but when I run the rest API
http://sonar_url/api/projects/search, I can see 100 projects , missed 10-20 projects ,
what is the reason ?
Thanks a lot
Hello , I can see 120 projects from web GUI , but when I run the rest API
http://sonar_url/api/projects/search, I can see 100 projects , missed 10-20 projects ,
what is the reason ?
Thanks a lot
Hi, the API is paginated. You need to use the parameters p
and ps
, as page and page_size, to navigate through the pages. default page size is 100
.
You can know if there are more pages from the API response:
"paging": {
"pageIndex": 1,
"pageSize": 100,
"total": 2
}
Thanks , a lot , seems OK now , is there a way in SonarQube admin console , to set page size to 200 ? or change page default size
Thanks
No, you can’t, it needs to be specified for every request.
really help , Thanks a lot