Get All projects in Sonarqube 8.6

Hi,

I am using sonarqube version 8.6 and using webapi mentioned below, to get all projects in Sonarqube. I am sure I am missing something, but api returns only 500 projects,but total projects i see in UI are 900+.
How can i get all projects using the API??

http://localhost/api/components/search?qualifiers=TRK&ps=500

Hi @javed_aws3 ,

welcome to the community :wave:

you have to use pagination here, so

http://localhost/api/components/search?qualifiers=TRK&ps=500&p=1

would be the first 500 and

http://localhost/api/components/search?qualifiers=TRK&ps=500&p=2

the next 500 and so on.

hope this helps :slight_smile:

1 Like

Thanks Tobias…it works :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.