ProtectionCapabilitySettings

class oci.waf.models.ProtectionCapabilitySettings(**kwargs)

Bases: object

Settings for protection capabilities

Methods

__init__(**kwargs) Initializes a new ProtectionCapabilitySettings object with values from keyword arguments.

Attributes

allowed_http_methods Gets the allowed_http_methods of this ProtectionCapabilitySettings.
max_http_request_header_length Gets the max_http_request_header_length of this ProtectionCapabilitySettings.
max_http_request_headers Gets the max_http_request_headers of this ProtectionCapabilitySettings.
max_number_of_arguments Gets the max_number_of_arguments of this ProtectionCapabilitySettings.
max_single_argument_length Gets the max_single_argument_length of this ProtectionCapabilitySettings.
max_total_argument_length Gets the max_total_argument_length of this ProtectionCapabilitySettings.
__init__(**kwargs)

Initializes a new ProtectionCapabilitySettings object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • max_number_of_arguments (int) – The value to assign to the max_number_of_arguments property of this ProtectionCapabilitySettings.
  • max_single_argument_length (int) – The value to assign to the max_single_argument_length property of this ProtectionCapabilitySettings.
  • max_total_argument_length (int) – The value to assign to the max_total_argument_length property of this ProtectionCapabilitySettings.
  • max_http_request_headers (int) – The value to assign to the max_http_request_headers property of this ProtectionCapabilitySettings.
  • max_http_request_header_length (int) – The value to assign to the max_http_request_header_length property of this ProtectionCapabilitySettings.
  • allowed_http_methods (list[str]) – The value to assign to the allowed_http_methods property of this ProtectionCapabilitySettings.
allowed_http_methods

Gets the allowed_http_methods of this ProtectionCapabilitySettings. List of allowed HTTP methods. Each value as a RFC7230 formated token string. Used in protection capability 911100: Restrict HTTP Request Methods.

Returns:The allowed_http_methods of this ProtectionCapabilitySettings.
Return type:list[str]
max_http_request_header_length

Gets the max_http_request_header_length of this ProtectionCapabilitySettings. Maximum allowed length of headers in an HTTP request. Used in protection capability: 9200024: Limit length of request header size.

Returns:The max_http_request_header_length of this ProtectionCapabilitySettings.
Return type:int
max_http_request_headers

Gets the max_http_request_headers of this ProtectionCapabilitySettings. Maximum number of headers allowed in an HTTP request. Used in protection capability 9200014: Limit Number of Request Headers.

Returns:The max_http_request_headers of this ProtectionCapabilitySettings.
Return type:int
max_number_of_arguments

Gets the max_number_of_arguments of this ProtectionCapabilitySettings. Maximum number of arguments allowed. Used in protection capability 920380: Number of Arguments Limits.

Returns:The max_number_of_arguments of this ProtectionCapabilitySettings.
Return type:int
max_single_argument_length

Gets the max_single_argument_length of this ProtectionCapabilitySettings. Maximum allowed length of a single argument. Used in protection capability 920370: Limit argument value length.

Returns:The max_single_argument_length of this ProtectionCapabilitySettings.
Return type:int
max_total_argument_length

Gets the max_total_argument_length of this ProtectionCapabilitySettings. Maximum allowed total length of all arguments. Used in protection capability 920390: Limit arguments total length.

Returns:The max_total_argument_length of this ProtectionCapabilitySettings.
Return type:int