Remove Logger Models

Removes specified logger models. Administrator privileges are required to call this API.

HTTP Request

DELETE /api/sonar/logger-models
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -d guids="54157629-74f7-4d80-be5a-8cb8f0c71087" \
     -X DELETE https://HOSTNAME/api/sonar/logger-models
Request Parameter
KeyRequiredTypeDescriptionNote
guidsOList of stringsLogger model GUID listComma-separated GUID list

Success Response

{
  "failures": []
}

Error Responses

Logger model is not found

HTTP status code 200

{
  "failures": [
    {
      "id": "c1dfe306-abba-4ed8-862b-0e98e2effcb6",
      "reason": "logger-model-not-found"
    }
  ]
}
Logger model is referenced by other loggers

HTTP status code 200

{
  "failures": [
    {
      "id": "cd09ae6f-fbc3-11ed-9320-02d178f999a6",
      "name": "WTMP",
      "reason": "referenced-by-loggers"
    }
  ]
}
No administrator privileges

HTTP status code 500

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