NetworkSecurityGroupRule.withSourcePortRanges(List<String> sourcePortRanges) Method

Definition

Set the sourcePortRanges property: Valid values are '*' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e. 100-200). The ports should in the range of 0 to 65535 and the port ranges or ports can't overlap. If any other values are provided the request fails with HTTP status code 400. Default value will be *.

public NetworkSecurityGroupRule withSourcePortRanges(List<String> sourcePortRanges)

Parameters

sourcePortRanges
java.util.List<java.lang.String>

the sourcePortRanges value to set.

Returns

the NetworkSecurityGroupRule object itself.

Applies to