MatchCondition Class
Define match conditions.
All required parameters must be populated in order to send to server.
Constructor
MatchCondition(*, match_variable: str | _models.WafMatchVariable, operator: str | _models.Operator, match_value: List[str], selector: str | None = None, negate_condition: bool | None = None, transforms: List[str | _models.TransformType] | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
match_variable
|
Match variable to compare against. Required. Known values are: "RemoteAddr", "SocketAddr", "RequestMethod", "RequestHeader", "RequestUri", "QueryString", "RequestBody", "Cookies", and "PostArgs". |
selector
|
Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. |
operator
|
Describes operator to be matched. Required. Known values are: "Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", and "RegEx". |
negate_condition
|
Describes if the result of this condition should be negated. |
match_value
|
List of possible match values. Required. |
transforms
|
List of transforms. |
Variables
Name | Description |
---|---|
match_variable
|
Match variable to compare against. Required. Known values are: "RemoteAddr", "SocketAddr", "RequestMethod", "RequestHeader", "RequestUri", "QueryString", "RequestBody", "Cookies", and "PostArgs". |
selector
|
Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. |
operator
|
Describes operator to be matched. Required. Known values are: "Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", and "RegEx". |
negate_condition
|
Describes if the result of this condition should be negated. |
match_value
|
List of possible match values. Required. |
transforms
|
List of transforms. |
Azure SDK for Python