ports

@JvmName(name = "vaopsqgyhsrrlqms")
suspend fun ports(value: Output<List<String>>)
@JvmName(name = "idjjbdwyxexblhqr")
suspend fun ports(value: List<String>?)

Parameters

value

This field can only be used:

  • If IPProtocol is one of TCP, UDP, or SCTP.

  • By internal TCP/UDP load balancers, backend service-based network load balancers, internal protocol forwarding and when protocol is not L3_DEFAULT. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports and port_range fields are mutually exclusive.


@JvmName(name = "jlbabdcinxbgrgdv")
suspend fun ports(vararg values: Output<String>)


@JvmName(name = "aagbawegwolilxaa")
suspend fun ports(values: List<Output<String>>)
@JvmName(name = "evydkxlogyhxgvtm")
suspend fun ports(vararg values: String)

Parameters

values

This field can only be used:

  • If IPProtocol is one of TCP, UDP, or SCTP.

  • By internal TCP/UDP load balancers, backend service-based network load balancers, internal protocol forwarding and when protocol is not L3_DEFAULT. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports and port_range fields are mutually exclusive.