Get global config
Gets the value of the specified global configuration key. Encrypted values are returned as ********.
Required Permissions
Requires the Cluster Administrator role.
HTTP Request
GET /api/sonar/global-configs/:key
cURL Example
curl -H "Authorization: Bearer <API_KEY>" \
https://HOSTNAME/api/sonar/global-configs/default_locale
Request Parameters
Path Parameters
| Key | Type | Description | Note |
|---|---|---|---|
| key | String | Configuration key | Case-insensitive |
Success Response
{
"default_locale": "ko"
}
Error Responses
Invalid configuration key
HTTP status code 500
{
"error_code": "illegal-state",
"error_msg": "invalid option name: default_locale"
}
Permission denied
HTTP status code 500
{
"error_code": "illegal-state",
"error_msg": "no-permission"
}