For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/ja/api/latest/security-monitoring/list-findings.md. A documentation index is available at /llms.txt.
Language
Datadog site

検出結果の一覧表示

警告Note: This endpoint uses the legacy security findings data model and is planned for deprecation. Use the search security findings endpoint, which is based on the new security findings schema, to search security findings. If you have any feedback, contact Datadog support.
GEThttps://api.datadoghq.com/api/v2/posture_management/findingshttps://api.us3.datadoghq.com/api/v2/posture_management/findingshttps://api.us5.datadoghq.com/api/v2/posture_management/findingshttps://api.datadoghq.eu/api/v2/posture_management/findingshttps://api.ap1.datadoghq.com/api/v2/posture_management/findingshttps://api.ap2.datadoghq.com/api/v2/posture_management/findingshttps://api.uk1.datadoghq.com/api/v2/posture_management/findingshttps://api.ddog-gov.com/api/v2/posture_management/findingshttps://api.us2.ddog-gov.com/api/v2/posture_management/findings

概要

検出結果の一覧を取得します。これには、誤構成とアイデンティティリスクの両方が含まれます。

注: アイデンティティリスクのみをフィルタリングして返すには、次のクエリパラメーターを追加します:「?filter[tags]=dd_rule_type:ciem」

フィルタリング

URL にクエリパラメーターを追加することで、フィルターを適用できます。

  • 単一のフィルターの使用:「?filter[attribute_key]=attribute_value」
  • フィルターの連鎖:「?filter[attribute_key]=attribute_value&filter[attribute_key]=attribute_value...」
  • タグによるフィルタリング:「?filter[tags]=tag_key:tag_value&filter[tags]=tag_key_2:tag_value_2」

ここで、「attribute_key」には、以下で説明するフィルターキーのいずれかを指定できます。

「integer」型のクエリパラメーターは、比較演算子 (>、>=、<、<=) をサポートしています。これは、「evaluation_changed_at」または「resource_discovery_timestamp」でフィルタリングする場合に特に便利です。例:「?filter[evaluation_changed_at]=>20123123121」。

文字列に対して否定演算子を使用することもできます。たとえば、AWS 以外のリソースをフィルタリングするには、「filter[resource_type]=-aws*」を使用します。

演算子は等号の後に指定する必要があります。たとえば、「>=」演算子でフィルターをかけるには、等号の後に演算子を追加します:「filter[evaluation_changed_at]=>=1678809373257」。

クエリパラメーターは、ドキュメントに記載されているもののみを使用し、正しい型の値を指定する必要があります。重複するクエリパラメーター (例:「filter[status]=low&filter[status]=info」) は許可されていません。

追加の拡張フィールド

一部の検出結果では、追加の拡張フィールドを利用できます。

このデータは、リクエストにクエリパラメーター「?detailed_findings=true」を含めると利用できるようになります。

検出結果では、以下のフィールドを利用できます。 -「external_id」: 検出結果に関連するリソースの外部 ID。 -「description」: 検出結果の説明と修復手順。 -「datadog_link」: 検出結果への Datadog 相対リンク。 -「ip_addresses」: 検出結果に関連するリソースのプライベート IP アドレスの一覧。

応答

応答には、検出結果オブジェクトの配列、ページネーションメタデータ、クエリに一致するアイテム数が含まれます。

各検出結果オブジェクトには、以下の情報が含まれます。

-「GetFinding」リクエストで使用して、検出結果の詳細をすべて取得できる検出結果 ID。

  • ステータス、評価、高レベルのリソース詳細、ミュート状態、ルールの詳細などのコア属性。 -「evaluation_changed_at」および「resource_discovery_date」のタイムスタンプ。
  • 関連タグの配列。

OAuth apps require the security_monitoring_findings_read authorization scope to access this endpoint.

引数

クエリ文字列

名前
タイプ
説明
page[limit]
integer

Limit the number of findings returned. Must be <= 1000.

Default: 100
snapshot_timestamp
integer

Return findings for a given snapshot of time (Unix ms).

page[cursor]
string

Return the next page of findings pointed to by the cursor.

filter[tags]
string

Return findings that have these associated tags (repeatable).

filter[evaluation_changed_at]
string

Return findings that have changed from pass to fail or vice versa on a specified date (Unix ms) or date range (using comparison operators).

filter[muted]
boolean

Set to true to return findings that are muted. Set to false to return unmuted findings.

filter[rule_id]
string

Return findings for the specified rule ID.

filter[rule_name]
string

Return findings for the specified rule.

filter[resource_type]
string

Return only findings for the specified resource type.

filter[@resource_id]
string

Return only findings for the specified resource id.

filter[discovery_timestamp]
string

Return findings that were found on a specified date (Unix ms) or date range (using comparison operators).

filter[evaluation]
enum

Return only pass or fail findings.

Allowed enum values: pass, fail
filter[status]
enum

Return only findings with the specified status.

Allowed enum values: critical, high, medium, low, info
filter[vulnerability_type]
array

Return findings that match the selected vulnerability types (repeatable).

detailed_findings
boolean

Return additional fields for some findings.

応答

OK

The expected response schema when listing findings.

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

Array of findings.

meta [required]
object

Metadata for pagination.

コード例

検出結果の一覧表示
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# 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 GET "https://api.${DD_SITE}/api/v2/posture_management/findings" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"