v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBList scanned assets metadata
Get a list of security scanned assets metadata for an organization.
Pagination
For the "List Vulnerabilities" endpoint, see the Pagination section.
Filtering
For the "List Vulnerabilities" endpoint, see the Filtering section.
Metadata
For the "List Vulnerabilities" endpoint, see the Metadata section.
Related endpoints
This endpoint returns additional metadata for cloud resources that is not available from the standard resource endpoints. To access a richer dataset, call this endpoint together with the relevant resource endpoint(s) and merge (join) their results using the resource identifier.
Hosts
To enrich host data, join the response from the Hosts endpoint with the response from the scanned-assets-metadata endpoint on the following key fields:
| ENDPOINT | JOIN KEY | TYPE |
|---|---|---|
| /api/v1/hosts | host_list.host_name | string |
| /api/v2/security/scanned-assets-metadata | data.attributes.asset.name | string |
Host Images
To enrich host image data, join the response from the Hosts endpoint with the response from the scanned-assets-metadata endpoint on the following key fields:
| ENDPOINT | JOIN KEY | TYPE |
|---|---|---|
| /api/v1/hosts | host_list.tags_by_source["Amazon Web Services"]["image"] | string |
| /api/v2/security/scanned-assets-metadata | data.attributes.asset.name | string |
Container Images
To enrich container image data, join the response from the Container Images endpoint with the response from the scanned-assets-metadata endpoint on the following key fields:
| ENDPOINT | JOIN KEY | TYPE |
|---|---|---|
| /api/v2/container_images | data.attributes.name@data.attributes.repo_digest | string |
| /api/v2/security/scanned-assets-metadata | data.attributes.asset.name | string |
Query parameters
Its value must come from the links section of the response of the first request. Do not manually edit it.
The page number to be retrieved. It should be equal to or greater than 1.
The cloud asset type
The type of the scanned asset.
The name of the scanned asset.
The origin of last success scan.
The environment of last success scan.
Response
OK
Example response
{
"data": [
{
"attributes": {
"asset": {
"name": "i-0fc7edef1ab26d7ef",
"type": "Host"
},
"first_success_timestamp": "2025-07-08T07:24:53Z",
"last_success": {
"env": "prod",
"origin": [
"production"
],
"timestamp": "2025-07-08T07:24:53Z"
}
},
"id": "Host|i-0fc7edef1ab26d7ef"
}
],
"links": {
"first": "https://api.datadoghq.com/api/v2/security/vulnerabilities?page%5Bnumber%5D=1&page%5Btoken%5D=b82cef018aab81ed1d4bb4xb35xxfc065da7efa685fbcecdbd338f3015e3afabbbfa3a911b4984_721ee28a-zecb-4e45-9960-c42065b574f4",
"last": "https://api.datadoghq.com/api/v2/security/vulnerabilities?page%5Bnumber%5D=15&page%5Btoken%5D=b82cef018aab81ed1d4bb4xb35xxfc065da7efa685fbcecdbd338f3015e3afabbbfa3a911b4984_721ee28a-zecb-4e45-9960-c42065b574f4",
"next": "https://api.datadoghq.com/api/v2/security/vulnerabilities?page%5Bnumber%5D=16&page%5Btoken%5D=b82cef018aab81ed1d4bb4xb35xxfc065da7efa685fbcecdbd338f3015e3afabbbfa3a911b4984_721ee28a-zecb-4e45-9960-c42065b574f4",
"previous": "https://api.datadoghq.com/api/v2/security/vulnerabilities?page%5Bnumber%5D=14&page%5Btoken%5D=b82cef018aab81ed1d4bb4xb35xxfc065da7efa685fbcecdbd338f3015e3afabbbfa3a911b4984_721ee28a-zecb-4e45-9960-c42065b574f4",
"self": "https://api.datadoghq.com/api/v2/security/vulnerabilities?filter%5Btool%5D=Infra"
},
"meta": {
"count": 150,
"token": "b82cef018aab81ed1d4bb4xb35xxfc065da7efa685fbcecdbd338f3015e3afabbbfa3a911b4984_721ee28a-zecb-4e45-9960-c42065b574f4",
"total": 152431
}
}