provider Security Monitoring GET
/api/v2/security_monitoring/rules/{rule_id}/convert @utdk/datadog
/api/v2/security_monitoring/rules/{rule_id}/convert Convert an existing rule from JSON to Terraform
Convert an existing rule from JSON to Terraform for Datadog provider
resource `datadog_security_monitoring_rule`. You can do so for the following rule types:
- App and API Protection
- Cloud SIEM (log detection and signal correlation)
- Workload Protection
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).
- rule_id path required
- The ID of the rule.
- string
Try it
Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import datadog from '@utdk/datadog';
await datadog.convertexistingsecuritymonitoringrule()