NetworkSecurityRule.DefinitionStages.WithSourceAddressOrSecurityGroup<ParentT> Interface
Type Parameters
- ParentT
the stage of the parent definition to return to after attaching this definition
public static interface NetworkSecurityRule.DefinitionStages.WithSourceAddressOrSecurityGroup
The stage of the network rule definition allowing the source address to be specified. Note: network security rule must specify a non empty value for exactly one of: SourceAddressPrefixes, SourceAddressPrefix, SourceApplicationSecurityGroups.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
fromAddress(String cidr)
Specifies the traffic source address prefix to which this rule applies. |
abstract
With |
fromAddresses(String[] addresses)
Specifies the traffic source address prefixes to which this rule applies. |
abstract
With |
fromAnyAddress()
Specifies that the rule applies to any traffic source address. |
abstract
With |
withSourceApplicationSecurityGroup(String id)
Sets the application security group specified as source. |
Method Details
fromAddress
public abstract NetworkSecurityRule.DefinitionStages.WithSourcePort
Specifies the traffic source address prefix to which this rule applies.
Parameters:
Returns:
fromAddresses
public abstract NetworkSecurityRule.DefinitionStages.WithSourcePort
Specifies the traffic source address prefixes to which this rule applies.
Parameters:
Returns:
fromAnyAddress
public abstract NetworkSecurityRule.DefinitionStages.WithSourcePort
Specifies that the rule applies to any traffic source address.
Returns:
withSourceApplicationSecurityGroup
public abstract NetworkSecurityRule.DefinitionStages.WithSourcePort
Sets the application security group specified as source.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for