AddressRateLimiting

class oci.waas.models.AddressRateLimiting(**kwargs)

Bases: object

The IP rate limiting configuration. Defines the amount of allowed requests from a unique IP address and the resulting block response code when that threshold is exceeded.

Methods

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

Attributes

allowed_rate_per_address Gets the allowed_rate_per_address of this AddressRateLimiting.
block_response_code Gets the block_response_code of this AddressRateLimiting.
is_enabled [Required] Gets the is_enabled of this AddressRateLimiting.
max_delayed_count_per_address Gets the max_delayed_count_per_address of this AddressRateLimiting.
__init__(**kwargs)

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

Parameters:
  • is_enabled (bool) – The value to assign to the is_enabled property of this AddressRateLimiting.
  • allowed_rate_per_address (int) – The value to assign to the allowed_rate_per_address property of this AddressRateLimiting.
  • max_delayed_count_per_address (int) – The value to assign to the max_delayed_count_per_address property of this AddressRateLimiting.
  • block_response_code (int) – The value to assign to the block_response_code property of this AddressRateLimiting.
allowed_rate_per_address

Gets the allowed_rate_per_address of this AddressRateLimiting. The number of allowed requests per second from one IP address. If unspecified, defaults to 1.

Returns:The allowed_rate_per_address of this AddressRateLimiting.
Return type:int
block_response_code

Gets the block_response_code of this AddressRateLimiting. The response status code returned when a request is blocked. If unspecified, defaults to 503. The list of available response codes: 200, 201, 202, 204, 206, 300, 301, 302, 303, 304, 307, 400, 401, 403, 404, 405, 408, 409, 411, 412, 413, 414, 415, 416, 422, 444, 499, 500, 501, 502, 503, 504, 507.

Returns:The block_response_code of this AddressRateLimiting.
Return type:int
is_enabled

[Required] Gets the is_enabled of this AddressRateLimiting. Enables or disables the address rate limiting Web Application Firewall feature.

Returns:The is_enabled of this AddressRateLimiting.
Return type:bool
max_delayed_count_per_address

Gets the max_delayed_count_per_address of this AddressRateLimiting. The maximum number of requests allowed to be queued before subsequent requests are dropped. If unspecified, defaults to 10.

Returns:The max_delayed_count_per_address of this AddressRateLimiting.
Return type:int