NetworkSecurityRule Interface
public interface NetworkSecurityRule extends HasInner,ChildResource
A network security rule in a network security group.
Method Summary
Modifier and Type | Method and Description |
---|---|
Security |
access() |
String | description() |
String | destinationAddressPrefix() |
String | destinationPortRange() |
Security |
direction() |
int | priority() |
Security |
protocol() |
String | sourceAddressPrefix() |
String | sourcePortRange() |
Inherited Members
Method Details
access
public SecurityRuleAccess access()
Returns:
the type of access the rule enforces
description
public String description()
Returns:
the user-defined description of the security rule
destinationAddressPrefix
public String destinationAddressPrefix()
Returns:
the destination address prefix the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "*" means "any"
destinationPortRange
public String destinationPortRange()
Returns:
the destination port range that the rule applies to, in the format "##-##", where "*" means any
direction
public SecurityRuleDirection direction()
Returns:
the direction of the network traffic that the network security rule applies to.
priority
public int priority()
Returns:
the priority number of this rule based on which this rule will be applied relative to the priority numbers of any other rules specified for this network security group
protocol
public SecurityRuleProtocol protocol()
Returns:
the network protocol the rule applies to
sourceAddressPrefix
public String sourceAddressPrefix()
Returns:
the source address prefix the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "*" means "any"
sourcePortRange
public String sourcePortRange()
Returns:
the source port range that the rule applies to, in the format "##-##", where "*" means "any"
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java