Vulnerabilities API - POST mute a vulnerability
Mutes a specific vulnerability. Muted vulnerabilities are hidden from the list of vulnerabilities in Dynatrace.
The request consumes an application/json
payload.
POST | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v2/securityProblems/{id}/mute |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/securityProblems/{id}/mute | |
Environment and Cluster ActiveGate (default port 9999) | https://{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
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The ID of the requested security problem. | path | required |
body | SecurityProblemMute | The JSON body of the request. Contains the muting information. | body | optional |
Request body objects
The SecurityProblemMute
object
Information on muting a security problem.
Element | Type | Description | Required |
---|---|---|---|
comment | string | A comment about the muting reason. | optional |
reason | string | The reason for muting a security problem.
| 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
Code | Type | Description |
---|---|---|
200 | - | Success. The security problem has been muted. |
204 | - | Not executed. The security problem is already muted. |
4XX | ErrorEnvelope | Client side error. |
5XX | ErrorEnvelope | Server side error. |