datadog_api_client 2.35.0 → 2.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +0 -3
  4. data/.generator/schemas/v2/openapi.yaml +355 -0
  5. data/CHANGELOG.md +17 -0
  6. data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -0
  7. data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +30 -0
  8. data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +1 -1
  9. data/examples/v2/teams/AddMemberTeam.rb +15 -0
  10. data/examples/v2/teams/ListMemberTeams.rb +8 -0
  11. data/examples/v2/teams/ListMemberTeams_1662850354.rb +8 -0
  12. data/examples/v2/teams/RemoveMemberTeam.rb +8 -0
  13. data/lib/datadog_api_client/configuration.rb +3 -0
  14. data/lib/datadog_api_client/inflector.rb +8 -0
  15. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
  16. data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
  17. data/lib/datadog_api_client/v2/models/add_member_team_request.rb +123 -0
  18. data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author_type.rb +2 -0
  19. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +21 -1
  20. data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +11 -1
  21. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +2 -1
  22. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb +228 -0
  23. data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb +26 -0
  24. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +2 -1
  25. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb +228 -0
  26. data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb +26 -0
  27. data/lib/datadog_api_client/v2/models/member_team.rb +144 -0
  28. data/lib/datadog_api_client/v2/models/member_team_type.rb +26 -0
  29. data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +11 -1
  30. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
  31. data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
  32. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +21 -1
  33. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +21 -1
  34. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +21 -1
  35. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +21 -1
  36. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
  37. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +21 -1
  38. data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +11 -1
  39. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +15 -3
  40. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb +137 -0
  41. data/lib/datadog_api_client/version.rb +1 -1
  42. metadata +14 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd4fa1ca8b509d9ed04902745d4be9dd88ffc9027b65ab7afbb50ee83986d7b2
4
- data.tar.gz: de5ad1d3170afd31a7786b1af048d2f17c57ba867cfc3142a59b5665982f1409
3
+ metadata.gz: 8756867acdae96bcfc47feb2df68fe673a8391200e035f674cdb709a86698fb0
4
+ data.tar.gz: d820f9ac9ed7a991a893a9b15e696b5b1435161663459a4c1ffcbd64b4b0983a
5
5
  SHA512:
6
- metadata.gz: 0abd112ea98cfef2af2c42806605f80e3564bb526915d44aa8b4419cf545a261931e1a3cd83f85ab19b9cf7d9b3cb0f87ac3488144f895e9b1f8ce1c305ac65d
7
- data.tar.gz: 4011a55db8ea02f2fed298704ee9c244186fc44c5971aaa3558f912f06906fe9e2e1ad076fe53997be0e40946a1e6022710760594ba1bf3afd05a646f676a2c6
6
+ metadata.gz: 2498f34927227c3f85759416175211fa138090c74fc961bffa40e8d4dd7b190a5a9bef808d7e2cf495da2c56e1073be1c93082f2262f2cae2c47cd6a3dc6d9ed
7
+ data.tar.gz: 5daf3fb76096a38f1afe231d1560aa306b98b666390a0160459c7d88ff7227770bc6eb01f1999d4248f4f979200a52cb7a48819783c138dc6e720e054eb2aded
data/.apigentools-info CHANGED
@@ -4,13 +4,13 @@
4
4
  "spec_versions": {
5
5
  "v1": {
6
6
  "apigentools_version": "1.6.6",
7
- "regenerated": "2025-06-16 08:24:57.259638",
8
- "spec_repo_commit": "b2c4e7e8"
7
+ "regenerated": "2025-06-23 19:18:44.009093",
8
+ "spec_repo_commit": "779f1def"
9
9
  },
10
10
  "v2": {
11
11
  "apigentools_version": "1.6.6",
12
- "regenerated": "2025-06-16 08:24:57.275017",
13
- "spec_repo_commit": "b2c4e7e8"
12
+ "regenerated": "2025-06-23 19:18:44.025381",
13
+ "spec_repo_commit": "779f1def"
14
14
  }
15
15
  }
16
16
  }
@@ -14785,9 +14785,6 @@ components:
14785
14785
  description: Username to use for the basic authentication.
14786
14786
  example: my_username
14787
14787
  type: string
14788
- required:
14789
- - password
14790
- - username
14791
14788
  type: object
14792
14789
  SyntheticsBasicAuthWebType:
