Must-share information (formatted with Markdown):
SonarQube deployed: Docker
*how to check if i am using community or commercial version?
is there any api calls or command.Or is it available in any files.
I need to warn user if they are using community version.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
The community edition has no endpoint api/editions you’ll get a 404 and no response as in the example above.
Means if you get a valid response http 200 it’s commercial, if http error 404 it’s the community edition.
What about Developer Edition and Data Center Edition.Did they have the api/edition end point.Also since we cannot entirely depended on the api calls 404 to identify, is there any files or any other method restriction which allow as to identify the Enterprise version.
i guess they have, i know only Community and Enterprise edition.
The edition is also seen in the footer of the web ui, but i don’t know how to extract that via script.
There is a file that is different for any edition, see $SONARQUBE_HOME/lib/scanner
i.e. for Sonarqube 10.3
Community = sonar-scanner-engine-shaded-10.3.0.82913-all.jar
Developer = scanner-developer-10.3.0.82913-all.jar
Enterprise = scanner-enterprise-10.3.0.82913-all.jar
Also every edition has a different number of bundled plugins, because the number of supported languages and features differs, see $SONARQUBE_HOME/lib/extensions i.e.
Community edition has no Python support, means no sonar-python-plugin-xxx.jar
Developer edition has Python support, but no rpg or pl1 support, means no sonar-pli-plugin-xxx.jar
When I tried with different images community,developer,commercial provided in this page https://hub.docker.com/_/sonarqube
I was able to get an html page as response.
https:///web_api/api/editions/show_license?internal=true was available for both community and developer.Is there any api calls?
Sorry.When i posted here, the <yoursonarhost> got replaced.
But i tried the same way you provided and it was not returning the json file.
For https://<yoursonarhost>/web_api/api/editions/show_license?internal=true it was a website like above and for https://<yoursonarhost>/api/editions/show_license it was 404 for both community and enterprise version.
For both the cases(community and enterprise versions) the response was same and I was not able to differentiate
I tried with this end point and it returns a JSON format with edition having “community” as result. curl -u <user_name>:<password> http://localhost:9005/api/navigation/global | jq .edition
Is this a supported endpoint and is it available for enterprise and developer version.