Hello Community, I am looking for a way to get the following details of all projects in a few calls. I’m using Sonarqube Community.
(Coverage, Releasability, Reliability, Security Vulnerabilities ,Security Review, Maintainability, and No. of Lines).
Right now, I’ve been using a loop to sonarqube_url + /api/measures/component?&metricKeys=security_rating,reliability_rating,coverage,ncloc,security_review_rating,sqale_rating,alert_status" for all projects. I am able to get all of the details I need using this way, however I’ve been encountering network problems with the number of calls I’m making. Is there a better way to get all the details I need?
Can you show what errors you are getting? What triggers that error? How many calls are you making to trigger the error? There is no rate limiting by SonarQube, so it’s not a configuration that can be made on SonarQube side. I suggest you review your network configuration to confirm what is constraining your network calls.
I think my issue is the network configuration from our current infrastructure, since I’m calling the Sonarqube API atleast 150 times with just one call from the API I’m developing.
Right now, I’m looking for an alternative way to call the values that I need. I’m wondering if there is any calls similar to this endpoint that can be used to get all the values that I need and is usable in Sonarqube Community, where there are no portfolios?
Values that I need:
(Coverage, Releasability, Reliability, Security Vulnerabilities ,Security Review, Maintainability, and No. of Lines).
Endpoint to get all the values that I need , but with a portfolio: