Interface NetworkSecurityRule

All Superinterfaces:
ChildResource<NetworkSecurityGroup>, HasInnerModel<SecurityRuleInner>, HasName, HasParent<NetworkSecurityGroup>, Indexable

public interface NetworkSecurityRule extends HasInnerModel<SecurityRuleInner>, ChildResource<NetworkSecurityGroup>
A network security rule in a network security group.
  • Method Details

    • direction

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

      Gets the network protocol the rule applies to.
      Returns:
      the network protocol the rule applies to
    • description

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

      Gets the type of access the rule enforces.
      Returns:
      the type of access the rule enforces
    • sourceAddressPrefix

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

      List<String> sourceAddressPrefixes()
      Gets the list of source address prefixes the rule applies to.
      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()
      Gets the source port range that the rule applies to.
      Returns:
      the source port range that the rule applies to, in the format "##-##", where "*" means "any"
    • sourcePortRanges

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

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

      List<String> destinationAddressPrefixes()
      Gets the list of destination address prefixes the rule applies to.
      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()
      Gets the destination port range that the rule applies to.
      Returns:
      the destination port range that the rule applies to, in the format "##-##", where "*" means any
    • destinationPortRanges

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

      int priority()
      Gets 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.
      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()
      Gets list of application security group ids specified as source.
      Returns:
      list of application security group ids specified as source
    • destinationApplicationSecurityGroupIds

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