Vulnerabilities API - POST mute a vulnerability

  • Reference

Mutes a specific vulnerability. Muted vulnerabilities are hidden from the list of vulnerabilities in Dynatrace.

The request consumes an application/json payload.

POSTSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/securityProblems/{id}/mute
Environment ActiveGateCluster ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/securityProblems/{id}/mute

Authentication

To execute this request, you need an access token with securityProblems.write scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
idstring

The ID of the requested security problem.

pathrequired
bodySecurityProblemMute

The JSON body of the request. Contains the muting information.

bodyoptional

Request body objects

The SecurityProblemMute object

Information on muting a security problem.

ElementTypeDescriptionRequired
commentstring

A comment about the muting reason.

optional
reasonstring

The reason for muting a security problem.

  • CONFIGURATION_NOT_AFFECTED
  • FALSE_POSITIVE
  • IGNORE
  • OTHER
  • VULNERABLE_CODE_NOT_IN_USE
required

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"comment": "string",
"reason": "CONFIGURATION_NOT_AFFECTED"
}

Response

Response codes

CodeTypeDescription
200-

Success. The security problem has been muted.

204-

Not executed. The security problem is already muted.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Example

Mute a vulnerability as the configuration isn't affected.

Curl

curl -X 'POST' 'https://mySampleEnv.live.dynatrace.com/api/v2/securityProblems/2919200225913269102/mute' \
-H 'accept: */*' \
-H 'Authorization: Api-Token [your_token]' \
-H 'Content-Type: application/json; charset=utf-8' \
-d '{
"comment": "Example comment",
"reason": "CONFIGURATION_NOT_AFFECTED"
}'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v2/securityProblems/2919200225913269102/mute

Response body

{
"comment": "Example comment",
"reason": "CONFIGURATION_NOT_AFFECTED"
}

Response code

200