ConvertExistingSecurityMonitoringRule
Convert Datadog security monitoring rules from JSON to Terraform format for the datadog provider resource datadog_security_monitoring_rule. Simplify rule management in Terraform configurations.
Instructions
Convert an existing rule from JSON to Terraform for datadog provider resource datadog_security_monitoring_rule.
Path Parameters:
rule_id (Required): The ID of the rule.
Responses:
200 (Success): OK
Content-Type:
application/jsonResponse Properties:
terraformContent: Terraform string as a result of converting the rule from JSON.
Example:
{
"terraformContent": "string"
}400: Bad Request
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}403: Not Authorized
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}404: Not Found
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}429: Too many requests
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rule_id": "<rule_id>"
},
"name": "ConvertExistingSecurityMonitoringRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | The ID of the rule. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terraformContent | No | Terraform string as a result of converting the rule from JSON. |