Reset Loggers

Resets specified loggers. Once a logger is reset, it restarts logging from scratch. Administrator privileges are required to call this API.

HTTP Request

DELETE /api/sonar/loggers/states
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -X DELETE https://HOSTNAME/api/sonar/loggers/states
Request Parameter
KeyRequiredTypeDescriptionNote
guidsOList of stringsLogger GUID listComma-separated GUID list

Error Responses

Success Response

{
  "failures": []
}

Error Responses

Logger is not found

HTTP status code 200

{
  "failures": [
    {
      "id": "c1dfe306-abba-4ed8-862b-0e98e2effcb6",
      "reason": "logger-not-found"
    }
  ]
}
No administrator privileges

HTTP status code 500

{
  "error_code": "illegal-state",
  "error_msg": "no-permission"
}