ArmNetworkModelFactory.InboundSecurityRules Method
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.
public static Azure.ResourceManager.Network.Models.InboundSecurityRules InboundSecurityRules(string name = default, Azure.ResourceManager.Network.Models.InboundSecurityRulesProtocol? protocol = default, string sourceAddressPrefix = default, int? destinationPortRange = default, System.Collections.Generic.IEnumerable<string> destinationPortRanges = default, System.Collections.Generic.IEnumerable<string> appliesOn = default);
static member InboundSecurityRules : string * Nullable<Azure.ResourceManager.Network.Models.InboundSecurityRulesProtocol> * string * Nullable<int> * seq<string> * seq<string> -> Azure.ResourceManager.Network.Models.InboundSecurityRules
Public Shared Function InboundSecurityRules (Optional name As String = Nothing, Optional protocol As Nullable(Of InboundSecurityRulesProtocol) = Nothing, Optional sourceAddressPrefix As String = Nothing, Optional destinationPortRange As Nullable(Of Integer) = Nothing, Optional destinationPortRanges As IEnumerable(Of String) = Nothing, Optional appliesOn As IEnumerable(Of String) = Nothing) As InboundSecurityRules
Parameters
- name
- String
Name of the rule.
- protocol
- Nullable<InboundSecurityRulesProtocol>
Protocol. This should be either TCP or UDP.
- sourceAddressPrefix
- String
The CIDR or source IP range.
NVA port ranges to be opened up. One needs to provide specific ports.
- destinationPortRanges
- IEnumerable<String>
NVA port ranges to be opened up. One can provide a range of ports. Allowed port value between 0 and 65535.
- appliesOn
- IEnumerable<String>
Public IP name in case of Permanent Rule type & Interface Name in case of Auto Expire Rule type.
Returns
A new InboundSecurityRules instance for mocking.