| Table of Contents |
Get a List of Properties
| Description | Get a list of properties |
URL | /api/properties |
| Method | GET |
Security | Optional (to see secured properties) |
Examples
Get the list of all the properties:
Get the global property 'sonar.core.codeCoveragePlugin':
Get the property 'sonar.core.codeCoveragePlugin' on project 'org.codehaus.sonar:sonar': ?????????????? trouver une propriété redéfinie
Parameters
Parameter | Description | Required | Default Value | Value |
|---|---|---|---|---|
id | Key of the property | No | Get all properties if not set | sonar.core.codeCoveragePlugin |
resource | id or key of the project | No | None | org.codehaus.sonar:sonar |
| format | Response formats: xml or json | No | xml |
Create or Update a Property
| Description | Create or update a property |
URL | /api/properties |
| Method | POST |
| Security | Requires Global Administrator role |
Examples
Create or update property 'myProperty' with value 'myValue' by user admin/admin:
Parameters
Parameter | Description | Required | Default Value |
|---|---|---|---|
id | Key of the property | Yes | None |
value | Value of the property | ??? | None |
Delete a Property
| Description | Delete a property |
URL | /api/properties |
| Method | DELETE |
| Security | Requires Global Administrator role |
Examples
Delete property 'myProperty' by user admin/admin:
Parameters
Parameter | Description | Required | Default Value |
|---|---|---|---|
id | Key of the property | Yes | None |

