Skip to content

Commit e750136

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f3350c8 of spec repo
1 parent 968a8f8 commit e750136

File tree

16 files changed

+376
-10
lines changed

16 files changed

+376
-10
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "55aea96",
3-
"generated": "2025-08-25 15:34:45.693"
2+
"spec_repo_commit": "f3350c8",
3+
"generated": "2025-08-25 17:13:26.727"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46081,7 +46081,7 @@ paths:
4608146081
$ref: '#/components/responses/NotAuthorizedResponse'
4608246082
'429':
4608346083
$ref: '#/components/responses/TooManyRequestsResponse'
46084-
summary: Get AWS Scan Options
46084+
summary: List AWS Scan Options
4608546085
tags:
4608646086
- Agentless Scanning
4608746087
post:
@@ -46133,6 +46133,27 @@ paths:
4613346133
summary: Delete AWS Scan Options
4613446134
tags:
4613546135
- Agentless Scanning
46136+
get:
46137+
description: Fetches the Agentless scan options for an activated account.
46138+
operationId: GetAwsScanOptions
46139+
parameters:
46140+
- $ref: '#/components/parameters/AwsAccountId'
46141+
responses:
46142+
'200':
46143+
content:
46144+
application/json:
46145+
schema:
46146+
$ref: '#/components/schemas/AwsScanOptionsResponse'
46147+
description: OK
46148+
'403':
46149+
$ref: '#/components/responses/NotAuthorizedResponse'
46150+
'404':
46151+
$ref: '#/components/responses/NotFoundResponse'
46152+
'429':
46153+
$ref: '#/components/responses/TooManyRequestsResponse'
46154+
summary: Get AWS Scan Options
46155+
tags:
46156+
- Agentless Scanning
4613646157
patch:
4613746158
description: Update the Agentless scan options for an activated account.
4613846159
operationId: UpdateAwsScanOptions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-08-24T22:54:50.008Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"log": {
3+
"_recordingName": "Agentless Scanning/Get AWS Scan Options returns \"Not Found\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "0cd547be937c79e1e846205b41a28975",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 542,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/agentless_scanning/accounts/aws/404404404404"
29+
},
30+
"response": {
31+
"bodySize": 96,
32+
"content": {
33+
"mimeType": "application/vnd.api+json",
34+
"size": 96,
35+
"text": "{\"errors\":[{\"status\":\"404\",\"detail\":\"no aws scan options found for subscription 404404404404\"}]}"
36+
},
37+
"cookies": [],
38+
"headers": [
39+
{
40+
"name": "content-type",
41+
"value": "application/vnd.api+json"
42+
}
43+
],
44+
"headersSize": 524,
45+
"httpVersion": "HTTP/1.1",
46+
"redirectURL": "",
47+
"status": 404,
48+
"statusText": "Not Found"
49+
},
50+
"startedDateTime": "2025-08-24T22:54:50.012Z",
51+
"time": 455
52+
}
53+
],
54+
"pages": [],
55+
"version": "1.2"
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-03-01T20:02:08.552Z"
1+
"2025-08-24T22:56:14.095Z"

