NetworkSecurityRule Interface

Implements

ChildResource<NetworkSecurityGroup> HasInner<com.microsoft.azure.management.network.implementation.SecurityRuleInner>

public interface NetworkSecurityRule
extends HasInner<com.microsoft.azure.management.network.implementation.SecurityRuleInner>, ChildResource<NetworkSecurityGroup>

A network security rule in a network security group.

Method Summary

Modifier and Type Method and Description
abstract SecurityRuleAccess access()
abstract java.lang.String description()
abstract java.lang.String destinationAddressPrefix()
abstract java.util.List<java.lang.String> destinationAddressPrefixes()
abstract java.util.Set<java.lang.String> destinationApplicationSecurityGroupIds()
abstract java.lang.String destinationPortRange()
abstract java.util.List<java.lang.String> destinationPortRanges()
abstract SecurityRuleDirection direction()
abstract int priority()
abstract SecurityRuleProtocol protocol()
abstract java.lang.String sourceAddressPrefix()
abstract java.util.List<java.lang.String> sourceAddressPrefixes()
abstract java.util.Set<java.lang.String> sourceApplicationSecurityGroupIds()
abstract java.lang.String sourcePortRange()
abstract java.util.List<java.lang.String> sourcePortRanges()

Method Details

access

public abstract SecurityRuleAccess access()

Returns:

the type of access the rule enforces

description

public abstract String description()

Returns:

the user-defined description of the security rule

destinationAddressPrefix

public abstract String destinationAddressPrefix()

Returns:

the destination address prefix the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "*" means "any"

destinationAddressPrefixes

public abstract List 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

destinationApplicationSecurityGroupIds

public abstract Set destinationApplicationSecurityGroupIds()

Returns:

list of application security group ids specified as destination

destinationPortRange

public abstract String destinationPortRange()

Returns:

the destination port range that the rule applies to, in the format "##-##", where "*" means any

destinationPortRanges

public abstract List destinationPortRanges()

Returns:

the destination port ranges that the rule applies to, in the format "##-##", where "*" means any

direction

public abstract SecurityRuleDirection direction()

Returns:

the direction of the network traffic that the network security rule applies to.

priority

public abstract 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 abstract SecurityRuleProtocol protocol()

Returns:

the network protocol the rule applies to

sourceAddressPrefix

public abstract String sourceAddressPrefix()

Returns:

the source address prefix the rule applies to, expressed using the CIDR notation in the format: "###.###.###.###/##", and "*" means "any"

sourceAddressPrefixes

public abstract List 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

sourceApplicationSecurityGroupIds

public abstract Set sourceApplicationSecurityGroupIds()

Returns:

list of application security group ids specified as source

sourcePortRange

public abstract String sourcePortRange()

Returns:

the source port range that the rule applies to, in the format "##-##", where "*" means "any"

sourcePortRanges

public abstract List sourcePortRanges()

Returns:

the source port ranges that the rule applies to, in the format "##-##", where "*" means "any"

Applies to