Up-to-date reference of API arguments for WAF dedicated Known Attack Source rule you can get at documentation portal.
opentelekomcloud_waf_dedicated_known_attack_source_rule_v1¶
Manages a WAF Dedicated Known Attack Source Rule resource within OpenTelekomCloud.
Example Usage¶
resource "opentelekomcloud_waf_dedicated_policy_v1" "policy_1" {
name = "policy_ka"
}
resource "opentelekomcloud_waf_dedicated_known_attack_source_rule_v1" "rule_1" {
policy_id = opentelekomcloud_waf_dedicated_policy_v1.policy_1.id
block_time = 300
category = "long_cookie_block"
description = "test description"
}
Argument Reference¶
The following arguments are supported:
policy_id- (Required, ForceNew, String) The WAF policy ID. Changing this creates a new rule.block_time- (Required, Int) Block duration, in seconds. If prefix long is selected for the rule type, the value forblock_timeranges from301to1800. If prefix short is selected for the rule type, the value forblock_timeranges from0to300.category- (Required, ForceNew, String) Type of the know attack source rule. Enumeration values:long_ip_blocklong_cookie_blocklong_params_blockshort_ip_blockshort_cookie_blockshort_params_block
description- (Optional, String) Rule description.
Attributes Reference¶
The following attributes are exported:
id- ID of the rule.created_at- Timestamp the rule is created.
Import¶
Dedicated WAF Known Attack Source Rules can be imported using policy_id/id, e.g.
terraform import opentelekomcloud_waf_dedicated_known_attack_source_rule_v1.rule_1 ff95e71c8ae74eba9887193ab22c5757/b39f3a5a1b4f447a8030f0b0703f47f5