ArmNetworkCloudModelFactory.NetworkCloudAccessBridgeSecurityRule 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.NetworkCloud.Models.NetworkCloudAccessBridgeSecurityRule NetworkCloudAccessBridgeSecurityRule(string description = default, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudSecurityRuleDirection direction = default, System.Collections.Generic.IEnumerable<string> ipv4Addresses = default, System.Collections.Generic.IEnumerable<string> ipv6Addresses = default, string port = default);
static member NetworkCloudAccessBridgeSecurityRule : string * Azure.ResourceManager.NetworkCloud.Models.NetworkCloudSecurityRuleDirection * seq<string> * seq<string> * string -> Azure.ResourceManager.NetworkCloud.Models.NetworkCloudAccessBridgeSecurityRule
Public Shared Function NetworkCloudAccessBridgeSecurityRule (Optional description As String = Nothing, Optional direction As NetworkCloudSecurityRuleDirection = Nothing, Optional ipv4Addresses As IEnumerable(Of String) = Nothing, Optional ipv6Addresses As IEnumerable(Of String) = Nothing, Optional port As String = Nothing) As NetworkCloudAccessBridgeSecurityRule
Parameters
- description
- String
The user provided value describing this rule.
- direction
- NetworkCloudSecurityRuleDirection
The direction of allowed network traffic based on the rule.
- ipv4Addresses
- IEnumerable<String>
The set of IPv4 addresses permitted as the source or destination of the security rule. For as single address, utilize a /32 (CIDR notation). One or both Ipv4Addresses and Ipv6Addresses must be specified. Example formats: 10.10.10.10-10.10.10.20 or 10.10.10.10/24.
- ipv6Addresses
- IEnumerable<String>
The set of IPv6 addresses permitted as the source or destination of the security rule. For as single address, utilize a /128 (CIDR notation). One or both Ipv4Addresses and Ipv6Addresses must be specified. Example formats: 2001:db8:abcd::1-2001:db8:abcd::ff or 2001:db8:abcd::1/64.
- port
- String
The source or destination port or port range. Example 24562 or 24562-24570.
Returns
A new NetworkCloudAccessBridgeSecurityRule instance for mocking.