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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of a network security rule definition.static interfaceGrouping of security rule definition stages applicable as part of a network security group creation.static interfaceThe entirety of a security rule update as part of a network security group update.static interfaceThe entirety of a network security rule definition as part of a network security group update.static interfaceGrouping of security rule definition stages applicable as part of a network security group update.static interfaceGrouping of security rule update stages. -
Method Summary
Modifier and TypeMethodDescriptionaccess()Gets the type of access the rule enforces.Gets the user-defined description of the security rule.Gets the destination address prefix the rule applies to.Gets the list of destination address prefixes the rule applies to.Gets list of application security group ids specified as destination.Gets the destination port range that the rule applies to.Gets the destination port ranges that the rule applies to.Gets the direction of the network traffic that the network security rule applies to.intpriority()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.protocol()Gets the network protocol the rule applies to.Gets the source address prefix the rule applies to.Gets the list of source address prefixes the rule applies to.Gets list of application security group ids specified as source.Gets the source port range that the rule applies to.Gets the source port ranges that the rule applies to.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
Method Details
-
direction
SecurityRuleDirection 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
SecurityRuleProtocol 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
SecurityRuleAccess 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
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
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
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
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
Gets list of application security group ids specified as source.- Returns:
- list of application security group ids specified as source
-
destinationApplicationSecurityGroupIds
Gets list of application security group ids specified as destination.- Returns:
- list of application security group ids specified as destination
-