Skip to content

Commit 49f321d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Rename the Cloud Workload Security tag to CSM Threats (#1608)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 4769577 commit 49f321d

File tree

64 files changed

+2630
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2630
-359
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-04-25 19:06:56.223159",
8-
"spec_repo_commit": "6c17af3e"
7+
"regenerated": "2024-04-26 19:29:36.858147",
8+
"spec_repo_commit": "0e208c14"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-04-25 19:06:56.250454",
13-
"spec_repo_commit": "6c17af3e"
12+
"regenerated": "2024-04-26 19:29:36.876210",
13+
"spec_repo_commit": "0e208c14"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30681,7 +30681,7 @@ paths:
3068130681
$ref: '#/components/responses/TooManyRequestsResponse'
3068230682
summary: Get all CSM Threats Agent rules
3068330683
tags:
30684-
- Cloud Workload Security
30684+
- CSM Threats
3068530685
post:
3068630686
description: Create a new Cloud Security Management Threats Agent rule with
3068730687
the given parameters.
@@ -30710,7 +30710,7 @@ paths:
3071030710
$ref: '#/components/responses/TooManyRequestsResponse'
3071130711
summary: Create a CSM Threats Agent rule
3071230712
tags:
30713-
- Cloud Workload Security
30713+
- CSM Threats
3071430714
x-codegen-request-body-name: body
3071530715
/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}:
3071630716
delete:
@@ -30729,7 +30729,7 @@ paths:
3072930729
$ref: '#/components/responses/TooManyRequestsResponse'
3073030730
summary: Delete a CSM Threats Agent rule
3073130731
tags:
30732-
- Cloud Workload Security
30732+
- CSM Threats
3073330733
get:
3073430734
description: Get the details of a specific Cloud Security Management Threats
3073530735
Agent rule.
@@ -30751,7 +30751,7 @@ paths:
3075130751
$ref: '#/components/responses/TooManyRequestsResponse'
3075230752
summary: Get a CSM Threats Agent rule
3075330753
tags:
30754-
- Cloud Workload Security
30754+
- CSM Threats
3075530755
patch:
3075630756
description: 'Update a specific Cloud Security Management Threats Agent rule.
3075730757

@@ -30785,7 +30785,7 @@ paths:
3078530785
$ref: '#/components/responses/TooManyRequestsResponse'
3078630786
summary: Update a CSM Threats Agent rule
3078730787
tags:
30788-
- Cloud Workload Security
30788+
- CSM Threats
3078930789
x-codegen-request-body-name: body
3079030790
/api/v2/remote_config/products/cws/policy/download:
3079130791
get:
@@ -30811,7 +30811,7 @@ paths:
3081130811
$ref: '#/components/responses/TooManyRequestsResponse'
3081230812
summary: Get the latest CSM Threats policy
3081330813
tags:
30814-
- Cloud Workload Security
30814+
- CSM Threats
3081530815
/api/v2/restriction_policy/{resource_id}:
3081630816
delete:
3081730817
description: Deletes the restriction policy associated with a specified resource.
@@ -32096,7 +32096,7 @@ paths:
3209632096
$ref: '#/components/responses/TooManyRequestsResponse'
3209732097
summary: Get the latest Cloud Workload Security policy
3209832098
tags:
32099-
- Cloud Workload Security
32099+
- CSM Threats
3210032100
/api/v2/security_monitoring/cloud_workload_security/agent_rules:
3210132101
get:
3210232102
description: Get the list of Agent rules.
@@ -32114,7 +32114,7 @@ paths:
3211432114
$ref: '#/components/responses/TooManyRequestsResponse'
3211532115
summary: Get all Cloud Workload Security Agent rules
3211632116
tags:
32117-
- Cloud Workload Security
32117+
- CSM Threats
3211832118
post:
3211932119
description: Create a new Agent rule with the given parameters.
3212032120
operationId: CreateCloudWorkloadSecurityAgentRule
@@ -32142,7 +32142,7 @@ paths:
3214232142
$ref: '#/components/responses/TooManyRequestsResponse'
3214332143
summary: Create a Cloud Workload Security Agent rule
3214432144
tags:
32145-
- Cloud Workload Security
32145+
- CSM Threats
3214632146
x-codegen-request-body-name: body
3214732147
/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}:
3214832148
delete:
@@ -32161,7 +32161,7 @@ paths:
3216132161
$ref: '#/components/responses/TooManyRequestsResponse'
3216232162
summary: Delete a Cloud Workload Security Agent rule
3216332163
tags:
32164-
- Cloud Workload Security
32164+
- CSM Threats
3216532165
get:
3216632166
description: Get the details of a specific Agent rule.
3216732167
operationId: GetCloudWorkloadSecurityAgentRule
@@ -32182,7 +32182,7 @@ paths:
3218232182
$ref: '#/components/responses/TooManyRequestsResponse'
3218332183
summary: Get a Cloud Workload Security Agent rule
3218432184
tags:
32185-
- Cloud Workload Security
32185+
- CSM Threats
3218632186
patch:
3218732187
description: 'Update a specific Agent rule.
3218832188

