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 Classes Modifier and Type Interface Description static interfaceNetworkSecurityRule.Definition<ParentT>The entirety of a network security rule definition.static interfaceNetworkSecurityRule.DefinitionStagesGrouping of security rule definition stages applicable as part of a network security group creation.static interfaceNetworkSecurityRule.UpdateThe entirety of a security rule update as part of a network security group update.static interfaceNetworkSecurityRule.UpdateDefinition<ParentT>The entirety of a network security rule definition as part of a network security group update.static interfaceNetworkSecurityRule.UpdateDefinitionStagesGrouping of security rule definition stages applicable as part of a network security group update.static interfaceNetworkSecurityRule.UpdateStagesGrouping of security rule update stages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityRuleAccessaccess()Stringdescription()StringdestinationAddressPrefix()List<String>destinationAddressPrefixes()Set<String>destinationApplicationSecurityGroupIds()StringdestinationPortRange()List<String>destinationPortRanges()SecurityRuleDirectiondirection()intpriority()SecurityRuleProtocolprotocol()StringsourceAddressPrefix()List<String>sourceAddressPrefixes()Set<String>sourceApplicationSecurityGroupIds()StringsourcePortRange()List<String>sourcePortRanges()-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
-
-
-
Method Detail
-
direction
SecurityRuleDirection direction()
- Returns:
- the direction of the network traffic that the network security rule applies to.
-
protocol
SecurityRuleProtocol protocol()
- Returns:
- the network protocol the rule applies to
-
description
String description()
- Returns:
- the user-defined description of the security rule
-
access
SecurityRuleAccess 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
-
-