I used- curl -ku acess token:password "http(s)://yoursonarhost/web_api/api/server"
but i am not getting proper response , i am getting info like sonar server is UP and all but not the server / sonarqube version .
The url .../web_api/api/server is the link to the internal web api docs that ships with Sonarqube
If you want to use the web api to get the response with the Sonarqube version you have to use https://nameofyoursonarhost/api/server/version
Another way to get the version is to use the file name of
$SONARQUBE_HOME/lib/sonar-application-x.x.x.xxxxx.jar where x.x.x.xxxxx has the version
i.e. sonar-application-8.9.2.46101.jar or sonar-application-9.1.0.47736.jar