14793
14790
  default: web
@@ -2200,6 +2200,14 @@ components:
2200
2200
  type: string
2201
2201
  x-enum-varnames:
2202
2202
  - BILLING_DIMENSIONS
2203
+ AddMemberTeamRequest:
2204
+ description: Request to add a member team to super team's hierarchy
2205
+ properties:
2206
+ data:
2207
+ $ref: '#/components/schemas/MemberTeam'
2208
+ required:
2209
+ - data
2210
+ type: object
2203
2211
  Advisory:
2204
2212
  description: Advisory.
2205
2213
  properties:
@@ -6982,11 +6990,15 @@ components:
6982
6990
  enum:
6983
6991
  - user
6984
6992
  - system
6993
+ - api
6994
+ - automation
6985
6995
  example: user
6986
6996
  type: string
6987
6997
  x-enum-varnames:
6988
6998
  - USER
6989
6999
  - SYSTEM
7000
+ - API
7001
+ - AUTOMATION
6990
7002
  ChangeEventCustomAttributesChangedResource:
6991
7003
  description: Object representing a uniquely identified resource.
6992
7004
  properties:
@@ -7238,6 +7250,14 @@ components:
7238
7250
  type: array
7239
7251
  complianceSignalOptions:
7240
7252
  $ref: '#/components/schemas/CloudConfigurationRuleComplianceSignalOptions'
7253
+ customMessage:
7254
+ description: Custom/Overridden message for generated signals (used in case
7255
+ of Default rule update).
7256
+ type: string
7257
+ customName:
7258
+ description: Custom/Overridden name of the rule (used in case of Default
7259
+ rule update).
7260
+ type: string
7241
7261
  filters:
7242
7262
  description: Additional queries to filter matched events before they are
7243
7263
  processed.
@@ -7532,6 +7552,8 @@ components:
7532
7552
  description: SECL expression used to target the container to apply the action
7533
7553
  on
7534
7554
  type: string
7555
+ hash:
7556
+ $ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionHash'
7535
7557
  kill:
7536
7558
  $ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleKill'
7537
7559
  metadata:
@@ -7539,6 +7561,10 @@ components:
7539
7561
  set:
7540
7562
  $ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet'
7541
7563
  type: object
7564
+ CloudWorkloadSecurityAgentRuleActionHash:
7565
+ additionalProperties: {}
7566
+ description: An empty object indicating the hash action
7567
+ type: object
7542
7568
  CloudWorkloadSecurityAgentRuleActionMetadata:
7543
7569
  description: The metadata action applied on the scope matching the rule
7544
7570
  properties:
@@ -10460,6 +10486,7 @@ components:
10460
10486
  - $ref: '#/components/schemas/CustomDestinationForwardDestinationHttp'
10461
10487
  - $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
10462
10488
  - $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
10489
+ - $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinel'
10463
10490
  CustomDestinationForwardDestinationElasticsearch:
10464
10491
  description: The Elasticsearch destination.
10465
10492
  properties:
@@ -10544,6 +10571,49 @@ components:
10544
10571
  type: string
10545
10572
  x-enum-varnames:
10546
10573
  - HTTP
10574
+ CustomDestinationForwardDestinationMicrosoftSentinel:
10575
+ description: The Microsoft Sentinel destination.
10576
+ properties:
10577
+ client_id:
10578
+ description: Client ID from the Datadog Azure integration.
10579
+ example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10580
+ type: string
10581
+ data_collection_endpoint:
10582
+ description: Azure data collection endpoint.
10583
+ example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10584
+ type: string
10585
+ data_collection_rule_id:
10586
+ description: Azure data collection rule ID.
10587
+ example: dcr-000a00a000a00000a000000aa000a0aa
10588
+ type: string
10589
+ stream_name:
10590
+ description: Azure stream name.
10591
+ example: Custom-MyTable
10592
+ type: string
10593
+ writeOnly: true
10594
+ tenant_id:
10595
+ description: Tenant ID from the Datadog Azure integration.
10596
+ example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10597
+ type: string
10598
+ type:
10599
+ $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinelType'
10600
+ required:
10601
+ - type
10602
+ - tenant_id
10603
+ - client_id
10604
+ - data_collection_endpoint
10605
+ - data_collection_rule_id
10606
+ - stream_name
10607
+ type: object
10608
+ CustomDestinationForwardDestinationMicrosoftSentinelType:
10609
+ default: microsoft_sentinel
10610
+ description: Type of the Microsoft Sentinel destination.
10611
+ enum:
10612
+ - microsoft_sentinel
10613
+ example: microsoft_sentinel
10614
+ type: string
10615
+ x-enum-varnames:
10616
+ - MICROSOFT_SENTINEL
10547
10617
  CustomDestinationForwardDestinationSplunk:
