Partager via


NetworkSecurityRule Interface

Implements

public interface NetworkSecurityRule
extends HasInnerModel<SecurityRuleInner>, ChildResource<NetworkSecurityGroup>

A network security rule in a network security group.

Method Summary

Modifier and Type Method and Description
abstract SecurityRuleAccess access()
abstract String description()
abstract String destinationAddressPrefix()
abstract List<String> destinationAddressPrefixes()
abstract Set<String> destinationApplicationSecurityGroupIds()
abstract String destinationPortRange()
abstract List<String> destinationPortRanges()
abstract SecurityRuleDirection direction()
abstract int priority()
abstract SecurityRuleProtocol protocol()
abstract String sourceAddressPrefix()
abstract List<String> sourceAddressPrefixes()
abstract Set<String> sourceApplicationSecurityGroupIds()
abstract String sourcePortRange()
abstract List<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