Skip to content

Commit 6ad9521

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit eddc6169 of spec repo
1 parent 613af82 commit 6ad9521

File tree

65 files changed

+2929
-318
lines changed

Some content is hidden

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

65 files changed

+2929
-318
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-03-07 16:40:15.030371",
8-
"spec_repo_commit": "ba5b230c"
7+
"regenerated": "2024-03-07 18:31:51.936493",
8+
"spec_repo_commit": "eddc6169"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-03-07 16:40:15.047368",
13-
"spec_repo_commit": "ba5b230c"
12+
"regenerated": "2024-03-07 18:31:51.962073",
13+
"spec_repo_commit": "eddc6169"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3919,9 +3919,27 @@ components:
39193919
type: string
39203920
x-enum-varnames:
39213921
- CLOUD_COST_ACTIVITY
3922+
CloudWorkloadSecurityAgentRuleAction:
3923+
description: The action the rule can perform if triggered.
3924+
properties:
3925+
filter:
3926+
description: The selector to target the container on which the action is
3927+
performed
3928+
type: string
3929+
kill:
3930+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleKill'
3931+
type: object
3932+
CloudWorkloadSecurityAgentRuleActions:
3933+
description: The array of actions the rule can perform if triggered.
3934+
items:
3935+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleAction'
3936+
nullable: true
3937+
type: array
39223938
CloudWorkloadSecurityAgentRuleAttributes:
39233939
description: A Cloud Workload Security Agent rule returned by the API.
39243940
properties:
3941+
actions:
3942+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
39253943
agentConstraint:
39263944
description: The version of the agent.
39273945
type: string
@@ -3960,6 +3978,7 @@ components:
39603978
description: The platforms the Agent rule is supported on.
39613979
items:
39623980
type: string
3981+
nullable: true
39633982
type: array
39643983
name:
39653984
description: The name of the Agent rule.
@@ -4054,6 +4073,17 @@ components:
40544073
type:
40554074
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleType'
40564075
type: object
4076+
CloudWorkloadSecurityAgentRuleID:
4077+
description: The ID of the agent rule.
4078+
example: 3dd-0uc-h1s
4079+
type: string
4080+
CloudWorkloadSecurityAgentRuleKill:
4081+
description: The kill signal of the agent rule
4082+
properties:
4083+
signal:
4084+
description: The scope of the kill action
4085+
type: string
4086+
type: object
40574087
CloudWorkloadSecurityAgentRuleResponse:
40584088
description: Response object that includes an Agent rule.
40594089
properties:
@@ -4090,6 +4120,8 @@ components:
40904120
properties:
40914121
attributes:
40924122
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleUpdateAttributes'
4123+
id:
4124+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleID'
40934125
type:
40944126
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleType'
40954127
required:
@@ -29582,6 +29614,154 @@ paths:
2958229614
We are gradually onboarding support for more sources. If you have any
2958329615

