Sha256: 4c28943facbafbb9096b4e6c541710439da87bdf2a7d7dd0a7e1982fe41c99a7

Contents?: true

Size: 333 Bytes

Versions: 6

Compression:

Stored size: 333 Bytes

Contents

# Convert an existing rule from JSON to Terraform returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new

# there is a valid "security_rule" in the system
SECURITY_RULE_ID = ENV["SECURITY_RULE_ID"]
p api_instance.convert_existing_security_monitoring_rule(SECURITY_RULE_ID)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb
datadog_api_client-2.28.1 examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb
datadog_api_client-2.27.1 examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb
datadog_api_client-2.26.1 examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb
datadog_api_client-2.26.0 examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb
datadog_api_client-2.25.0 examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb