MatchCondition Class

Define match conditions.

Constructor

MatchCondition(*args: Any, **kwargs: Any)

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
str

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.

Attributes

match_value

List of possible match values. Required.

match_value: list[str]

match_variable

"RemoteAddr", "SocketAddr", "RequestMethod", "RequestHeader", "RequestUri", "QueryString", "RequestBody", "Cookies", and "PostArgs".

match_variable: str | _models.WafMatchVariable

negate_condition

Describes if the result of this condition should be negated.

negate_condition: bool | None

operator

"Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", and "RegEx".

operator: str | _models.Operator

selector

Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.

selector: str | None

transforms

List of transforms.

transforms: list[typing.Union[str, ForwardRef('_models.TransformType')]] | None