Skip to content

Commit 545b75c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fbdd97d of spec repo
1 parent 246edea commit 545b75c

10 files changed

Lines changed: 420 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4241,6 +4241,18 @@ components:
42414241
description: Name of the connection
42424242
example: My AWS Connection
42434243
type: string
4244+
tags:
4245+
description: |-
4246+
Tags associated with the connection. Each tag must follow the `key:value` format.
4247+
The `default` tag key is reserved.
4248+
example:
4249+
- env:prod
4250+
- team:action-platform
4251+
items:
4252+
description: A non-reserved tag in `key:value` format.
4253+
pattern: "^(?!default:)[A-Za-z0-9._/-]+:[A-Za-z0-9._/-]+$"
4254+
type: string
4255+
type: array
42444256
required:
42454257
- name
42464258
- integration
@@ -4254,6 +4266,18 @@ components:
42544266
description: Name of the connection
42554267
example: My AWS Connection
42564268
type: string
4269+
tags:
4270+
description: |-
4271+
Tags associated with the connection. Each tag must follow the `key:value` format.
4272+
The `default` tag key is reserved.
4273+
example:
4274+
- env:prod
4275+
- team:action-platform
4276+
items:
4277+
description: A non-reserved tag in `key:value` format.
4278+
pattern: "^(?!default:)[A-Za-z0-9._/-]+:[A-Za-z0-9._/-]+$"
4279+
type: string
4280+
type: array
42574281
type: object
42584282
ActionConnectionData:
42594283
description: Data related to the connection.
@@ -121471,6 +121495,9 @@ paths:
121471121495
type: AWSAssumeRole
121472121496
type: AWS
121473121497
name: My AWS Connection
121498+
tags:
121499+
- env:prod
121500+
- team:action-platform
121474121501
type: action_connection
121475121502
schema:
121476121503
$ref: "#/components/schemas/CreateActionConnectionRequest"
@@ -121487,6 +121514,9 @@ paths:
121487121514
integration:
121488121515
type: AWS
121489121516
name: My AWS Connection
121517+
tags:
121518+
- env:prod
121519+
- team:action-platform
121490121520
id: 00000000-0000-0000-0000-000000000001
121491121521
type: action_connection
121492121522
schema:
@@ -121564,6 +121594,9 @@ paths:
121564121594
integration:
121565121595
type: AWS
121566121596
name: My AWS Connection
121597+
tags:
121598+
- env:prod
121599+
- team:action-platform
121567121600
id: 00000000-0000-0000-0000-000000000002
121568121601
type: action_connection
121569121602
schema:
@@ -121612,6 +121645,9 @@ paths:
121612121645
integration:
121613121646
type: AWS
121614121647
name: My AWS Connection
121648+
tags:
121649+
- env:prod
121650+
- team:action-platform
121615121651
type: action_connection
121616121652
schema:
121617121653
$ref: "#/components/schemas/UpdateActionConnectionRequest"
@@ -121629,6 +121665,9 @@ paths:
121629121665
integration:
121630121666
type: AWS
121631121667
name: My AWS Connection
121668+
tags:
121669+
- env:prod
121670+
- team:action-platform
121632121671
id: 00000000-0000-0000-0000-000000000003
121633121672
type: action_connection
121634121673
schema:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-08-12T18:31:44.185Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"log": {
3+
"_recordingName": "Action Connection/Create a new Action Connection with tags returns \"Successfully created Action Connection\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "991b6b3459f9134c429dcb6bed74df8c",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 342,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 576,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testcreateanewactionconnectionwithtagsreturnssuccessfullycreatedactionconnectionresponse1786559504\",\"tags\":[\"env:test\",\"team:action-platform\"]},\"type\":\"action_connection\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/actions/connections"
39+
},
40+
"response": {
41+
"bodySize": 549,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 549,
45+
"text": "{\"data\":{\"id\":\"9cb71aff-7c5c-49fd-9465-21d1aa68ef4d\",\"type\":\"action_connection\",\"attributes\":{\"acting_user_can_resolve\":false,\"external_secrets_manager\":null,\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"afcfed401dc84bb5b18588b09ea0e16f\",\"principal_id\":\"464622532012\",\"role\":\"MyRoleUpdated\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"is_favorite\":false,\"name\":\"Cassette Connection testcreateanewactionconnectionwithtagsreturnssuccessfullycreatedactionconnectionresponse1786559504\",\"tags\":[\"env:test\",\"team:action-platform\"]}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 662,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 201,
58+
"statusText": "Created"
59+
},
60+
"startedDateTime": "2026-08-12T18:31:44.407Z",
61+
"time": 664
62+
},
63+
{
64+
"_id": "87c8d1dff545b69d9e1ffaeee4f076d5",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 0,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "*/*"
75+
}
76+
],
77+
"headersSize": 549,
78+
"httpVersion": "HTTP/1.1",
79+
"method": "DELETE",
80+
"queryString": [],
81+
"url": "https://api.datadoghq.com/api/v2/actions/connections/9cb71aff-7c5c-49fd-9465-21d1aa68ef4d"
82+
},
83+
"response": {
84+
"bodySize": 0,
85+
"content": {
86+
"mimeType": "text/plain",
87+
"size": 0
88+
},
89+
"cookies": [],
90+
"headers": [],
91+
"headersSize": 601,
92+
"httpVersion": "HTTP/1.1",
93+
"redirectURL": "",
94+
"status": 204,
95+
"statusText": "No Content"
96+
},
97+
"startedDateTime": "2026-08-12T18:31:45.099Z",
98+
"time": 302
99+
}
100+
],
101+
"pages": [],
102+
"version": "1.2"
103+
}
104+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2026-08-12T18:31:45.411Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"log": {
3+
"_recordingName": "Action Connection/Update an existing Action Connection with tags returns \"Successfully updated Action Connection\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "20f8ced73e5e47dfd6feefbced4b7acc",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 296,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 576,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRole\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"name\":\"Cassette Connection testupdateanexistingactionconnectionwithtagsreturnssuccessfullyupdatedactionconnectionrespon1786559505\"},\"type\":\"action_connection\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/actions/connections"
39+
},
40+
"response": {
41+
"bodySize": 503,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 503,
45+
"text": "{\"data\":{\"id\":\"b8eebb8c-fee7-4d46-8763-86f72dc5ae9c\",\"type\":\"action_connection\",\"attributes\":{\"acting_user_can_resolve\":false,\"external_secrets_manager\":null,\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"e3e19d340f504a90b3895dab41aeed59\",\"principal_id\":\"464622532012\",\"role\":\"MyRole\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"is_favorite\":false,\"name\":\"Cassette Connection testupdateanexistingactionconnectionwithtagsreturnssuccessfullyupdatedactionconnectionrespon1786559505\"}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 662,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 201,
58+
"statusText": "Created"
59+
},
60+
"startedDateTime": "2026-08-12T18:31:45.418Z",
61+
"time": 667
62+
},
63+
{
64+
"_id": "66dc508bb4014e996a2b7a922d3fce2e",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 207,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "application/json"
75+
},
76+
{
77+
"_fromType": "array",
78+
"name": "content-type",
79+
"value": "application/json"
80+
}
81+
],
82+
"headersSize": 614,
83+
"httpVersion": "HTTP/1.1",
84+
"method": "PATCH",
85+
"postData": {
86+
"mimeType": "application/json",
87+
"params": [],
88+
"text": "{\"data\":{\"attributes\":{\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"role\":\"MyRole\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"tags\":[\"env:test\",\"team:action-platform\"]},\"type\":\"action_connection\"}}"
89+
},
90+
"queryString": [],
91+
"url": "https://api.datadoghq.com/api/v2/actions/connections/b8eebb8c-fee7-4d46-8763-86f72dc5ae9c"
92+
},
93+
"response": {
94+
"bodySize": 758,
95+
"content": {
96+
"mimeType": "application/vnd.api+json",
97+
"size": 758,
98+
"text": "{\"data\":{\"id\":\"b8eebb8c-fee7-4d46-8763-86f72dc5ae9c\",\"type\":\"action_connection\",\"attributes\":{\"acting_user_can_resolve\":false,\"created_at\":\"2026-08-12 18:31:46.023975 +0000 UTC\",\"external_secrets_manager\":null,\"integration\":{\"credentials\":{\"account_id\":\"123456789123\",\"external_id\":\"e3e19d340f504a90b3895dab41aeed59\",\"principal_id\":\"464622532012\",\"role\":\"MyRole\",\"type\":\"AWSAssumeRole\"},\"type\":\"AWS\"},\"is_favorite\":false,\"last_updated\":\"2026-08-12 18:31:46.678506 +0000 UTC\",\"name\":\"Cassette Connection testupdateanexistingactionconnectionwithtagsreturnssuccessfullyupdatedactionconnectionrespon1786559505\",\"tags\":[\"env:test\",\"team:action-platform\"]},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"created_by\"}}}}}"
99+
},
100+
"cookies": [],
101+
"headers": [
102+
{
103+
"name": "content-type",
104+
"value": "application/vnd.api+json"
105+
}
106+
],
107+
"headersSize": 662,
108+
"httpVersion": "HTTP/1.1",
109+
"redirectURL": "",
110+
"status": 200,
111+
"statusText": "OK"
112+
},
113+
"startedDateTime": "2026-08-12T18:31:46.090Z",
114+
"time": 673
115+
},
116+
{
117+
"_id": "73d326b3483b334c4d82ac751bd587a3",
118+
"_order": 0,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 0,
122+
"cookies": [],
123+
"headers": [
124+
{
125+
"_fromType": "array",
126+
"name": "accept",
127+
"value": "*/*"
128+
}
129+
],
130+
"headersSize": 549,
131+
"httpVersion": "HTTP/1.1",
132+
"method": "DELETE",
133+
"queryString": [],
134+
"url": "https://api.datadoghq.com/api/v2/actions/connections/b8eebb8c-fee7-4d46-8763-86f72dc5ae9c"
135+
},
136+
"response": {
137+
"bodySize": 0,
138+
"content": {
139+
"mimeType": "text/plain",
140+
"size": 0
141+
},
142+
"cookies": [],
143+
"headers": [],
144+
"headersSize": 601,
145+
"httpVersion": "HTTP/1.1",
146+
"redirectURL": "",
147+
"status": 204,
148+
"statusText": "No Content"
149+
},
150+
"startedDateTime": "2026-08-12T18:31:46.768Z",
151+
"time": 287
152+
}
153+
],
154+
"pages": [],
155+
"version": "1.2"
156+
}
157+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* Create a new Action Connection with tags returns "Successfully created Action Connection" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.ActionConnectionApi(configuration);
9+
10+
const params: v2.ActionConnectionApiCreateActionConnectionRequest = {
11+
body: {
12+
data: {
13+
type: "action_connection",
14+
attributes: {
15+
name: "Cassette Connection exampleactionconnection",
16+
integration: {
17+
type: "AWS",
18+
credentials: {
19+
type: "AWSAssumeRole",
20+
role: "MyRoleUpdated",
21+
accountId: "123456789123",
22+
},
23+
},
24+
tags: ["env:test", "team:action-platform"],
25+
},
26+
},
27+
},
28+
};
29+
30+
apiInstance
31+
.createActionConnection(params)
32+
.then((data: v2.CreateActionConnectionResponse) => {
33+
console.log(
34+
"API called successfully. Returned data: " + JSON.stringify(data)
35+
);
36+
})
37+
.catch((error: any) => console.error(error));

0 commit comments

Comments
 (0)