다음을 통해 공유


IpSecurityRestriction Constructors

Definition

Overloads

IpSecurityRestriction()

Initializes a new instance of the IpSecurityRestriction class.

IpSecurityRestriction(String, String, String, Nullable<Int32>, Nullable<Int32>, String, String, Nullable<Int32>, String, String, IDictionary<String,IList<String>>)

Initializes a new instance of the IpSecurityRestriction class.

IpSecurityRestriction()

Initializes a new instance of the IpSecurityRestriction class.

public IpSecurityRestriction ();
Public Sub New ()

Applies to

IpSecurityRestriction(String, String, String, Nullable<Int32>, Nullable<Int32>, String, String, Nullable<Int32>, String, String, IDictionary<String,IList<String>>)

Initializes a new instance of the IpSecurityRestriction class.

public IpSecurityRestriction (string ipAddress = default, string subnetMask = default, string vnetSubnetResourceId = default, int? vnetTrafficTag = default, int? subnetTrafficTag = default, string action = default, string tag = default, int? priority = default, string name = default, string description = default, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>> headers = default);
new Microsoft.Azure.Management.WebSites.Models.IpSecurityRestriction : string * string * string * Nullable<int> * Nullable<int> * string * string * Nullable<int> * string * string * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> -> Microsoft.Azure.Management.WebSites.Models.IpSecurityRestriction
Public Sub New (Optional ipAddress As String = Nothing, Optional subnetMask As String = Nothing, Optional vnetSubnetResourceId As String = Nothing, Optional vnetTrafficTag As Nullable(Of Integer) = Nothing, Optional subnetTrafficTag As Nullable(Of Integer) = Nothing, Optional action As String = Nothing, Optional tag As String = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional name As String = Nothing, Optional description As String = Nothing, Optional headers As IDictionary(Of String, IList(Of String)) = Nothing)

Parameters

ipAddress
String

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.

subnetMask
String

Subnet mask for the range of IP addresses the restriction is valid for.

vnetSubnetResourceId
String

Virtual network resource id

vnetTrafficTag
Nullable<Int32>

(internal) Vnet traffic tag

subnetTrafficTag
Nullable<Int32>

(internal) Subnet traffic tag

action
String

Allow or Deny access for this IP range.

tag
String

Defines what this IP filter will be used for. This is to support IP filtering on proxies. Possible values include: 'Default', 'XffProxy', 'ServiceTag'

priority
Nullable<Int32>

Priority of IP restriction rule.

name
String

IP restriction rule name.

description
String

IP restriction rule description.

headers
IDictionary<String,IList<String>>

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.

Applies to