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

Update a detection

警告Note: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.
PATCHhttps://api.datadoghq.com/api/v2/governance/detections/{detection_id}https://api.us3.datadoghq.com/api/v2/governance/detections/{detection_id}https://api.us5.datadoghq.com/api/v2/governance/detections/{detection_id}https://api.datadoghq.eu/api/v2/governance/detections/{detection_id}https://api.ap1.datadoghq.com/api/v2/governance/detections/{detection_id}https://api.ap2.datadoghq.com/api/v2/governance/detections/{detection_id}https://api.uk1.datadoghq.com/api/v2/governance/detections/{detection_id}https://api.ddog-gov.com/api/v2/governance/detections/{detection_id}https://api.us2.ddog-gov.com/api/v2/governance/detections/{detection_id}

概要

Update a governance detection by its unique identifier. Only the attributes present in the request are modified, allowing a detection to be acknowledged as an exception, reopened, reassigned, or deferred for mitigation.

This endpoint requires the governance_console_read permission.

引数

パスパラメーター

名前
タイプ
説明
detection_id [required]
string

The unique identifier of the detection.

リクエスト

Body Data (required)

フィールド
タイプ
説明
data [required]
object

The data of a governance control detection update request.

応答

OK

A single governance control detection.

フィールド
タイプ
説明
data [required]
object

A governance control detection resource.

コード例

Update a detection
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF
# Path parameters
export detection_id="3f9b2c1a-8d4e-4a6b-9c2f-1e7d5a0b3c4d"

# 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 PATCH "https://api.${DD_SITE}/api/v2/governance/detections/${detection_id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "assigned_to": "11111111-2222-3333-4444-555555555555",
      "state": "exception"
    },
    "type": "governance_control_detection"
  }
}
EOF