For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/ko/api/latest/governance-console/mitigate-detections.md. A documentation index is available at /llms.txt.
Language
Datadog site

탐지 완화

경고Note: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.
POSThttps://api.datadoghq.com/api/v2/governance/detections/mitigatehttps://api.us3.datadoghq.com/api/v2/governance/detections/mitigatehttps://api.us5.datadoghq.com/api/v2/governance/detections/mitigatehttps://api.datadoghq.eu/api/v2/governance/detections/mitigatehttps://api.ap1.datadoghq.com/api/v2/governance/detections/mitigatehttps://api.ap2.datadoghq.com/api/v2/governance/detections/mitigatehttps://api.uk1.datadoghq.com/api/v2/governance/detections/mitigatehttps://api.ddog-gov.com/api/v2/governance/detections/mitigatehttps://api.us2.ddog-gov.com/api/v2/governance/detections/mitigate

개요

지정된 탐지 유형의 거버넌스 탐지 세트에 완화 조치를 적용합니다. 완화 유형이 생략된 경우 제어에 구성된 완화 유형이 사용됩니다. 요청이 비동기 처리를 위해 수락됩니다.

This endpoint requires the governance_console_read permission.

요청

Body Data (required)

항목
유형
설명
data [required]
object

거버넌스 탐지 세트를 완화하도록 요청합니다.

응답

Accepted

코드 예시

탐지 완화
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/governance/detections/mitigate" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "detection_ids": [
        "3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"
      ],
      "detection_type": "unused_api_keys",
      "mitigation_parameters": {},
      "mitigation_type": "revoke_api_key"
    },
    "type": "governance_control_detection"
  }
}
EOF