Class IpSecurityRestriction
java.lang.Object
com.microsoft.azure.management.appservice.IpSecurityRestriction
IP security restriction on an app.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get allow or Deny access for this IP range.Get iP restriction rule description.Get iP address the security restriction is valid for.name()
Get iP restriction rule name.priority()
Get priority of IP restriction rule.Get subnet mask for the range of IP addresses the restriction is valid for.Get (internal) Subnet traffic tag.tag()
Get defines what this IP filter will be used for.Get virtual network resource id.Get (internal) Vnet traffic tag.withAction
(String action) Set allow or Deny access for this IP range.withDescription
(String description) Set iP restriction rule description.withIpAddress
(String ipAddress) Set iP address the security restriction is valid for.Set iP restriction rule name.withPriority
(Integer priority) Set priority of IP restriction rule.withSubnetMask
(String subnetMask) Set subnet mask for the range of IP addresses the restriction is valid for.withSubnetTrafficTag
(Integer subnetTrafficTag) Set (internal) Subnet traffic tag.withTag
(IpFilterTag tag) Set defines what this IP filter will be used for.withVnetSubnetResourceId
(String vnetSubnetResourceId) Set virtual network resource id.withVnetTrafficTag
(Integer vnetTrafficTag) Set (internal) Vnet traffic tag.
-
Constructor Details
-
IpSecurityRestriction
public IpSecurityRestriction()
-
-
Method Details
-
ipAddress
Get iP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified.- Returns:
- the ipAddress value
-
withIpAddress
Set iP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified.- Parameters:
ipAddress
- the ipAddress value to set- Returns:
- the IpSecurityRestriction object itself.
-
subnetMask
Get subnet mask for the range of IP addresses the restriction is valid for.- Returns:
- the subnetMask value
-
withSubnetMask
Set subnet mask for the range of IP addresses the restriction is valid for.- Parameters:
subnetMask
- the subnetMask value to set- Returns:
- the IpSecurityRestriction object itself.
-
vnetSubnetResourceId
Get virtual network resource id.- Returns:
- the vnetSubnetResourceId value
-
withVnetSubnetResourceId
Set virtual network resource id.- Parameters:
vnetSubnetResourceId
- the vnetSubnetResourceId value to set- Returns:
- the IpSecurityRestriction object itself.
-
vnetTrafficTag
Get (internal) Vnet traffic tag.- Returns:
- the vnetTrafficTag value
-
withVnetTrafficTag
Set (internal) Vnet traffic tag.- Parameters:
vnetTrafficTag
- the vnetTrafficTag value to set- Returns:
- the IpSecurityRestriction object itself.
-
subnetTrafficTag
Get (internal) Subnet traffic tag.- Returns:
- the subnetTrafficTag value
-
withSubnetTrafficTag
Set (internal) Subnet traffic tag.- Parameters:
subnetTrafficTag
- the subnetTrafficTag value to set- Returns:
- the IpSecurityRestriction object itself.
-
action
Get allow or Deny access for this IP range.- Returns:
- the action value
-
withAction
Set allow or Deny access for this IP range.- Parameters:
action
- the action value to set- Returns:
- the IpSecurityRestriction object itself.
-
tag
Get defines what this IP filter will be used for. This is to support IP filtering on proxies. Possible values include: 'Default', 'XffProxy'.- Returns:
- the tag value
-
withTag
Set defines what this IP filter will be used for. This is to support IP filtering on proxies. Possible values include: 'Default', 'XffProxy'.- Parameters:
tag
- the tag value to set- Returns:
- the IpSecurityRestriction object itself.
-
priority
Get priority of IP restriction rule.- Returns:
- the priority value
-
withPriority
Set priority of IP restriction rule.- Parameters:
priority
- the priority value to set- Returns:
- the IpSecurityRestriction object itself.
-
name
Get iP restriction rule name.- Returns:
- the name value
-
withName
Set iP restriction rule name.- Parameters:
name
- the name value to set- Returns:
- the IpSecurityRestriction object itself.
-
description
Get iP restriction rule description.- Returns:
- the description value
-
withDescription
Set iP restriction rule description.- Parameters:
description
- the description value to set- Returns:
- the IpSecurityRestriction object itself.
-