Show / Hide Table of Contents

Class AccessRuleCriteria

When defined, the parent challenge would be applied only for the requests that matched all the listed conditions.

Inheritance
object
AccessRuleCriteria
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.WaasService.Models
Assembly: OCI.DotNetSDK.Waas.dll
Syntax
public class AccessRuleCriteria

Properties

Condition

Declaration
[Required(ErrorMessage = "Condition is required.")]
[JsonProperty(PropertyName = "condition")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AccessRuleCriteria.ConditionEnum? Condition { get; set; }
Property Value
Type Description
AccessRuleCriteria.ConditionEnum?

The criteria the access rule and JavaScript Challenge uses to determine if action should be taken on a request.

  • URL_IS: Matches if the concatenation of request URL path and query is identical to the contents of the value field. URL must start with a /.
  • URL_IS_NOT: Matches if the concatenation of request URL path and query is not identical to the contents of the value field. URL must start with a /.
  • URL_STARTS_WITH: Matches if the concatenation of request URL path and query starts with the contents of the value field. URL must start with a /.
  • URL_PART_ENDS_WITH: Matches if the concatenation of request URL path and query ends with the contents of the value field.
  • URL_PART_CONTAINS: Matches if the concatenation of request URL path and query contains the contents of the value field.
  • URL_REGEX: Matches if the concatenation of request URL path and query is described by the regular expression in the value field. The value must be a valid regular expression recognized by the PCRE library in Nginx (https://www.pcre.org).
  • URL_DOES_NOT_MATCH_REGEX: Matches if the concatenation of request URL path and query is not described by the regular expression in the value field. The value must be a valid regular expression recognized by the PCRE library in Nginx (https://www.pcre.org).
  • URL_DOES_NOT_START_WITH: Matches if the concatenation of request URL path and query does not start with the contents of the value field.
  • URL_PART_DOES_NOT_CONTAIN: Matches if the concatenation of request URL path and query does not contain the contents of the value field.
  • URL_PART_DOES_NOT_END_WITH: Matches if the concatenation of request URL path and query does not end with the contents of the value field.
  • IP_IS: Matches if the request originates from one of the IP addresses contained in the defined address list. The value in this case is string with one or multiple IPs or CIDR notations separated by new line symbol

    *Example: * "1.1.1.1\1.1.1.2\1.2.2.1/30"- IP_IS_NOT: Matches if the request does not originate from any of the IP addresses contained in the defined address list. The value in this case is string with one or multiple IPs or CIDR notations separated by new line symbol *
Remarks

Required

IsCaseSensitive

Declaration
[JsonProperty(PropertyName = "isCaseSensitive")]
public bool? IsCaseSensitive { get; set; }
Property Value
Type Description
bool?

When enabled, the condition will be matched with case-sensitive rules.

Value

Declaration
[Required(ErrorMessage = "Value is required.")]
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
Property Value
Type Description
string

The criteria value.

Remarks

Required

In this article
Back to top