10548
10618
  description: The Splunk HTTP Event Collector (HEC) destination.
10549
10619
  properties:
@@ -10719,6 +10789,7 @@ components:
10719
10789
  - $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationHttp'
10720
10790
  - $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationSplunk'
10721
10791
  - $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationElasticsearch'
10792
+ - $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinel'
10722
10793
  CustomDestinationResponseForwardDestinationElasticsearch:
10723
10794
  description: The Elasticsearch destination.
10724
10795
  properties:
@@ -10803,6 +10874,49 @@ components:
10803
10874
  type: string
10804
10875
  x-enum-varnames:
10805
10876
  - HTTP
10877
+ CustomDestinationResponseForwardDestinationMicrosoftSentinel:
10878
+ description: The Microsoft Sentinel destination.
10879
+ properties:
10880
+ client_id:
10881
+ description: Client ID from the Datadog Azure integration.
10882
+ example: 9a2f4d83-2b5e-429e-a35a-2b3c4182db71
10883
+ type: string
10884
+ data_collection_endpoint:
10885
+ description: Azure data collection endpoint.
10886
+ example: https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com
10887
+ type: string
10888
+ data_collection_rule_id:
10889
+ description: Azure data collection rule ID.
10890
+ example: dcr-000a00a000a00000a000000aa000a0aa
10891
+ type: string
10892
+ stream_name:
10893
+ description: Azure stream name.
10894
+ example: Custom-MyTable
10895
+ type: string
10896
+ writeOnly: true
10897
+ tenant_id:
10898
+ description: Tenant ID from the Datadog Azure integration.
10899
+ example: f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2
10900
+ type: string
10901
+ type:
10902
+ $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinelType'
10903
+ required:
10904
+ - type
10905
+ - tenant_id
10906
+ - client_id
10907
+ - data_collection_endpoint
10908
+ - data_collection_rule_id
10909
+ - stream_name
10910
+ type: object
10911
+ CustomDestinationResponseForwardDestinationMicrosoftSentinelType:
10912
+ default: microsoft_sentinel
10913
+ description: Type of the Microsoft Sentinel destination.
10914
+ enum:
10915
+ - microsoft_sentinel
10916
+ example: microsoft_sentinel
10917
+ type: string
10918
+ x-enum-varnames:
10919
+ - MICROSOFT_SENTINEL
10806
10920
  CustomDestinationResponseForwardDestinationSplunk:
10807
10921
  description: The Splunk HTTP Event Collector (HEC) destination.
10808
10922
  properties:
@@ -21300,6 +21414,28 @@ components:
21300
21414
  - ms_channel_name
21301
21415
  - redirect_url
21302
21416
  type: object
21417
+ MemberTeam:
21418
+ description: A member team
21419
+ properties:
21420
+ id:
21421
+ description: The member team's identifier
21422
+ example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
21423
+ type: string
21424
+ type:
21425
+ $ref: '#/components/schemas/MemberTeamType'
21426
+ required:
21427
+ - id
21428
+ - type
21429
+ type: object
21430
+ MemberTeamType:
21431
+ default: member_teams
21432
+ description: Member team type
21433
+ enum:
21434
+ - member_teams
21435
+ example: member_teams
21436
+ type: string
21437
+ x-enum-varnames:
21438
+ - MEMBER_TEAMS
21303
21439
  Metadata:
21304
21440
  description: The metadata related to this request.
21305
21441
  properties:
@@ -32732,6 +32868,8 @@ components:
32732
32868
 
32733
32869
  based on the event counts in the previously defined queries.'
32734
32870
  type: string
32871
+ customStatus:
32872
+ $ref: '#/components/schemas/SecurityMonitoringRuleSeverity'
32735
32873
  name:
32736
32874
  description: Name of the case.
32737
32875
  type: string
