NsgSecurityRule Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NsgSecurityRule() |
Initializes a new instance of the NsgSecurityRule class. |
NsgSecurityRule(String, String, String, String, String, String, Nullable<Int32>, String, String, String) |
Initializes a new instance of the NsgSecurityRule class. |
NsgSecurityRule()
Initializes a new instance of the NsgSecurityRule class.
public NsgSecurityRule ();
Public Sub New ()
Applies to
NsgSecurityRule(String, String, String, String, String, String, Nullable<Int32>, String, String, String)
Initializes a new instance of the NsgSecurityRule class.
public NsgSecurityRule (string name = default, string access = default, string description = default, string destinationAddressPrefix = default, string destinationPortRange = default, string direction = default, int? priority = default, string protocol = default, string sourceAddressPrefix = default, string sourcePortRange = default);
new Microsoft.Azure.Management.Migrate.ResourceMover.Models.NsgSecurityRule : string * string * string * string * string * string * Nullable<int> * string * string * string -> Microsoft.Azure.Management.Migrate.ResourceMover.Models.NsgSecurityRule
Public Sub New (Optional name As String = Nothing, Optional access As String = Nothing, Optional description As String = Nothing, Optional destinationAddressPrefix As String = Nothing, Optional destinationPortRange As String = Nothing, Optional direction As String = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional protocol As String = Nothing, Optional sourceAddressPrefix As String = Nothing, Optional sourcePortRange As String = Nothing)
Parameters
- name
- String
Gets or sets the Security rule name.
- access
- String
Gets or sets whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”.
- description
- String
Gets or sets a description for this rule. Restricted to 140 chars.
- destinationAddressPrefix
- String
Gets or sets destination address prefix. CIDR or source IP range. A “*” can also be used to match all source IPs. Default tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used.
- destinationPortRange
- String
Gets or sets Destination Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports.
- direction
- String
Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
Gets or sets the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- protocol
- String
Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*).
- sourceAddressPrefix
- String
Gets or sets source address prefix. CIDR or source IP range. A “*” can also be used to match all source IPs. Default tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. If this is an ingress rule, specifies where network traffic originates from.
- sourcePortRange
- String
Gets or sets Source Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports.