Partager via


JitNetworkAccessPortRule Constructors

Definition

Overloads

JitNetworkAccessPortRule()

Initializes a new instance of the JitNetworkAccessPortRule class.

JitNetworkAccessPortRule(Int32, String, String, String, IList<String>)

Initializes a new instance of the JitNetworkAccessPortRule class.

JitNetworkAccessPortRule()

Initializes a new instance of the JitNetworkAccessPortRule class.

public JitNetworkAccessPortRule ();
Public Sub New ()

Applies to

JitNetworkAccessPortRule(Int32, String, String, String, IList<String>)

Initializes a new instance of the JitNetworkAccessPortRule class.

public JitNetworkAccessPortRule (int number, string protocol, string maxRequestAccessDuration, string allowedSourceAddressPrefix = default, System.Collections.Generic.IList<string> allowedSourceAddressPrefixes = default);
new Microsoft.Azure.Management.Security.Models.JitNetworkAccessPortRule : int * string * string * string * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Security.Models.JitNetworkAccessPortRule
Public Sub New (number As Integer, protocol As String, maxRequestAccessDuration As String, Optional allowedSourceAddressPrefix As String = Nothing, Optional allowedSourceAddressPrefixes As IList(Of String) = Nothing)

Parameters

number
Int32
protocol
String

Possible values include: 'TCP', 'UDP', '*'

maxRequestAccessDuration
String

Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day

allowedSourceAddressPrefix
String

Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".

allowedSourceAddressPrefixes
IList<String>

Mutually exclusive with the "allowedSourceAddressPrefix" parameter.

Applies to