cassettes/v2/Agentless-Scanning_730042230/Get-AWS-Scan-Options-returns-OK-response_2545056747/recording.har

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"url": "https://api.datadoghq.com/api/v2/agentless_scanning/accounts/aws"
2929
},
3030
"response": {
31-
"bodySize": 157,
31+
"bodySize": 302,
3232
"content": {
3333
"mimeType": "application/vnd.api+json",
34-
"size": 157,
35-
"text": "{\"data\":[{\"id\":\"000000000002\",\"type\":\"aws_scan_options\",\"attributes\":{\"lambda\":false,\"sensitive_data\":false,\"vuln_containers_os\":true,\"vuln_host_os\":true}}]}"
34+
"size": 302,
35+
"text": "{\"data\":[{\"id\":\"000000000002\",\"type\":\"aws_scan_options\",\"attributes\":{\"lambda\":false,\"sensitive_data\":false,\"vuln_containers_os\":true,\"vuln_host_os\":true}},{\"id\":\"123456789012\",\"type\":\"aws_scan_options\",\"attributes\":{\"lambda\":true,\"sensitive_data\":true,\"vuln_containers_os\":true,\"vuln_host_os\":true}}]}"
3636
},
3737
"cookies": [],
3838
"headers": [
@@ -47,8 +47,51 @@
4747
"status": 200,
4848
"statusText": "OK"
4949
},
50-
"startedDateTime": "2025-03-01T20:02:08.558Z",
51-
"time": 323
50+
"startedDateTime": "2025-08-24T22:56:14.100Z",
51+
"time": 452
52+
},
53+
{
54+
"_id": "007e9c6b9af2f95aa4e9fccd2a3dc23b",
55+
"_order": 0,
56+
"cache": {},
57+
"request": {
58+
"bodySize": 0,
59+
"cookies": [],
60+
"headers": [
61+
{
62+
"_fromType": "array",
63+
"name": "accept",
64+
"value": "application/json"
65+
}
66+
],
67+
"headersSize": 542,
68+
"httpVersion": "HTTP/1.1",
69+
"method": "GET",
70+
"queryString": [],
71+
"url": "https://api.datadoghq.com/api/v2/agentless_scanning/accounts/aws/000000000002"
72+
},
73+
"response": {
74+
"bodySize": 155,
75+
"content": {
76+
"mimeType": "application/vnd.api+json",
77+
"size": 155,
78+
"text": "{\"data\":{\"id\":\"000000000002\",\"type\":\"aws_scan_options\",\"attributes\":{\"lambda\":false,\"sensitive_data\":false,\"vuln_containers_os\":true,\"vuln_host_os\":true}}}"
79+
},
80+
"cookies": [],
81+
"headers": [
82+
{
83+
"name": "content-type",
84+
"value": "application/vnd.api+json"
85+
}
86+
],
87+
"headersSize": 571,
88+
"httpVersion": "HTTP/1.1",
89+
"redirectURL": "",
90+
"status": 200,
91+
"statusText": "OK"
92+
},
93+
"startedDateTime": "2025-08-24T22:56:14.559Z",
94+
"time": 451
5295
}
5396
],
5497
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-08-24T22:53:40.600Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"log": {
3+
"_recordingName": "Agentless Scanning/List AWS Scan Options returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "2cb6ecfe386c3349268926da480a6b5d",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 530,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/agentless_scanning/accounts/aws"
29+
},
30+
"response": {
31+
"bodySize": 302,
32+
"content": {
33+
"mimeType": "application/vnd.api+json",
34+
"size": 302,
35+
"text": "{\"data\":[{\"id\":\"000000000002\",\"type\":\"aws_scan_options\",\"attributes\":{\"lambda\":false,\"sensitive_data\":false,\"vuln_containers_os\":true,\"vuln_host_os\":true}},{\"id\":\"123456789012\",\"type\":\"aws_scan_options\",\"attributes\":{\"lambda\":true,\"sensitive_data\":true,\"vuln_containers_os\":true,\"vuln_host_os\":true}}]}"
36+
},
37+
"cookies": [],
38+
"headers": [
39+
{
40+
"name": "content-type",
41+
"value": "application/vnd.api+json"
42+
}
43+
],
44+
"headersSize": 525,
45+
"httpVersion": "HTTP/1.1",
46+
"redirectURL": "",
47+
"status": 200,
48+
"statusText": "OK"
49+
},
50+
"startedDateTime": "2025-08-24T22:53:40.604Z",
51+
"time": 554
52+
}
53+
],
54+
"pages": [],
55+
"version": "1.2"
56+
}
57+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Get AWS Scan Options returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.AgentlessScanningApi(configuration);
9+
10+
// there is a valid "aws_scan_options" in the system
11+
const AWS_SCAN_OPTIONS_ID = process.env.AWS_SCAN_OPTIONS_ID as string;
12+
13+
const params: v2.AgentlessScanningApiGetAwsScanOptionsRequest = {
14+
accountId: AWS_SCAN_OPTIONS_ID,
15+
};
16+
17+
apiInstance
18+
.getAwsScanOptions(params)
19+
.then((data: v2.AwsScanOptionsResponse) => {
20+
console.log(
21+
"API called successfully. Returned data: " + JSON.stringify(data)
22+
);
23+
})
24+
.catch((error: any) => console.error(error));

examples/v2/agentless-scanning/ListAwsScanOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Get AWS Scan Options returns "OK" response
2+
* List AWS Scan Options returns "OK" response
33
*/
44

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

0 commit comments

Comments
 (0)