alicloud_threat_detection_baseline_strategy
更新时间:
Provides a Threat Detection Baseline Strategy resource.
For information about Threat Detection Baseline Strategy and how to use it, see What is Baseline Strategy.
-> NOTE: Available since v1.195.0.
Example Usage
Basic Usage
resource "alicloud_threat_detection_baseline_strategy" "default" {
custom_type = "custom"
end_time = "08:00:00"
baseline_strategy_name = "apispec"
cycle_days = 3
target_type = "groupId"
start_time = "05:00:00"
risk_sub_type_name = "hc_exploit_redis"
}
Argument Reference
The following arguments are supported:
baseline_strategy_name
- (Required, ForceNew) Policy name.custom_type
- (Required) The type of policy. Value:- common: standard policy
- custom: custom policy
cycle_days
- (Required) The detection period of the policy.cycle_start_time
- (Optional) The detection period of the policy. Value:- 0: 0:00~06:00
- 6: 6:00~12:00
- 12: 12:00~18:00
- 18: 18:00~24:00
end_time
- (Required) The baseline check policy execution end time.risk_sub_type_name
- (Required) Detection item subtype.start_time
- (Required) The baseline check policy start time.target_type
- (Required) The method of adding assets that take effect from the policy. Value:- groupId: Added by asset group.
- uuid: Add by single asset.
Attributes Reference
The following attributes are exported:
id
- The ID of the baseline check policy, same withbaseline_strategy_id
.baseline_strategy_id
- The ID of the baseline check policy.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Baseline Strategy.delete
- (Defaults to 5 mins) Used when delete the Baseline Strategy.update
- (Defaults to 5 mins) Used when update the Baseline Strategy.
Import
Threat Detection Baseline Strategy can be imported using the id, e.g.
$terraform import alicloud_threat_detection_baseline_strategy.example <id>
文档内容是否对您有帮助?