v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Security Monitoring

Export security monitoring resource to Terraform

Export a security monitoring resource to a Terraform configuration. The resource_type path parameter specifies the type of resource to export and must be one of suppressions, critical_assets, security_filters, or rules. For rules, partner rules cannot be exported and return a 400 error.

get/api/v2/security_monitoring/terraform/{resource_type}/{resource_id}

Path parameters

resource_type'suppressions' | 'critical_assets' | 'security_filters' | 'rules' required

The type of security monitoring resource to export to Terraform.

The type of security monitoring resource to export.

resource_idstring required

The ID of the security monitoring resource to export.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "resource_id": "abc-123",
      "type_name": "datadog_security_monitoring_suppression"
    },
    "id": "datadog_security_monitoring_suppression|abc-123",
    "type": "format_resource"
  }
}