@@ -33218,11 +33356,13 @@ components:
33218
33356
  SecurityMonitoringRuleTypeCreate:
33219
33357
  description: The rule type.
33220
33358
  enum:
33359
+ - api_security
33221
33360
  - application_security
33222
33361
  - log_detection
33223
33362
  - workload_security
33224
33363
  type: string
33225
33364
  x-enum-varnames:
33365
+ - API_SECURITY
33226
33366
  - APPLICATION_SECURITY
33227
33367
  - LOG_DETECTION
33228
33368
  - WORKLOAD_SECURITY
@@ -33234,6 +33374,7 @@ components:
33234
33374
  - workload_security
33235
33375
  - cloud_configuration
33236
33376
  - application_security
33377
+ - api_security
33237
33378
  type: string
33238
33379
  x-enum-varnames:
33239
33380
  - LOG_DETECTION
@@ -33241,6 +33382,7 @@ components:
33241
33382
  - WORKLOAD_SECURITY
33242
33383
  - CLOUD_CONFIGURATION
33243
33384
  - APPLICATION_SECURITY
33385
+ - API_SECURITY
33244
33386
  SecurityMonitoringRuleTypeTest:
33245
33387
  description: The rule type.
33246
33388
  enum:
@@ -33258,6 +33400,13 @@ components:
33258
33400
  type: array
33259
33401
  complianceSignalOptions:
33260
33402
  $ref: '#/components/schemas/CloudConfigurationRuleComplianceSignalOptions'
33403
+ customMessage:
33404
+ description: Custom/Overridden Message for generated signals (used in case
33405
+ of Default rule update).
33406
+ type: string
33407
+ customName:
33408
+ description: Custom/Overridden name (used in case of Default rule update).
33409
+ type: string
33261
33410
  filters:
33262
33411
  description: Additional queries to filter matched events before they are
33263
33412
  processed. This field is deprecated for log detection, signal correlation,
@@ -33589,6 +33738,14 @@ components:
33589
33738
  items:
33590
33739
  $ref: '#/components/schemas/SecurityMonitoringRuleCaseCreate'
33591
33740
  type: array
33741
+ customMessage:
33742
+ description: Custom/Overridden message for generated signals (used in case
33743
+ of Default rule update).
33744
+ type: string
33745
+ customName:
33746
+ description: Custom/Overridden name of the rule (used in case of Default
33747
+ rule update).
33748
+ type: string
33592
33749
  filters:
33593
33750
  description: Additional queries to filter matched events before they are
33594
33751
  processed. This field is deprecated for log detection, signal correlation,
@@ -33688,6 +33845,14 @@ components:
33688
33845
  description: User ID of the user who created the rule.
33689
33846
  format: int64
33690
33847
  type: integer
33848
+ customMessage:
33849
+ description: Custom/Overridden message for generated signals (used in case
33850
+ of Default rule update).
33851
+ type: string
33852
+ customName:
33853
+ description: Custom/Overridden name of the rule (used in case of Default
33854
+ rule update).
33855
+ type: string
33691
33856
  deprecationDate:
33692
33857
  description: When the rule will be deprecated, timestamp in milliseconds.
33693
33858
  format: int64
@@ -34075,6 +34240,14 @@ components:
34075
34240
  items:
34076
34241
  $ref: '#/components/schemas/SecurityMonitoringRuleCaseCreate'
34077
34242
  type: array
34243
+ customMessage:
34244
+ description: Custom/Overridden message for generated signals (used in case
34245
+ of Default rule update).
34246
+ type: string
34247
+ customName:
34248
+ description: Custom/Overridden name of the rule (used in case of Default
34249
+ rule update).
34250
+ type: string
34078
34251
  filters:
34079
34252
  description: Additional queries to filter matched events before they are
34080
34253
  processed. This field is deprecated for log detection, signal correlation,
@@ -34152,6 +34325,10 @@ components:
34152
34325
  properties:
34153
34326
  aggregation:
34154
34327
  $ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
34328
+ customQueryExtension:
34329
+ description: Query extension to append to the logs query.
34330
+ example: a > 3
34331
+ type: string
34155
34332
  dataSource:
34156
34333
  $ref: '#/components/schemas/SecurityMonitoringStandardDataSource'
34157
34334
  distinctFields:
@@ -34215,6 +34392,14 @@ components:
34215
34392
  description: User ID of the user who created the rule.
