alicloud_ddoscoo_ports
更新时间:
This data source provides the Ddoscoo Ports of the current Alibaba Cloud user.
-> NOTE: Available since v1.123.0.
Example Usage
Basic Usage
data "alicloud_ddoscoo_ports" "example" {
instance_id = "ddoscoo-cn-6ja1rl4j****"
ids = ["ddoscoo-cn-6ja1rl4j****:7001:tcp"]
}
output "first_ddoscoo_port_id" {
value = data.alicloud_ddoscoo_ports.example.ports.0.id
}
Argument Reference
The following arguments are supported:
frontend_port- (Optional, ForceNew) The forwarding port.frontend_protocol- (Optional, ForceNew) The forwarding protocol. Valid valuestcpandudp.ids- (Optional, ForceNew, Computed) A list of Port IDs.instance_id- (Required, ForceNew) The DdosCoo instance ID.output_file- (Optional) File name where to save data source results (after runningterraform plan).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ports- A list of DdosCoo Ports. Each element contains the following attributes:backend_port- The source station port.frontend_port- The forwarding port.frontend_protocol- The forwarding protocol.instance_id- The Ddoscoo instance ID.id- The ID of the Port.real_servers- List of source IP addresses.
该文章对您有帮助吗?