Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse
titleTable of Contents

Table of Contents
maxLevel1

Get a List of Profiles

DescriptionGet a list of profiles

URL

/api/profiles/list

HTTP MethodGET
Response Formatsjson

Security

None
Available sinceSonar 3.3

Examples

Use Case

Example Request

Get all the profiles

GET http://nemo.sonarsource.org/api/profiles/list

Get all the java profiles

GET http://nemo.sonarsource.org/api/profiles/list?language=java

Get all the profiles used by project org.codehaus.sonar:sonar

GET http://nemo.sonarsource.org/api/profiles/list?project=org.codehaus.sonar:sonar

Get the java profile used by project org.codehaus.sonar:sonar

GET http://nemo.sonarsource.org/api/profiles/list?project=org.codehaus.sonar:sonar&language=java

Response Format

Code Block
titleJSON
languagejavascript
[
  {
    "name":"Sonar way with Findbugs",
    "language":"java",
    "default":false
  },
  {
    "name":"Sonar way",
    "language":"java",
    "default":false
  },
  ...
]

Parameters

Parameter

Description

Required

Default Value

Example Value

language

Profile language

No

None

java

project

Project key or id

No

None

org.codehaus.sonar:sonar

formatResponse formats.
Possible values: json
NoNonejson

Get Coding Rules Activated in a Quality Profile

...