Skip to content

Commit cc34106

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 31b66a21 of spec repo
1 parent 01afe25 commit cc34106

File tree

7 files changed

+4980
-22
lines changed

7 files changed

+4980
-22
lines changed

.apigentools-info

+4-4
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": "2025-05-14 15:46:38.896407",
8-
"spec_repo_commit": "64f5e7ee"
7+
"regenerated": "2025-05-16 19:13:35.676057",
8+
"spec_repo_commit": "31b66a21"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-14 15:46:48.228708",
13-
"spec_repo_commit": "64f5e7ee"
12+
"regenerated": "2025-05-16 19:13:44.753345",
13+
"spec_repo_commit": "31b66a21"
1414
}
1515
}
1616
}

content/en/api/v2/csm-threats/examples.json

+250-14
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"data": {
3+
"attributes": {
4+
"description": "My Agent rule with set action",
5+
"enabled": true,
6+
"expression": "exec.file.name == \"sh\"",
7+
"filters": [],
8+
"name": "examplecsmthreat",
9+
"policy_id": "6517fcc1-cec7-4394-a655-8d6e9d085255",
10+
"product_tags": [],
11+
"actions": [
12+
{
13+
"set": {
14+
"name": "test_set",
15+
"value": "test_value",
16+
"scope": "process"
17+
}
18+
}
19+
]
20+
},
21+
"type": "agent_rule"
22+
}
23+
}

data/api/v2/CodeExamples.json