@@ -32216,7 +32216,7 @@ paths:
3221632216
$ref: '#/components/responses/TooManyRequestsResponse'
3221732217
summary: Update a Cloud Workload Security Agent rule
3221832218
tags:
32219-
- Cloud Workload Security
32219+
- CSM Threats
3222032220
x-codegen-request-body-name: body
3222132221
/api/v2/security_monitoring/configuration/security_filters:
3222232222
get:
@@ -36243,10 +36243,6 @@ tags:
3624336243
Cloud Cost Management accounts for AWS and Azure. See the [Cloud Cost Management
3624436244
page](https://docs.datadoghq.com/cloud_cost_management/) for more information.
3624536245
name: Cloud Cost Management
36246-
- description: Workload activity security rules for generating events using the Datadog
36247-
security Agent. See the [Setting up CSM Workload Security page](https://docs.datadoghq.com/security/cloud_security_management/setup/csm_workload_security/)
36248-
for more information.
36249-
name: Cloud Workload Security
3625036246
- description: Manage your Datadog Cloudflare integration directly through the Datadog
3625136247
API. See the [Cloudflare integration page](https://docs.datadoghq.com/integrations/cloudflare/)
3625236248
for more information.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-04-23T17:57:44.167Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "CSM Threats/Create a CSM Threats Agent rule returns \"Bad Request\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "5ac51b84f3dc48591cb2aee7e669dc09",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 201,
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": 598,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == sh\",\"name\":\"testcreateacsmthreatsagentrulereturnsbadrequestresponse1713895064\"},\"type\":\"agent_rule\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
39+
},
40+
"response": {
41+
"bodySize": 194,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 194,
45+
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `testcreateacsmthreatsagentrulereturnsbadrequestresponse1713895064` error: rule compilation error: field `sh` not found)\"]}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 217,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 400,
58+
"statusText": "Bad Request"
59+
},
60+
"startedDateTime": "2024-04-23T17:57:44.174Z",
61+
"time": 187
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-04-23T17:57:44.371Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"log": {
3+
"_recordingName": "CSM Threats/Create a CSM Threats Agent rule returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "c356160d7a03f82b66c813b9e60abf9b",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 197,
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": 598,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"name\":\"testcreateacsmthreatsagentrulereturnsokresponse1713895064\"},\"type\":\"agent_rule\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
39+
},
40+
"response": {
41+
"bodySize": 456,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 456,
45+
"text": "{\"data\":{\"id\":\"922-a60-32v\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1713895064438,\"creator\":{\"name\":\"\",\"handle\":\"[email protected]\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"name\":\"testcreateacsmthreatsagentrulereturnsokresponse1713895064\",\"updateDate\":1713895064438,\"updater\":{\"name\":\"\",\"handle\":\"[email protected]\"}}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 217,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2024-04-23T17:57:44.376Z",
61+
"time": 325
62+
},
63+
{
64+
"_id": "766fe1103c70d9fefa14dcb49ef1b655",
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": 546,
78+
"httpVersion": "HTTP/1.1",
79+
"method": "DELETE",
80+
"queryString": [],
81+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/922-a60-32v"
82+
},
83+
"response": {
84+
"bodySize": 0,
85+
"content": {
86+
"mimeType": "application/json",
87+
"size": 0
88+
},
89+
"cookies": [],
90+
"headers": [
91+
{
92+
"name": "content-type",
93+
"value": "application/json"
94+
}
95+
],
96+
"headersSize": 196,
97+
"httpVersion": "HTTP/1.1",
98+
"redirectURL": "",
99+
"status": 204,
100+
"statusText": "No Content"
101+
},
102+
"startedDateTime": "2024-04-23T17:57:44.723Z",
103+
"time": 318
104+
}
105+
],
106+
"pages": [],
107+
"version": "1.2"
108+
}
109+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-04-23T17:57:45.044Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "CSM Threats/Create a Cloud Workload Security Agent rule returns \"Bad Request\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "8994593c4c978535429ff708d2b005d5",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 213,
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": 626,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"Test Agent rule\",\"enabled\":true,\"expression\":\"open.file.path = sh\",\"name\":\"testcreateacloudworkloadsecurityagentrulereturnsbadrequestresponse1713895065\"},\"type\":\"agent_rule\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/cloud_workload_security/agent_rules"
39+
},
40+
"response": {
41+
"bodySize": 223,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 223,
45+
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `testcreateacloudworkloadsecurityagentrulereturnsbadrequestresponse1713895065` error: syntax error `1:18: unexpected token \\\"sh\\\" (expected \\\"~\\\")`)\"]}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 654,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 400,
58+
"statusText": "Bad Request"
59+
},
60+
"startedDateTime": "2024-04-23T17:57:45.048Z",
61+
"time": 164
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-04-23T17:57:45.232Z"

0 commit comments

Comments
 (0)