Remove Parsers

Deletes the specified parsers. Cluster administrator privileges are required to call this API.

HTTP Request

DELETE /api/sonar/parsers
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -X DELETE \
     "https://HOSTNAME/api/sonar/parsers?codes=test"
Request Parameter
KeyRequiredTypeDescriptionNote
codesOStringParser code listComma-separated list

Success Response

{
  "failures": {}
}

Error Responses

Required argument is missing

HTTP status code 400

{
  "error_code": "null-argument",
  "error_msg": "codes should be not null"
}
Failed to delete parsers

HTTP status code 200

{
  "failures": {
    "unknown": ["not-exist"]
  }
}
  • failures (Map): List of parsers that failed to delete. An array of parser identifiers as keys and reasons for failed deletions as values.
    • not-exist: Parser is not found.
    • referenced-by-logger-model: referenced by the logger model
    • referenced-by-extractor-model: referenced by the extractor model