alicloud_threat_detection_honeypot_probes
更新时间:
This data source provides Threat Detection Honeypot Probe available to the user.What is Honeypot Probe
-> NOTE: Available in 1.195.0+
Example Usage
variable "name" {
default = "tf-testAccThreatDetectionHoneypotProbe"
}
resource "alicloud_threat_detection_honeypot_probe" "default" {
uuid = "e52c7872-29d1-4aa1-9908-0299abd53606"
probe_type = "host_probe"
control_node_id = "e1397077-4941-4b14-b533-ca2bdebd00a3"
ping = true
honeypot_bind_list {
bind_port_list {
start_port = 80
end_port = 80
}
honeypot_id = "4925bf9784de992ecd017ad051528a03b3927ef814eeff76c2ebb3ab9a84bf05"
}
display_name = var.name
arp = true
}
data "alicloud_threat_detection_honeypot_probes" "default" {
ids = ["${alicloud_threat_detection_honeypot_probe.default.id}"]
display_name = var.name
probe_type = "host_probe"
enable_details = true
}
output "alicloud_threat_detection_honeypot_probe_example_id" {
value = data.alicloud_threat_detection_honeypot_probes.default.probes.0.id
}
Argument Reference
The following arguments are supported:
display_name- (ForceNew, Optional) Probe nameprobe_type- (ForceNew, Optional) Probe typeids- (Optional, ForceNew, Computed) A list of Honeypot Probe IDs.output_file- (Optional) File name where to save data source results (after runningterraform plan).enable_details- (Optional, ForceNew) Default tofalse. Set it totruecan output more details about resource attributes.name_regex- (Optional, ForceNew) A regex string to filter results by display name.
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids- A list of Honeypot Probe IDs.probes- A list of Honeypot Probe Entries. Each element contains the following attributes:id- The ID of the honeypot probe. Its value is the same ashoneypot_probe_id.control_node_id- The ID of the management node.display_name- Probe name.honeypot_probe_id- The first ID of the resourceprobe_type- Probe type, supporthost_probeandvpc_black_hole_probe.status- The status of the resource.uuid- Machine uuid. Has a value when the type ishost_probe.vpc_id- The ID of the VPC. Has a value when the type isvpc_black_hole_probe.ping- Ping scan detection. Value:true: Enable false: Disabled. Available whenenable_detailsis on.arp- ARP spoofing detection.-true: Enable-false: Disabled. Available whenenable_detailsis on.service_ip_list- Listen to the IP address list. Available whenenable_detailsis on.proxy_ip- Proxy IP. Available whenenable_detailsis on.bind_port_list- List of listening ports. Available whenenable_detailsis on.bind_port- Whether to bind the port.end_port- End port.fixed- Whether the port is fixed.start_port- Start port.target_port- Destination port.
该文章对您有帮助吗?