Skip to content

Commit 57de97d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2b9402e of spec repo
1 parent 4069ed7 commit 57de97d

47 files changed

Lines changed: 1593 additions & 2532 deletions

File tree

Some content is hidden

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

examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"env:test",
2626
],
2727
],
28-
name="my_agent_policy_2",
28+
name="examplecsmthreat",
2929
),
3030
type=CloudWorkloadSecurityAgentPolicyType.POLICY,
3131
),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:39.566Z
1+
2025-10-16T15:45:13.877Z

tests/v2/cassettes/test_scenarios/test_create_a_workload_protection_agent_rule_returns_bad_request_response.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760109639"},"type":"policy"}}'
3+
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760629513"},"type":"policy"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,16 +10,16 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy
1111
response:
1212
body:
13-
string: '{"data":{"id":"sr5-i0h-lty","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14-
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760109639","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760109639958,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
13+
string: '{"data":{"id":"xzm-81y-je9","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14+
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1760629513","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760629514260,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
1515
headers:
1616
content-type:
1717
- application/json
1818
status:
1919
code: 200
2020
message: OK
2121
- request:
22-
body: '{"data":{"attributes":{"description":"My Agent rule","enabled":true,"expression":"exec.file.name","filters":[],"name":"my_agent_rule","policy_id":"sr5-i0h-lty","product_tags":[]},"type":"agent_rule"}}'
22+
body: '{"data":{"attributes":{"description":"My Agent rule","enabled":true,"expression":"exec.file.name","filters":[],"name":"my_agent_rule","policy_id":"xzm-81y-je9","product_tags":[]},"type":"agent_rule"}}'
2323
headers:
2424
accept:
2525
- application/json
@@ -29,8 +29,8 @@ interactions:
2929
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules
3030
response:
3131
body:
32-
string: '{"errors":["input_validation_error(Field ''name'' is invalid: the name
33-
''my_agent_rule'' is already used by a custom rule)"]}'
32+
string: '{"errors":["input_validation_error(Field ''expression'' is invalid:
33+
rule `my_agent_rule` error: rule syntax error: bool expected: 1:1: exec.file.name\n^)"]}'
3434
headers:
3535
content-type:
3636
- application/json
@@ -43,7 +43,7 @@ interactions:
4343
accept:
4444
- '*/*'
4545
method: DELETE
46-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/sr5-i0h-lty
46+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/xzm-81y-je9
4747
response:
4848
body:
4949
string: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:41.757Z
1+
2025-10-16T15:45:16.262Z

tests/v2/cassettes/test_scenarios/test_create_a_workload_protection_agent_rule_returns_ok_response.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641"},"type":"policy"}}'
3+
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760629516"},"type":"policy"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy
1111
response:
1212
body:
13-
string: '{"data":{"id":"cwy-qfn-4k8","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14-
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760109642133,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
13+
string: '{"data":{"id":"tro-wap-nv5","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14+
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760629516","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760629516656,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
1515
headers:
1616
content-type:
1717
- application/json
@@ -20,7 +20,7 @@ interactions:
2020
message: OK
2121
- request:
2222
body: '{"data":{"attributes":{"agent_version":"> 7.60","description":"My Agent
23-
rule","enabled":true,"expression":"exec.file.name == \"sh\"","filters":[],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641","policy_id":"cwy-qfn-4k8","product_tags":[]},"type":"agent_rule"}}'
23+
rule","enabled":true,"expression":"exec.file.name == \"sh\"","filters":[],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760629516","policy_id":"tro-wap-nv5","product_tags":[]},"type":"agent_rule"}}'
2424
headers:
2525
accept:
2626
- application/json
@@ -30,10 +30,10 @@ interactions:
3030
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules
3131
response:
3232
body:
33-
string: '{"data":{"id":"iua-dxr-uvh","type":"agent_rule","attributes":{"category":"Process
34-
Activity","creationDate":1760109643225,"creator":{"name":"frog","handle":"frog@datadoghq.com"},"defaultRule":false,"description":"My
33+
string: '{"data":{"id":"oey-cdy-g0c","type":"agent_rule","attributes":{"category":"Process
34+
Activity","creationDate":1760629517594,"creator":{"name":"frog","handle":"frog@datadoghq.com"},"defaultRule":false,"description":"My
3535
Agent rule","enabled":true,"expression":"exec.file.name == \"sh\"","filters":["os
36-
== \"linux\""],"monitoring":["cwy-qfn-4k8"],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760109641","product_tags":[],"updateDate":1760109643225,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
36+
== \"linux\""],"monitoring":["tro-wap-nv5"],"name":"testcreateaworkloadprotectionagentrulereturnsokresponse1760629516","product_tags":[],"updateDate":1760629517594,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
3737
headers:
3838
content-type:
3939
- application/json
@@ -46,7 +46,7 @@ interactions:
4646
accept:
4747
- '*/*'
4848
method: DELETE
49-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/iua-dxr-uvh
49+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/oey-cdy-g0c?policy_id=tro-wap-nv5
5050
response:
5151
body:
5252
string: ''
@@ -62,7 +62,7 @@ interactions:
6262
accept:
6363
- '*/*'
6464
method: DELETE
65-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/cwy-qfn-4k8
65+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/tro-wap-nv5
6666
response:
6767
body:
6868
string: ''
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:46.004Z
1+
2025-10-16T15:45:19.924Z

