Unmutes multiple vulnerabilities. Unmuted vulnerabilities are displayed on the vulnerability list in Dynatrace.
The request consumes an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/securityProblems/unmute |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/securityProblems/unmute |
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.
Parameter | Type | Description | In | Required |
---|---|---|---|---|
body | Security | The JSON body of the request. Contains the un-muting information. | body | optional |
SecurityProblemsBulkUnmute
objectInformation on un-muting several security problems.
Element | Type | Description | Required |
---|---|---|---|
comment | string | A comment about the un-muting reason. | optional |
reason | string | The reason for un-muting the security problems.
| required |
securityProblemIds | string[] | The ids of the security problems to be un-muted. | required |
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": "AFFECTED","securityProblemIds": ["string"]}
Code | Type | Description |
---|---|---|
200 | Security | Success. The security problem(s) have been un-muted. |
4XX | Error | Client side error. |
5XX | Error | Server side error. |
SecurityProblemsBulkUnmuteResponse
objectResponse of un-muting several security problems.
Element | Type | Description |
---|---|---|
summary | Security | The summary of which security problems were un-muted and which already were un-muted previously. |
SecurityProblemBulkMutingSummary
objectSummary of (un-)muting a security problem.
Element | Type | Description |
---|---|---|
muteStateChangeTriggered | boolean | Whether a mute state change for the given security problem was triggered by this request. |
reason | string | Contains a reason, in case the requested operation was not executed.
|
securityProblemId | string | The id of the security problem that was (un-)muted. |
{"summary": [{"muteStateChangeTriggered": true,"reason": "ALREADY_MUTED","securityProblemId": "string"}]}
Unmute two vulnerabilities, 2919200225913269102
and 4537041069803077238
.
curl -X 'POST' 'https://mySampleEnv.live.dynatrace.com/api/v2/securityProblems/unmute' \-H 'accept: application/json; charset=utf-8' \-H 'Authorization: Api-Token [your_token]' \-H 'Content-Type: application/json; charset=utf-8' \-d '{"comment": "Example unmute bulk","reason": "AFFECTED","securityProblemIds": ["2919200225913269102", "4537041069803077238"]}'
https://mySampleEnv.live.dynatrace.com/api/v2/securityProblems/unmute
{"comment": "Example unmute bulk","reason": "AFFECTED","securityProblemIds": ["2919200225913269102", "4537041069803077238"]}
{"summary": [{"securityProblemId": "2919200225913269102","muteStateChangeTriggered": true},{"securityProblemId": "4537041069803077238","muteStateChangeTriggered": true}]}
Here, muteStateChangeTriggered
indicates the success of the operation.
Note that unmuting a vulnerability can take up to one minute.