2958429616
feedback, contact [Datadog Support](https://docs.datadoghq.com/help/).'
29617+
/api/v2/remote_config/products/cws/agent_rules:
29618+
get:
29619+
description: Get the list of Cloud Security Management Threats Agent rules.
29620+
operationId: ListCSMThreatsAgentRules
29621+
responses:
29622+
'200':
29623+
content:
29624+
application/json:
29625+
schema:
29626+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRulesListResponse'
29627+
description: OK
29628+
'403':
29629+
$ref: '#/components/responses/NotAuthorizedResponse'
29630+
'429':
29631+
$ref: '#/components/responses/TooManyRequestsResponse'
29632+
summary: Get all CSM Threats Agent rules
29633+
tags:
29634+
- Cloud Workload Security
29635+
post:
29636+
description: Create a new Cloud Security Management Threats Agent rule with
29637+
the given parameters.
29638+
operationId: CreateCSMThreatsAgentRule
29639+
requestBody:
29640+
content:
29641+
application/json:
29642+
schema:
29643+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleCreateRequest'
29644+
description: The definition of the new Agent rule.
29645+
required: true
29646+
responses:
29647+
'200':
29648+
content:
29649+
application/json:
29650+
schema:
29651+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleResponse'
29652+
description: OK
29653+
'400':
29654+
$ref: '#/components/responses/BadRequestResponse'
29655+
'403':
29656+
$ref: '#/components/responses/NotAuthorizedResponse'
29657+
'409':
29658+
$ref: '#/components/responses/ConflictResponse'
29659+
'429':
29660+
$ref: '#/components/responses/TooManyRequestsResponse'
29661+
summary: Create a CSM Threats Agent rule
29662+
tags:
29663+
- Cloud Workload Security
29664+
x-codegen-request-body-name: body
29665+
/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}:
29666+
delete:
29667+
description: Delete a specific Cloud Security Management Threats Agent rule.
29668+
operationId: DeleteCSMThreatsAgentRule
29669+
parameters:
29670+
- $ref: '#/components/parameters/CloudWorkloadSecurityAgentRuleID'
29671+
responses:
29672+
'204':
29673+
description: OK
29674+
'403':
29675+
$ref: '#/components/responses/NotAuthorizedResponse'
29676+
'404':
29677+
$ref: '#/components/responses/NotFoundResponse'
29678+
'429':
29679+
$ref: '#/components/responses/TooManyRequestsResponse'
29680+
summary: Delete a CSM Threats Agent rule
29681+
tags:
29682+
- Cloud Workload Security
29683+
get:
29684+
description: Get the details of a specific Cloud Security Management Threats
29685+
Agent rule.
29686+
operationId: GetCSMThreatsAgentRule
29687+
parameters:
29688+
- $ref: '#/components/parameters/CloudWorkloadSecurityAgentRuleID'
29689+
responses:
29690+
'200':
29691+
content:
29692+
application/json:
29693+
schema:
29694+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleResponse'
29695+
description: OK
29696+
'403':
29697+
$ref: '#/components/responses/NotAuthorizedResponse'
29698+
'404':
29699+
$ref: '#/components/responses/NotFoundResponse'
29700+
'429':
29701+
$ref: '#/components/responses/TooManyRequestsResponse'
29702+
summary: Get a CSM Threats Agent rule
29703+
tags:
29704+
- Cloud Workload Security
29705+
patch:
29706+
description: 'Update a specific Cloud Security Management Threats Agent rule.
29707+
29708+
Returns the Agent rule object when the request is successful.'
29709+
operationId: UpdateCSMThreatsAgentRule
29710+
parameters:
29711+
- $ref: '#/components/parameters/CloudWorkloadSecurityAgentRuleID'
29712+
requestBody:
29713+
content:
29714+
application/json:
29715+
schema:
29716+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleUpdateRequest'
29717+
description: New definition of the Agent rule.
29718+
required: true
29719+
responses:
29720+
'200':
29721+
content:
29722+
application/json:
29723+
schema:
29724+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleResponse'
29725+
description: OK
29726+
'400':
29727+
$ref: '#/components/responses/BadRequestResponse'
29728+
'403':
29729+
$ref: '#/components/responses/NotAuthorizedResponse'
29730+
'404':
29731+
$ref: '#/components/responses/NotFoundResponse'
29732+
'409':
29733+
$ref: '#/components/responses/ConcurrentModificationResponse'
29734+
'429':
29735+
$ref: '#/components/responses/TooManyRequestsResponse'
29736+
summary: Update a CSM Threats Agent rule
29737+
tags:
29738+
- Cloud Workload Security
29739+
x-codegen-request-body-name: body
29740+
/api/v2/remote_config/products/cws/policy/download:
29741+
get:
29742+
description: 'The download endpoint generates a CSM Threats policy file from
29743+
your currently active
29744+
29745+
CSM Threats rules, and downloads them as a `.policy` file. This file can then
29746+
be deployed to
29747+
29748+
your Agents to update the policy running in your environment.'
29749+
operationId: DownloadCSMThreatsPolicy
29750+
responses:
29751+
'200':
29752+
content:
29753+
application/zip:
29754+
schema:
29755+
format: binary
29756+
type: string
29757+
description: OK
29758+
'403':
29759+
$ref: '#/components/responses/NotAuthorizedResponse'
29760+
'429':
29761+
$ref: '#/components/responses/TooManyRequestsResponse'
29762+
summary: Get the latest CSM Threats policy
29763+
tags:
29764+
- Cloud Workload Security
2958529765
/api/v2/restriction_policy/{resource_id}:
2958629766
delete:
2958729767
description: Deletes the restriction policy associated with a specified resource.
@@ -34821,6 +35001,11 @@ tags:
3482135001
[Test Visibility in Datadog page](https://docs.datadoghq.com/tests/) for more
3482235002
information.
3482335003
name: CI Visibility Tests
35004+
- description: Cloud Security Management Threats (CSM Threats) monitors file, network,
35005+
and process activity across your environment to detect real-time threats to your
35006+
infrastructure. See [Cloud Security Management Threats](https://docs.datadoghq.com/security/threats/)
35007+
for more information on setting up CSM Threats.
35008+
name: CSM Threats
3482435009
- description: View and manage cases and projects within Case Management. See the
3482535010
[Case Management page](https://docs.datadoghq.com/service_management/case_management/)
3482635011
for more information.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-03-07T18:00:07.544Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Cloud Workload Security/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": "0a69f86145855ad31f75cec2b61dc38b",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 149,
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\":\"my_agent_rule\"},\"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": 142,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 142,
45+
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `my_agent_rule` 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-03-07T18:00:07.566Z",
61+
"time": 562
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-03-06T09:58:37.695Z"

0 commit comments

Comments
 (0)