tests/v2/cassettes/test_scenarios/test_create_a_workload_protection_agent_rule_with_set_action_returns_ok_response.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760109646"},"type":"policy"}}'
3+
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760629519"},"type":"policy"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy
1111
response:
1212
body:
13-
string: '{"data":{"id":"c85-dqa-6no","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14-
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760109646","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760109646385,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
13+
string: '{"data":{"id":"xop-igj-klb","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14+
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760629519","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760629520310,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
1515
headers:
1616
content-type:
1717
- application/json
@@ -20,7 +20,7 @@ interactions:
2020
message: OK
2121
- request:
2222
body: '{"data":{"attributes":{"actions":[{"set":{"inherited":true,"name":"test_set","scope":"process","value":"test_value"}},{"hash":{}}],"description":"My
23-
Agent rule with set action","enabled":true,"expression":"exec.file.name == \"sh\"","filters":[],"name":"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760109646","policy_id":"c85-dqa-6no","product_tags":[]},"type":"agent_rule"}}'
23+
Agent rule with set action","enabled":true,"expression":"exec.file.name == \"sh\"","filters":[],"name":"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760629519","policy_id":"xop-igj-klb","product_tags":[]},"type":"agent_rule"}}'
2424
headers:
2525
accept:
2626
- application/json
@@ -30,10 +30,10 @@ interactions:
3030
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules
3131
response:
3232
body:
33-
string: '{"data":{"id":"ak5-bk0-dxq","type":"agent_rule","attributes":{"actions":[{"set":{"name":"test_set","value":"test_value","scope":"process","inherited":true},"disabled":false},{"hash":{},"disabled":false}],"category":"Process
34-
Activity","creationDate":1760109647450,"creator":{"name":"frog","handle":"frog@datadoghq.com"},"defaultRule":false,"description":"My
33+
string: '{"data":{"id":"9hm-s2v-pks","type":"agent_rule","attributes":{"actions":[{"set":{"name":"test_set","value":"test_value","scope":"process","inherited":true},"disabled":false},{"hash":{},"disabled":false}],"category":"Process
34+
Activity","creationDate":1760629521197,"creator":{"name":"frog","handle":"frog@datadoghq.com"},"defaultRule":false,"description":"My
3535
Agent rule with set action","enabled":true,"expression":"exec.file.name ==
36-
\"sh\"","filters":["os == \"linux\""],"monitoring":["c85-dqa-6no"],"name":"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760109646","product_tags":[],"updateDate":1760109647450,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
36+
\"sh\"","filters":["os == \"linux\""],"monitoring":["xop-igj-klb"],"name":"testcreateaworkloadprotectionagentrulewithsetactionreturnsokresponse1760629519","product_tags":[],"updateDate":1760629521197,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
3737
headers:
3838
content-type:
3939
- application/json
@@ -46,7 +46,7 @@ interactions:
4646
accept:
4747
- '*/*'
4848
method: DELETE
49-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/ak5-bk0-dxq
49+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/9hm-s2v-pks?policy_id=xop-igj-klb
5050
response:
5151
body:
5252
string: ''
@@ -62,7 +62,7 @@ interactions:
6262
accept:
6363
- '*/*'
6464
method: DELETE
65-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/c85-dqa-6no
65+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/xop-igj-klb
6666
response:
6767
body:
6868
string: ''
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:50.578Z
1+
2025-10-16T15:45:23.339Z

tests/v2/cassettes/test_scenarios/test_create_a_workload_protection_agent_rule_with_set_action_with_expression_returns_ok_response.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulewithsetactionwithexpressionreturnsokresponse1760109650"},"type":"policy"}}'
3+
body: '{"data":{"attributes":{"description":"My agent policy","enabled":true,"hostTags":["env:staging"],"name":"testcreateaworkloadprotectionagentrulewithsetactionwithexpressionreturnsokresponse1760629523"},"type":"policy"}}'
44
headers:
55
accept:
66
- application/json
@@ -10,8 +10,8 @@ interactions:
1010
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy
1111
response:
1212
body:
13-
string: '{"data":{"id":"lrl-nbx-opl","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14-
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulewithsetactionwithexpressionreturnsokresponse1760109650","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760109650938,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
13+
string: '{"data":{"id":"nyy-czy-wqj","type":"policy","attributes":{"blockingRulesCount":0,"datadogManaged":false,"description":"My
14+
agent policy","disabledRulesCount":1,"enabled":true,"hostTagsLists":[["env:staging"]],"monitoringRulesCount":7,"name":"testcreateaworkloadprotectionagentrulewithsetactionwithexpressionreturnsokresponse1760629523","pinned":false,"policyVersion":"1","ruleCount":8,"updateDate":1760629523722,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
1515
headers:
1616
content-type:
1717
- application/json
@@ -21,7 +21,7 @@ interactions:
2121
- request:
2222
body: '{"data":{"attributes":{"actions":[{"set":{"default_value":"/dev/null","expression":"open.file.path","name":"test_set","scope":"process"}}],"description":"My
2323
Agent rule with set action with expression","enabled":true,"expression":"exec.file.name
24-
== \"sh\"","filters":[],"name":"testcreateaworkloadprotectionagentrulewithsetactionwithexpressionreturnsokresponse1760109650","policy_id":"lrl-nbx-opl","product_tags":[]},"type":"agent_rule"}}'
24+
== \"sh\"","filters":[],"name":"testcreateaworkloadprotectionagentrulewithsetactionwithexpressionreturnsokresponse1760629523","policy_id":"nyy-czy-wqj","product_tags":[]},"type":"agent_rule"}}'
2525
headers:
2626
accept:
2727
- application/json
@@ -31,10 +31,10 @@ interactions:
3131
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules
3232
response:
3333
body:
34-
string: '{"data":{"id":"ye3-8k9-6ut","type":"agent_rule","attributes":{"actions":[{"set":{"name":"test_set","default_value":"/dev/null","scope":"process","expression":"open.file.path","inherited":false},"disabled":false}],"category":"Process
35-
Activity","creationDate":1760109651835,"creator":{"name":"frog","handle":"frog@datadoghq.com"},"defaultRule":false,"description":"My
34+
string: '{"data":{"id":"kyo-g72-ncc","type":"agent_rule","attributes":{"actions":[{"set":{"name":"test_set","default_value":"/dev/null","scope":"process","expression":"open.file.path","inherited":false},"disabled":false}],"category":"Process
35+
Activity","creationDate":1760629524682,"creator":{"name":"frog","handle":"frog@datadoghq.com"},"defaultRule":false,"description":"My
3636
Agent rule with set action with expression","enabled":true,"expression":"exec.file.name
37-
== \"sh\"","filters":["os == \"linux\""],"monitoring":["lrl-nbx-opl"],"name":"testcreateaworkloadprotectionagentrulewithsetactionwithexpressionreturnsokresponse1760109650","product_tags":[],"updateDate":1760109651835,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
37+
== \"sh\"","filters":["os == \"linux\""],"monitoring":["nyy-czy-wqj"],"name":"testcreateaworkloadprotectionagentrulewithsetactionwithexpressionreturnsokresponse1760629523","product_tags":[],"updateDate":1760629524682,"updater":{"name":"frog","handle":"frog@datadoghq.com"}}}}'
3838
headers:
3939
content-type:
4040
- application/json
@@ -47,7 +47,7 @@ interactions:
4747
accept:
4848
- '*/*'
4949
method: DELETE
50-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/ye3-8k9-6ut
50+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/kyo-g72-ncc?policy_id=nyy-czy-wqj
5151
response:
5252
body:
5353
string: ''
@@ -63,7 +63,7 @@ interactions:
6363
accept:
6464
- '*/*'
6565
method: DELETE
66-
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/lrl-nbx-opl
66+
uri: https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/nyy-czy-wqj
6767
response:
6868
body:
6969
string: ''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-10-10T15:20:54.465Z
1+
2025-10-16T15:45:26.931Z

0 commit comments

Comments
 (0)