Up-to-date reference of API arguments for WAF alarm notification you can get at documentation portal
opentelekomcloud_waf_alarm_notification_v1¶
Manages a WAF alarm notification resource within OpenTelekomCloud.
Example Usage¶
resource "opentelekomcloud_smn_topic_v2" "topic_1" {
name = "topic_alarm"
}
resource "opentelekomcloud_waf_alarm_notification_v1" "notification_1" {
enabled = true
topic_urn = opentelekomcloud_smn_topic_v2.topic_1.id
send_frequency = 30
times = 200
threats = ["cc", "cmdi"]
}
Argument Reference¶
The following arguments are supported:
enabled- (Required) Specifies whether to send an alarm notification. The options aretrueandfalse.topic_urn- (Required) Specifies the SMN topic to which an alarm is sent.
-> The selected topic must be a topic whose subscription information has been configured.
send_frequency- (Required) Specifies the minimum interval between two alarms in minutes. The options are5,15,30, and60.times- (Required) Specifies the alarm threshold. Alarm notifications are sent when the number of attacks is greater than or equal to the threshold within the configured period. This value is greater than or equal to1.threat- (Required) Specifies the list of event types. Possible values are:allrefers to all types of events.ccrefers to CC attack.cmdirefers to command injection.customrefers to Precise Protection events.illegalrefers to invalid requests.sqlirefers to SQL injection.lfirefers to local file inclusion.robotrefers to malicious crawlers.antitamperrefers to Web Tamper Protection events.rfirefers to remote file inclusion.vulnrefers to other types of attacks.xssrefers to XSS attack.whiteblackiprefers to Blacklist and Whitelist events.webshellrefers to webshells.