Condividi tramite


NetworkSecurityGroupRule.SourcePortRanges Property

Definition

Gets or sets the source port ranges to match for the rule.

[Newtonsoft.Json.JsonProperty(PropertyName="sourcePortRanges")]
public System.Collections.Generic.IList<string> SourcePortRanges { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="sourcePortRanges")>]
member this.SourcePortRanges : System.Collections.Generic.IList<string> with get, set
Public Property SourcePortRanges As IList(Of String)

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

Valid values are '*' (for all ports 0 - 65535), a specific port (i.e. 22), or a port range (i.e. 100-200). The ports must be in the range of 0 to 65535. Each entry in this collection must not overlap any other entry (either a range or an individual port). If any other values are provided the request fails with HTTP status code 400. The default value is '*'.

Applies to