Show / Hide Table of Contents

Class RequestProtection

Module that allows to enable OCI-managed protection capabilities for incoming HTTP requests.

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

Properties

BodyInspectionSizeLimitExceededActionName

Declaration
[JsonProperty(PropertyName = "bodyInspectionSizeLimitExceededActionName")]
public string BodyInspectionSizeLimitExceededActionName { get; set; }
Property Value
Type Description
string

References action by name from actions defined in WebAppFirewallPolicy. Executed if HTTP message body size exceeds limit set in field bodyInspectionSizeLimitInBytes.
If this field is null HTTP message body will inspected up to bodyInspectionSizeLimitInBytes and the rest will not be inspected by Protection Capabilities.
Allowed action types:

  • RETURN_HTTP_RESPONSE terminates further execution of modules and rules and returns defined HTTP response.

BodyInspectionSizeLimitInBytes

Declaration
[JsonProperty(PropertyName = "bodyInspectionSizeLimitInBytes")]
public int? BodyInspectionSizeLimitInBytes { get; set; }
Property Value
Type Description
int?

Maximum size of inspected HTTP message body in bytes. Actions to take if this limit is exceeded are defined in bodyInspectionSizeLimitExceededActionName.
Body inspection maximum size allowed is defined with per-tenancy limit: 8192 bytes.

Rules

Declaration
[JsonProperty(PropertyName = "rules")]
public List<ProtectionRule> Rules { get; set; }
Property Value
Type Description
List<ProtectionRule>

Ordered list of ProtectionRules. Rules are executed in order of appearance in this array. ProtectionRules in this array can only use protection Capabilities of REQUEST_PROTECTION_CAPABILITY type.

In this article
Back to top