34216
34393
  format: int64
34217
34394
  type: integer
34395
+ customMessage:
34396
+ description: Custom/Overridden message for generated signals (used in case
34397
+ of Default rule update).
34398
+ type: string
34399
+ customName:
34400
+ description: Custom/Overridden name of the rule (used in case of Default
34401
+ rule update).
34402
+ type: string
34218
34403
  defaultTags:
34219
34404
  description: Default Tags for default rules (included in tags)
34220
34405
  example:
@@ -34661,6 +34846,8 @@ components:
34661
34846
  SecurityMonitoringThirdPartyRuleCase:
34662
34847
  description: Case when signal is generated by a third party rule.
34663
34848
  properties:
34849
+ customStatus:
34850
+ $ref: '#/components/schemas/SecurityMonitoringRuleSeverity'
34664
34851
  name:
34665
34852
  description: Name of the case.
34666
34853
  type: string
@@ -34972,6 +35159,11 @@ components:
34972
35159
  items:
34973
35160
  $ref: '#/components/schemas/SensitiveDataScannerProduct'
34974
35161
  type: array
35162
+ samplings:
35163
+ description: List of sampling rates per product type.
35164
+ items:
35165
+ $ref: '#/components/schemas/SensitiveDataScannerSamplings'
35166
+ type: array
34975
35167
  type: object
34976
35168
  SensitiveDataScannerGroupCreate:
34977
35169
  description: Data related to the creation of a group.
@@ -35403,6 +35595,19 @@ components:
35403
35595
  meta:
35404
35596
  $ref: '#/components/schemas/SensitiveDataScannerMetaVersionOnly'
35405
35597
  type: object
35598
+ SensitiveDataScannerSamplings:
35599
+ description: Sampling configurations for the Scanning Group.
35600
+ properties:
35601
+ product:
35602
+ $ref: '#/components/schemas/SensitiveDataScannerProduct'
35603
+ rate:
35604
+ description: Rate at which data in product type will be scanned, as a percentage.
35605
+ example: 100.0
35606
+ format: double
35607
+ maximum: 100.0
35608
+ minimum: 0.0
35609
+ type: number
35610
+ type: object
35406
35611
  SensitiveDataScannerStandardPattern:
35407
35612
  description: Data containing the standard pattern id.
35408
35613
  properties:
@@ -60442,6 +60647,156 @@ paths:
60442
60647
  permissions:
60443
60648
  - teams_read
60444
60649
  - teams_manage
