Governance Console
Mitigate detections
Apply a mitigation to a set of governance detections of a given detection type. When the mitigation type is omitted, the control's configured mitigation is used. The request is accepted for asynchronous processing.
post/api/v2/governance/detections/mitigate
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"attributes": {
"detection_ids": [
"3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
],
"detection_type": "unused_api_keys",
"mitigation_type": "revoke_api_key"
},
"type": "governance_control_detection"
}
}Response
Accepted
Changes
Changes to this operation have not been checked yet.