The SonarQube HTTP api allows to access SonarQube functionality via a json or protocol buffer interface.
Questions tagged [sonarqube-api]
42 questions
1
vote
2 answers
SonarQube API search issues with componentKeys by directory
In the SonarQube docs it says that componentKeys can be the following:
Comma-separated list of component keys. Retrieve issues associated to a specific list of components (and all its descendants). A component can be a portfolio, project, module,…

Lucas
- 100
- 12
1
vote
1 answer
Installing a SonarQube Plugin Programmatically
I have a SonarQube service and API deployed in containers as part of my build pipeline. The SonarQube service needs to have the SonarJava plugin installed to understand my code rules.
As it's not an option to manually install this plugin, I'd like…

Baris
- 11
- 3
1
vote
0 answers
Using JQuery to access SonarQube Web API
My goal is to provide a dashboard page (HTML) with specific metrics for a list of projects. To do this, I plan on using JQuery to retrieve and display those metrics.
So, I am trying to set up a JQuery function to retrieve data from SonarQube Web…

L Ross
- 23
- 1
- 4
1
vote
1 answer
What is the substitute for api/tests?
SonarQube's web service api/tests is deprecated since SonarQube 5.2.
What would be a new good way to access this information?

Luís Otávio Braga
- 23
- 7
1
vote
1 answer
How to get the code causing an issue in SonarQube or a link to it?
Is there a way to parameter the SonarQube web service to get the line of the code causing a specific error?
For instance, if I parameter the webservice to get all the blocking issues like…

Samorix
- 307
- 4
- 17
1
vote
1 answer
How to select javascript issues and their comments?
I am using the SonarQube 6.4 API in order to search for issues. I do have two questions regarding it:
Can I filter on issues related to a language?
I tried http://localhost:9000/api/issues/search?vulnerabilities=BLOCKER&language=JAVASCRIPT and…

Samorix
- 307
- 4
- 17
1
vote
2 answers
How to retrieve all rules of a quality profile using the web api?
I have run a analysis on Sonarqube with Codescan. The number of issues returned, is way above the 10000 web api limit. Therefore, within my client/code I wanted to loop through all of the rules within a quality profile and return all the issues…

A Porter
- 25
- 4
1
vote
0 answers
Sonar scanner plugin installation
I have sonar-scanner-3.0.0.702 in local and sonar qube v5.3 in remote server.
In my sonar config property i have mentioned as like below.…

Simbu
- 766
- 1
- 12
- 37
1
vote
1 answer
Language filter in SonarQube component_tree url
The api api/measures/component_tree gives the list of components based on the provided input filters. Is there any parameter to provide the language so that the returned list only contains components of that language?

Manoj Kumar
- 289
- 4
- 12
1
vote
1 answer
Waiting the end of a REPORT task without having Administrator permissions
I am developing a plugin for SonarQube 6.3.1 which execute an analysis and then generate a docx report.
The problem is that I have to wait between these both actions that SonarQube finishes its REPORT task. My plugin is destined to lambda users so…

begarco
- 751
- 7
- 20
1
vote
3 answers
How to poll the quality gate execution status?
I would like to poll the quality gate execution status of my SonarQube 6.3 instance using a REST api call. I went through a few api calls, which did not give me the expected results.
I tried to use these…

Simbu
- 766
- 1
- 12
- 37
1
vote
1 answer
How to install or uninstall SonarQube plug-ins with HTTP?
I'm trying to install and uninstall SonarQube plug-ins via HTTP.
If I call http://localhost:9000/api/plugins/installed I get a list of installed plug-ins as expected:
{"plugins": [
{
"key": "csharp",
"name": "C#",
"description":…

deamon
- 89,107
- 111
- 320
- 448
1
vote
1 answer
It is possible to send HTTP response when the analysis is finished on SonarQube?
I am integrating TFS 2015 with SonarQube 6.1, and I need to know when the analysis are finished to run another process.
I have had a look at some triggers called hooks, but it required develop a plugin for SonarQube.
Is there another way of doing…

sergio quezada
- 37
- 6
1
vote
0 answers
custom project creation and user access using sonarqube rest API's
I have my custom metrics and I would like to create my own custom project in SonarQube and push all my custom metrics to Sonar DB via Rest API's.
Also I would like to create a specific user and provide permission only to the custom project.
Please…

Saran
- 31
- 4
1
vote
1 answer
How to retrieve the package-name of a resource using the SonarQube REST-API?
Can you think of an elegant way to determine the package of a JAVA-class in SonarQube using the REST-API?
This snippet
http://myhost:9000/sonar/api/resources?resource=my.project%3Asimple.analysis&depth=-1&scopes=FIL
delivers a result…

Tobi
- 71
- 1
- 5