60650
+ /api/v2/team/{super_team_id}/member_teams:
60651
+ get:
60652
+ description: Get all member teams.
60653
+ operationId: ListMemberTeams
60654
+ parameters:
60655
+ - description: None
60656
+ in: path
60657
+ name: super_team_id
60658
+ required: true
60659
+ schema:
60660
+ type: string
60661
+ - $ref: '#/components/parameters/PageSize'
60662
+ - $ref: '#/components/parameters/PageNumber'
60663
+ - description: List of fields that need to be fetched.
60664
+ explode: false
60665
+ in: query
60666
+ name: fields[team]
60667
+ required: false
60668
+ schema:
60669
+ items:
60670
+ $ref: '#/components/schemas/TeamsField'
60671
+ type: array
60672
+ responses:
60673
+ '200':
60674
+ content:
60675
+ application/json:
60676
+ schema:
60677
+ $ref: '#/components/schemas/TeamsResponse'
60678
+ description: OK
60679
+ '403':
60680
+ $ref: '#/components/responses/ForbiddenResponse'
60681
+ '404':
60682
+ content:
60683
+ application/json:
60684
+ schema:
60685
+ $ref: '#/components/schemas/APIErrorResponse'
60686
+ description: API error response.
60687
+ '429':
60688
+ $ref: '#/components/responses/TooManyRequestsResponse'
60689
+ security:
60690
+ - apiKeyAuth: []
60691
+ appKeyAuth: []
60692
+ - AuthZ:
60693
+ - teams_read
60694
+ summary: Get all member teams
60695
+ tags:
60696
+ - Teams
60697
+ x-pagination:
60698
+ limitParam: page[size]
60699
+ pageParam: page[number]
60700
+ resultsPath: data
60701
+ x-permission:
60702
+ operator: OR
60703
+ permissions:
60704
+ - teams_read
60705
+ x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
60706
+
60707
+ contact [Datadog support](https://docs.datadoghq.com/help/).'
60708
+ post:
60709
+ description: 'Add a member team.
60710
+
60711
+ Adds the team given by the `id` in the body as a member team of the super
60712
+ team.'
60713
+ operationId: AddMemberTeam
60714
+ parameters:
60715
+ - description: None
60716
+ in: path
60717
+ name: super_team_id
60718
+ required: true
60719
+ schema:
60720
+ type: string
60721
+ requestBody:
60722
+ content:
60723
+ application/json:
60724
+ schema:
60725
+ $ref: '#/components/schemas/AddMemberTeamRequest'
60726
+ required: true
60727
+ responses:
60728
+ '204':
60729
+ description: Added
60730
+ '403':
60731
+ $ref: '#/components/responses/ForbiddenResponse'
60732
+ '409':
60733
+ content:
60734
+ application/json:
60735
+ schema:
60736
+ $ref: '#/components/schemas/APIErrorResponse'
60737
+ description: API error response.
60738
+ '429':
60739
+ $ref: '#/components/responses/TooManyRequestsResponse'
60740
+ security:
60741
+ - apiKeyAuth: []
60742
+ appKeyAuth: []
60743
+ - AuthZ:
60744
+ - teams_read
60745
+ summary: Add a member team
60746
+ tags:
60747
+ - Teams
60748
+ x-permission:
60749
+ operator: OR
60750
+ permissions:
60751
+ - teams_read
60752
+ x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
60753
+
60754
+ contact [Datadog support](https://docs.datadoghq.com/help/).'
60755
+ /api/v2/team/{super_team_id}/member_teams/{member_team_id}:
60756
+ delete:
60757
+ description: Remove a super team's member team identified by `member_team_id`.
60758
+ operationId: RemoveMemberTeam
60759
+ parameters:
60760
+ - description: None
60761
+ in: path
60762
+ name: super_team_id
60763
+ required: true
60764
+ schema:
60765
+ type: string
60766
+ - description: None
60767
+ in: path
60768
+ name: member_team_id
60769
+ required: true
60770
+ schema:
60771
+ type: string
60772
+ responses:
60773
+ '204':
60774
+ description: No Content
60775
+ '403':
60776
+ $ref: '#/components/responses/ForbiddenResponse'
60777
+ '404':
60778
+ content:
60779
+ application/json:
60780
+ schema:
60781
+ $ref: '#/components/schemas/APIErrorResponse'
60782
+ description: API error response.
60783
+ '429':
60784
+ $ref: '#/components/responses/TooManyRequestsResponse'
60785
+ security:
60786
+ - apiKeyAuth: []
60787
+ appKeyAuth: []
60788
+ - AuthZ:
60789
+ - teams_read
60790
+ summary: Remove a member team
60791
+ tags:
60792
+ - Teams
60793
+ x-permission:
60794
+ operator: OR
60795
+ permissions:
60796
+ - teams_read
60797
+ x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
60798
+
60799
+ contact [Datadog support](https://docs.datadoghq.com/help/).'
60445
60800
  /api/v2/team/{team_id}:
60446
60801
  delete:
60447
60802
  description: Remove a team using the team's `id`.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.36.0/2025-06-23
4
+
5
+ ### Fixed
6
+ * Fix basic auth requirements [#2481](https://github.com/DataDog/datadog-api-client-ruby/pull/2481)
7
+ * Add support for the api_security detection rule type [#2476](https://github.com/DataDog/datadog-api-client-ruby/pull/2476)
8
+
9
+ ### Added
10
+ * Microsoft Sentinel Public API support [#2479](https://github.com/DataDog/datadog-api-client-ruby/pull/2479)
11
+ * Add hash field to actions in CWS agent rules [#2470](https://github.com/DataDog/datadog-api-client-ruby/pull/2470)
12
+ * Add custom fields to Rule update/validate API public documentation. [#2466](https://github.com/DataDog/datadog-api-client-ruby/pull/2466)
13
+ * SDCD-1142: adding `custom_tags` optional attribute to DORA API spec [#2451](https://github.com/DataDog/datadog-api-client-ruby/pull/2451)
14
+ * Add sampling fields to SDS spec [#2447](https://github.com/DataDog/datadog-api-client-ruby/pull/2447)
15
+ * Add API spec for team hierarchy APIs [#2420](https://github.com/DataDog/datadog-api-client-ruby/pull/2420)
16
+
17
+ ### Changed
18
+ * Update events intake specs for v2 Events post endpoint [#2460](https://github.com/DataDog/datadog-api-client-ruby/pull/2460)
19
+
3
20
  ## 2.35.0/2025-06-16
4
21
 
5
22
  ### Fixed
@@ -24,6 +24,9 @@ body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({
24
24
  scope: "process",
25
25
  }),
26
26
  }),
27
+ DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAction.new({
28
+ _hash: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleActionHash.new({}),
29
+ }),
27
30
  ],
28
31
  }),
29
32
  type: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleType::AGENT_RULE,
@@ -0,0 +1,30 @@
1
+ # Create a Microsoft Sentinel custom destination returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
5
+
6
+ body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({
7
+ data: DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition.new({
8
+ attributes: DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes.new({
9
+ enabled: false,
10
+ forward_tags: false,
11
+ forward_tags_restriction_list: [
12
+ "datacenter",
13
+ "host",
14
+ ],
15
+ forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::ALLOW_LIST,
16
+ forwarder_destination: DatadogAPIClient::V2::CustomDestinationForwardDestinationMicrosoftSentinel.new({
17
+ type: DatadogAPIClient::V2::CustomDestinationForwardDestinationMicrosoftSentinelType::MICROSOFT_SENTINEL,
18
+ tenant_id: "f3c9a8a1-4c2e-4d2e-b911-9f3c28c3c8b2",
19
+ client_id: "9a2f4d83-2b5e-429e-a35a-2b3c4182db71",
20
+ data_collection_endpoint: "https://my-dce-5kyl.eastus-1.ingest.monitor.azure.com",
21
+ data_collection_rule_id: "dcr-000a00a000a00000a000000aa000a0aa",
22
+ stream_name: "Custom-MyTable",
23
+ }),
24
+ name: "Nginx logs",
25
+ query: "source:nginx",
26
+ }),
27
+ type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
28
+ }),
29
+ })
30
+ p api_instance.create_logs_custom_destination(body)
@@ -7,7 +7,7 @@ body = DatadogAPIClient::V2::MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.n
7
7
  data: DatadogAPIClient::V2::MicrosoftTeamsWorkflowsWebhookHandleRequestData.new({
8
8
  attributes: DatadogAPIClient::V2::MicrosoftTeamsWorkflowsWebhookHandleRequestAttributes.new({
9
9
  name: "Example-Microsoft-Teams-Integration",
10
- url: "https://fake.url.com",
10
+ url: "https://example.logic.azure.com/workflows/123",
11
11
  }),
12
12
  type: DatadogAPIClient::V2::MicrosoftTeamsWorkflowsWebhookHandleType::WORKFLOWS_WEBHOOK_HANDLE,
13
13
  }),
@@ -0,0 +1,15 @@
1
+ # Add a member team returns "Added" response
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.add_member_team".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::TeamsAPI.new
8
+
9
+ body = DatadogAPIClient::V2::AddMemberTeamRequest.new({
10
+ data: DatadogAPIClient::V2::MemberTeam.new({
11
+ id: "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
12
+ type: DatadogAPIClient::V2::MemberTeamType::MEMBER_TEAMS,
13
+ }),
14
+ })
15
+ api_instance.add_member_team("super_team_id", body)
@@ -0,0 +1,8 @@
1
+ # Get all member teams returns "OK" response
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.list_member_teams".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::TeamsAPI.new
8
+ p api_instance.list_member_teams("super_team_id")
@@ -0,0 +1,8 @@
1
+ # Get all member teams returns "OK" response with pagination
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.list_member_teams".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::TeamsAPI.new
8
+ api_instance.list_member_teams_with_pagination("super_team_id") { |item| puts item }
@@ -0,0 +1,8 @@
1
+ # Remove a member team returns "No Content" response
2
+
3
+ require "datadog_api_client"
4
+ DatadogAPIClient.configure do |config|
5
+ config.unstable_operations["v2.remove_member_team".to_sym] = true
6
+ end
7
+ api_instance = DatadogAPIClient::V2::TeamsAPI.new
8
+ api_instance.remove_member_team("super_team_id", "member_team_id")