Skip to content

Commit 27f9b78

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add rule type conversion limitations for Security Monitoring (#2949)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent f59ccb4 commit 27f9b78

File tree

2 files changed

+42
-8
lines changed

2 files changed

+42
-8
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79133,9 +79133,20 @@ paths:
7913379133
/api/v2/security_monitoring/rules/convert:
7913479134
post:
7913579135
description: 'Convert a rule that doesn''t (yet) exist from JSON to Terraform
79136-
for datadog provider
79136+
for Datadog provider
7913779137

79138-
resource datadog_security_monitoring_rule.'
79138+
resource `datadog_security_monitoring_rule`. You can do so for the following
79139+
rule types:
79140+
79141+
- App and API Protection
79142+
79143+
- Cloud SIEM (log detection and signal correlation)
79144+
79145+
- Workload Protection
79146+
79147+
79148+
You can convert Cloud Security configuration rules using Terraform''s [Datadog
79149+
Cloud Configuration Rule resource](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/cloud_configuration_rule).'
7913979150
operationId: ConvertSecurityMonitoringRuleFromJSONToTerraform
7914079151
requestBody:
7914179152
content:
@@ -79352,9 +79363,20 @@ paths:
7935279363
- security_monitoring_rules_write
7935379364
/api/v2/security_monitoring/rules/{rule_id}/convert:
7935479365
get:
79355-
description: 'Convert an existing rule from JSON to Terraform for datadog provider
79366+
description: 'Convert an existing rule from JSON to Terraform for Datadog provider
79367+
79368+
resource `datadog_security_monitoring_rule`. You can do so for the following
79369+
rule types:
79370+
79371+
- App and API Protection
79372+
79373+
- Cloud SIEM (log detection and signal correlation)
79374+
79375+
- Workload Protection
79376+
7935679377

79357-
resource datadog_security_monitoring_rule.'
79378+
You can convert Cloud Security configuration rules using Terraform''s [Datadog
79379+
Cloud Configuration Rule resource](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/cloud_configuration_rule).'
7935879380
operationId: ConvertExistingSecurityMonitoringRule
7935979381
parameters:
7936079382
- $ref: '#/components/parameters/SecurityMonitoringRuleID'

src/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,8 +2216,14 @@ def convert_existing_security_monitoring_rule(
22162216
) -> SecurityMonitoringRuleConvertResponse:
22172217
"""Convert an existing rule from JSON to Terraform.
22182218
2219-
Convert an existing rule from JSON to Terraform for datadog provider
2220-
resource datadog_security_monitoring_rule.
2219+
Convert an existing rule from JSON to Terraform for Datadog provider
2220+
resource ``datadog_security_monitoring_rule``. You can do so for the following rule types:
2221+
2222+
* App and API Protection
2223+
* Cloud SIEM (log detection and signal correlation)
2224+
* Workload Protection
2225+
2226+
You can convert Cloud Security configuration rules using Terraform's `Datadog Cloud Configuration Rule resource <https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/cloud_configuration_rule>`_.
22212227
22222228
:param rule_id: The ID of the rule.
22232229
:type rule_id: str
@@ -2254,8 +2260,14 @@ def convert_security_monitoring_rule_from_json_to_terraform(
22542260
) -> SecurityMonitoringRuleConvertResponse:
22552261
"""Convert a rule from JSON to Terraform.
22562262
2257-
Convert a rule that doesn't (yet) exist from JSON to Terraform for datadog provider
2258-
resource datadog_security_monitoring_rule.
2263+
Convert a rule that doesn't (yet) exist from JSON to Terraform for Datadog provider
2264+
resource ``datadog_security_monitoring_rule``. You can do so for the following rule types:
2265+
2266+
* App and API Protection
2267+
* Cloud SIEM (log detection and signal correlation)
2268+
* Workload Protection
2269+
2270+
You can convert Cloud Security configuration rules using Terraform's `Datadog Cloud Configuration Rule resource <https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/cloud_configuration_rule>`_.
22592271
22602272
:type body: SecurityMonitoringRuleConvertPayload
22612273
:rtype: SecurityMonitoringRuleConvertResponse

0 commit comments

Comments
 (0)