Security Monitoring

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.

get/api/v2/security_monitoring/rules/{rule_id}/convert

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/security_monitoring/rules/{rule_id}/convert
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: security_monitoring_rules_read

Path parameters

rule_idstring required

The ID of the rule.

Response

OK

ruleIdstring

the ID of the rule.

terraformContentstring

Terraform string as a result of converting the rule from JSON.

Changes

No recorded changes to this operation across all 1 revision of this API.