+5
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@
212212
"group": "csm_threats",
213213
"suffix": "",
214214
"description": "Create a CSM Threats Agent rule returns \"OK\" response"
215+
},
216+
{
217+
"group": "csm_threats",
218+
"suffix": "_1176049761",
219+
"description": "Create a CSM Threats Agent rule with set action returns \"OK\" response"
215220
}
216221
],
217222
"CreateCloudWorkloadSecurityAgentRule": [

data/api/v2/full_spec.yaml

+98-2
Original file line numberDiff line numberDiff line change
@@ -7373,6 +7373,8 @@ components:
73737373
CloudWorkloadSecurityAgentPolicyCreateAttributes:
73747374
description: Create a new Cloud Workload Security Agent policy
73757375
properties:
7376+
actions:
7377+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
73767378
description:
73777379
description: The description of the policy
73787380
example: My agent policy
@@ -7454,6 +7456,8 @@ components:
74547456
CloudWorkloadSecurityAgentPolicyUpdateAttributes:
74557457
description: Update an existing Cloud Workload Security Agent policy
74567458
properties:
7459+
actions:
7460+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
74577461
description:
74587462
description: The description of the policy
74597463
example: My agent policy
@@ -7524,6 +7528,50 @@ components:
75247528
type: string
75257529
kill:
75267530
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleKill'
7531+
metadata:
7532+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionMetadata'
7533+
set:
7534+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet'
7535+
type: object
7536+
CloudWorkloadSecurityAgentRuleActionMetadata:
7537+
description: The metadata action applied on the scope matching the rule
7538+
properties:
7539+
image_tag:
7540+
description: The image tag of the metadata action
7541+
type: string
7542+
service:
7543+
description: The service of the metadata action
7544+
type: string
7545+
short_image:
7546+
description: The short image of the metadata action
7547+
type: string
7548+
type: object
7549+
CloudWorkloadSecurityAgentRuleActionSet:
7550+
description: The set action applied on the scope matching the rule
7551+
properties:
7552+
append:
7553+
description: Whether the value should be appended to the field
7554+
type: boolean
7555+
field:
7556+
description: The field of the set action
7557+
type: string
7558+
name:
7559+
description: The name of the set action
7560+
type: string
7561+
scope:
7562+
description: The scope of the set action
7563+
type: string
7564+
size:
7565+
description: The size of the set action
7566+
format: int64
7567+
type: integer
7568+
ttl:
7569+
description: The time to live of the set action
7570+
format: int64
7571+
type: integer
7572+
value:
7573+
description: The value of the set action
7574+
type: string
75277575
type: object
75287576
CloudWorkloadSecurityAgentRuleActions:
75297577
description: The array of actions the rule can perform if triggered
@@ -7539,6 +7587,11 @@ components:
75397587
agentConstraint:
75407588
description: The version of the Agent
75417589
type: string
7590+
blocking:
7591+
description: The blocking policies that the rule belongs to
7592+
items:
7593+
type: string
7594+
type: array
75427595
category:
75437596
description: The category of the Agent rule
75447597
example: Process Activity
@@ -7562,6 +7615,11 @@ components:
75627615
description: The description of the Agent rule
75637616
example: My Agent rule
75647617
type: string
7618+
disabled:
7619+
description: The disabled policies that the rule belongs to
7620+
items:
7621+
type: string
7622+
type: array
75657623
enabled:
75667624
description: Whether the Agent rule is enabled
75677625
example: true
@@ -7575,6 +7633,11 @@ components:
75757633
items:
75767634
type: string
75777635
type: array
7636+
monitoring:
7637+
description: The monitoring policies that the rule belongs to
7638+
items:
7639+
type: string
7640+
type: array
75787641
name:
75797642
description: The name of the Agent rule
75807643
example: my_agent_rule
@@ -7609,10 +7672,22 @@ components:
76097672
CloudWorkloadSecurityAgentRuleCreateAttributes:
76107673
description: Create a new Cloud Workload Security Agent rule.
76117674
properties:
7675+
actions:
7676+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
7677+
blocking:
7678+
description: The blocking policies that the rule belongs to
7679+
items:
7680+
type: string
7681+
type: array
76127682
description:
76137683
description: The description of the Agent rule.
76147684
example: My Agent rule
76157685
type: string
7686+
disabled:
7687+
description: The disabled policies that the rule belongs to
7688+
items:
7689+
type: string
7690+
type: array
76167691
enabled:
76177692
description: Whether the Agent rule is enabled
76187693
example: true
@@ -7626,6 +7701,11 @@ components:
76267701
items:
76277702
type: string
76287703
type: array
7704+
monitoring:
7705+
description: The monitoring policies that the rule belongs to
7706+
items:
7707+
type: string
7708+
type: array
76297709
name:
76307710
description: The name of the Agent rule.
76317711
example: my_agent_rule
@@ -7716,10 +7796,20 @@ components:
77167796
CloudWorkloadSecurityAgentRuleUpdateAttributes:
77177797
description: Update an existing Cloud Workload Security Agent rule
77187798
properties:
7799+
blocking:
7800+
description: The blocking policies that the rule belongs to
7801+
items:
7802+
type: string
7803+
type: array
77197804
description:
77207805
description: The description of the Agent rule
77217806
example: My Agent rule
77227807
type: string
7808+
disabled:
7809+
description: The disabled policies that the rule belongs to
7810+
items:
7811+
type: string
7812+
type: array
77237813
enabled:
77247814
description: Whether the Agent rule is enabled
77257815
example: true
@@ -7728,6 +7818,11 @@ components:
77287818
description: The SECL expression of the Agent rule
77297819
example: exec.file.name == "sh"
77307820
type: string
7821+
monitoring:
7822+
description: The monitoring policies that the rule belongs to
7823+
items:
7824+
type: string
7825+
type: array
77317826
policy_id:
77327827
description: The ID of the policy where the Agent rule is saved
77337828
example: a8c8e364-6556-434d-b798-a4c23de29c0b
@@ -55622,8 +55717,9 @@ paths:
5562255717
{\n \"name\": \"{{ unique_lower_alnum }}\",\n \"description\":
5562355718
\"My Agent rule\",\n \"expression\": \"exec.file.name == \\\"sh\\\"\",\n
5562455719
\ \"enabled\": true,\n \"product_tags\": [\"security:attack\",
55625-
\"technique:T1059\"],\n \"policy_id\": \"{{ policy.data.id }}\"\n
55626-
\ }\n }\n}"
55720+
\"technique:T1059\"],\n \"actions\": [{\"set\": {\"name\": \"test_set\",
55721+
\"value\": \"test_value\", \"scope\": \"process\"}}],\n \"policy_id\":
55722+
\"{{ policy.data.id }}\"\n }\n }\n}"
5562755723
step: there is a valid "agent_rule_rc" in the system
5562855724
x-menu-order: 4
5562955725
x-undo:

0 commit comments

Comments
 (0)