IpSecurityRestriction Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. IpSecurityRestriction
- com.
Implements
public final class IpSecurityRestriction
implements JsonSerializable<IpSecurityRestriction>
IP security restriction on an app.
Constructor Summary
Constructor | Description |
---|---|
IpSecurityRestriction() |
Creates an instance of Ip |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
action()
Get the action property: Allow or Deny access for this IP range. |
String |
description()
Get the description property: IP restriction rule description. |
static
Ip |
fromJson(JsonReader jsonReader)
Reads an instance of Ip |
Map<String,List<String>> |
headers()
Get the headers property: IP restriction rule headers. |
String |
ipAddress()
Get the ip |
String |
name()
Get the name property: IP restriction rule name. |
Integer |
priority()
Get the priority property: Priority of IP restriction rule. |
String |
subnetMask()
Get the subnet |
Integer |
subnetTrafficTag()
Get the subnet |
Ip |
tag()
Get the tag property: Defines what this IP filter will be used for. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
vnetSubnetResourceId()
Get the vnet |
Integer |
vnetTrafficTag()
Get the vnet |
Ip |
withAction(String action)
Set the action property: Allow or Deny access for this IP range. |
Ip |
withDescription(String description)
Set the description property: IP restriction rule description. |
Ip |
withHeaders(Map<String,List<String>> headers)
Set the headers property: IP restriction rule headers. |
Ip |
withIpAddress(String ipAddress)
Set the ip |
Ip |
withName(String name)
Set the name property: IP restriction rule name. |
Ip |
withPriority(Integer priority)
Set the priority property: Priority of IP restriction rule. |
Ip |
withSubnetMask(String subnetMask)
Set the subnet |
Ip |
withSubnetTrafficTag(Integer subnetTrafficTag)
Set the subnet |
Ip |
withTag(IpFilterTag tag)
Set the tag property: Defines what this IP filter will be used for. |
Ip |
withVnetSubnetResourceId(String vnetSubnetResourceId)
Set the vnet |
Ip |
withVnetTrafficTag(Integer vnetTrafficTag)
Set the vnet |
Methods inherited from java.lang.Object
Constructor Details
IpSecurityRestriction
public IpSecurityRestriction()
Creates an instance of IpSecurityRestriction class.
Method Details
action
public String action()
Get the action property: Allow or Deny access for this IP range.
Returns:
description
public String description()
Get the description property: IP restriction rule description.
Returns:
fromJson
public static IpSecurityRestriction fromJson(JsonReader jsonReader)
Reads an instance of IpSecurityRestriction from the JsonReader.
Parameters:
Returns:
Throws:
headers
public Map
Get the headers property: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host\#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For\#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match.
Returns:
ipAddress
public String ipAddress()
Get the ipAddress property: 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:
name
public String name()
Get the name property: IP restriction rule name.
Returns:
priority
public Integer priority()
Get the priority property: Priority of IP restriction rule.
Returns:
subnetMask
public String subnetMask()
Get the subnetMask property: Subnet mask for the range of IP addresses the restriction is valid for.
Returns:
subnetTrafficTag
public Integer subnetTrafficTag()
Get the subnetTrafficTag property: (internal) Subnet traffic tag.
Returns:
tag
public IpFilterTag tag()
Get the tag property: Defines what this IP filter will be used for. This is to support IP filtering on proxies.
Returns:
toJson
validate
public void validate()
Validates the instance.
vnetSubnetResourceId
public String vnetSubnetResourceId()
Get the vnetSubnetResourceId property: Virtual network resource id.
Returns:
vnetTrafficTag
public Integer vnetTrafficTag()
Get the vnetTrafficTag property: (internal) Vnet traffic tag.
Returns:
withAction
public IpSecurityRestriction withAction(String action)
Set the action property: Allow or Deny access for this IP range.
Parameters:
Returns:
withDescription
public IpSecurityRestriction withDescription(String description)
Set the description property: IP restriction rule description.
Parameters:
Returns:
withHeaders
public IpSecurityRestriction withHeaders(Map
Set the headers property: IP restriction rule headers. X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host\#Examples). The matching logic is .. - If the property is null or empty (default), all hosts(or lack of) are allowed. - A value is compared using ordinal-ignore-case (excluding port number). - Subdomain wildcards are permitted but don't match the root domain. For example, *.contoso.com matches the subdomain foo.contoso.com but not the root domain contoso.com or multi-level foo.bar.contoso.com - Unicode host names are allowed but are converted to Punycode for matching. X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For\#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property. X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match.
Parameters:
Returns:
withIpAddress
public IpSecurityRestriction withIpAddress(String ipAddress)
Set the ipAddress property: 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:
Returns:
withName
public IpSecurityRestriction withName(String name)
Set the name property: IP restriction rule name.
Parameters:
Returns:
withPriority
public IpSecurityRestriction withPriority(Integer priority)
Set the priority property: Priority of IP restriction rule.
Parameters:
Returns:
withSubnetMask
public IpSecurityRestriction withSubnetMask(String subnetMask)
Set the subnetMask property: Subnet mask for the range of IP addresses the restriction is valid for.
Parameters:
Returns:
withSubnetTrafficTag
public IpSecurityRestriction withSubnetTrafficTag(Integer subnetTrafficTag)
Set the subnetTrafficTag property: (internal) Subnet traffic tag.
Parameters:
Returns:
withTag
public IpSecurityRestriction withTag(IpFilterTag tag)
Set the tag property: Defines what this IP filter will be used for. This is to support IP filtering on proxies.
Parameters:
Returns:
withVnetSubnetResourceId
public IpSecurityRestriction withVnetSubnetResourceId(String vnetSubnetResourceId)
Set the vnetSubnetResourceId property: Virtual network resource id.
Parameters:
Returns:
withVnetTrafficTag
public IpSecurityRestriction withVnetTrafficTag(Integer vnetTrafficTag)
Set the vnetTrafficTag property: (internal) Vnet traffic tag.
Parameters:
Returns:
Applies to
Azure SDK for Java