Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
671 changes: 461 additions & 210 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2025-10-15T08:41:14.545Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"log": {
"_recordingName": "Security Monitoring/List scanned assets metadata returns \"Not found: asset not found\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "62e254343c98aa74afed678d589a7636",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
}
],
"headersSize": 581,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
{
"name": "page",
"value": {
"number": "1",
"token": "unknown"
}
}
],
"url": "https://api.datadoghq.com/api/v2/security/scanned-assets-metadata?page%5Btoken%5D=unknown&page%5Bnumber%5D=1"
},
"response": {
"bodySize": 65,
"content": {
"mimeType": "application/vnd.api+json",
"size": 65,
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Unexpected internal error\"}]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 660,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 404,
"statusText": "Not Found"
},
"startedDateTime": "2025-10-15T08:41:14.549Z",
"time": 450
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2025-10-15T08:42:14.735Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"log": {
"_recordingName": "Security Monitoring/List scanned assets metadata returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.5"
},
"entries": [
{
"_id": "df97e37bed679b44c3310ea3c5e9a0bf",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json"
}
],
"headersSize": 538,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/security/scanned-assets-metadata"
},
"response": {
"bodySize": 11,
"content": {
"mimeType": "application/vnd.api+json",
"size": 11,
"text": "{\"data\":[]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/vnd.api+json"
}
],
"headersSize": 660,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2025-10-15T08:42:14.739Z",
"time": 651
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2025-01-31T12:04:52.159Z"
"2025-10-14T13:43:32.350Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"entries": [
{
"_id": "c6d229b3cd796e5e593c6ebc987186ec",
"_id": "9910b6cc2c33c0371794ef62062d3ec2",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -21,7 +21,7 @@
"value": "application/json"
}
],
"headersSize": 559,
"headersSize": 568,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
Expand All @@ -33,14 +33,14 @@
}
}
],
"url": "https://api.datadoghq.com/api/v2/security/assets?page%5Btoken%5D=unknown&page%5Bnumber%5D=1"
"url": "https://api.datadoghq.com/api/v2/security/vulnerable-assets?page%5Btoken%5D=unknown&page%5Bnumber%5D=1"
},
"response": {
"bodySize": 131,
"bodySize": 65,
"content": {
"mimeType": "application/vnd.api+json",
"size": 131,
"text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"rpc error: code = Internal desc = no cached result set found for queryID: unknown\"}]}"
"size": 65,
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Unexpected internal error\"}]}"
},
"cookies": [],
"headers": [
Expand All @@ -55,8 +55,8 @@
"status": 404,
"statusText": "Not Found"
},
"startedDateTime": "2025-01-31T12:04:52.166Z",
"time": 470
"startedDateTime": "2025-10-14T13:43:32.354Z",
"time": 514
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2025-01-31T12:05:04.773Z"
"2025-10-14T13:43:52.800Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"entries": [
{
"_id": "8b691c923faa0d44ea73715eceb660c3",
"_id": "e8a64c256dc34b4416b3c26a580df140",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -21,7 +21,7 @@
"value": "application/json"
}
],
"headersSize": 631,
"headersSize": 642,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
Expand All @@ -34,7 +34,7 @@
}
}
],
"url": "https://api.datadoghq.com/api/v2/security/assets?filter%5Btype%5D=Host&filter%5Brepository_url%5D=github.com%2Fdatadog%2Fdd-go&filter%5Brisks.in_production%5D=true"
"url": "https://api.datadoghq.com/api/v2/security/vulnerable-assets?filter%5Btype%5D=Host&filter%5Brepository_url%5D=github.com%2Fdatadog%2Fdd-go&filter%5Brisks.in_production%5D=true"
},
"response": {
"bodySize": 11,
Expand All @@ -50,14 +50,14 @@
"value": "application/vnd.api+json"
}
],
"headersSize": 660,
"headersSize": 659,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2025-01-31T12:05:04.782Z",
"time": 613
"startedDateTime": "2025-10-14T13:43:52.805Z",
"time": 851
}
],
"pages": [],
Expand Down
18 changes: 18 additions & 0 deletions examples/v2/security-monitoring/ListScannedAssetsMetadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* List scanned assets metadata returns "OK" response
*/

import { client, v2 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration();
configuration.unstableOperations["v2.listScannedAssetsMetadata"] = true;
const apiInstance = new v2.SecurityMonitoringApi(configuration);

apiInstance
.listScannedAssetsMetadata()
.then((data: v2.ScannedAssetsMetadata) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
Loading