Interface NetworkSecurityRule

All Superinterfaces:
ChildResource<NetworkSecurityGroup>, HasInner<com.microsoft.azure.management.network.implementation.SecurityRuleInner>, HasName, HasParent<NetworkSecurityGroup>, Indexable

public interface NetworkSecurityRule extends HasInner<com.microsoft.azure.management.network.implementation.SecurityRuleInner>, ChildResource<NetworkSecurityGroup>
A network security rule in a network security group.
  • Method Details

    • direction

      Returns:
      the direction of the network traffic that the network security rule applies to.
    • protocol

      Returns:
      the network protocol the rule applies to
    • description

      String description()
      Returns:
      the user-defined description of the security rule
    • access

      Returns:
      the type of access the rule enforces
    • sourceAddressPrefix

      String sourceAddressPrefix()
      Returns:
      the source address prefix the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "*" means "any"
    • sourceAddressPrefixes

      List<String> sourceAddressPrefixes()
      Returns:
      the list of source address prefixes the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "*" means "any", or IP addresses
    • sourcePortRange

      String sourcePortRange()
      Returns:
      the source port range that the rule applies to, in the format "##-##", where "*" means "any"
    • sourcePortRanges

      List<String> sourcePortRanges()
      Returns:
      the source port ranges that the rule applies to, in the format "##-##", where "*" means "any"
    • destinationAddressPrefix

      String destinationAddressPrefix()
      Returns:
      the destination address prefix the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "*" means "any"
    • destinationAddressPrefixes

      List<String> destinationAddressPrefixes()
      Returns:
      the list of destination address prefixes the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "*" means "any", or IP addresses
    • destinationPortRange

      String destinationPortRange()
      Returns:
      the destination port range that the rule applies to, in the format "##-##", where "*" means any
    • destinationPortRanges

      List<String> destinationPortRanges()
      Returns:
      the destination port ranges that the rule applies to, in the format "##-##", where "*" means any
    • priority

      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
    • sourceApplicationSecurityGroupIds

      Set<String> sourceApplicationSecurityGroupIds()
      Returns:
      list of application security group ids specified as source
    • destinationApplicationSecurityGroupIds

      Set<String> destinationApplicationSecurityGroupIds()
      Returns:
      list of application security group ids specified as destination