QueryParameterValidationRequestPolicy

class oci.apigateway.models.QueryParameterValidationRequestPolicy(**kwargs)

Bases: object

Validate the URL query parameters on the incoming API requests on a specific route.

Attributes

VALIDATION_MODE_DISABLED A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy.
VALIDATION_MODE_ENFORCING A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy.
VALIDATION_MODE_PERMISSIVE A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy.
parameters Gets the parameters of this QueryParameterValidationRequestPolicy.
validation_mode Gets the validation_mode of this QueryParameterValidationRequestPolicy.

Methods

__init__(**kwargs) Initializes a new QueryParameterValidationRequestPolicy object with values from keyword arguments.
VALIDATION_MODE_DISABLED = 'DISABLED'

A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy. This constant has a value of “DISABLED”

VALIDATION_MODE_ENFORCING = 'ENFORCING'

A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy. This constant has a value of “ENFORCING”

VALIDATION_MODE_PERMISSIVE = 'PERMISSIVE'

A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy. This constant has a value of “PERMISSIVE”

__init__(**kwargs)

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

Parameters:
  • parameters (list[oci.apigateway.models.QueryParameterValidationItem]) – The value to assign to the parameters property of this QueryParameterValidationRequestPolicy.
  • validation_mode (str) – The value to assign to the validation_mode property of this QueryParameterValidationRequestPolicy. Allowed values for this property are: “ENFORCING”, “PERMISSIVE”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
parameters

Gets the parameters of this QueryParameterValidationRequestPolicy.

Returns:The parameters of this QueryParameterValidationRequestPolicy.
Return type:list[oci.apigateway.models.QueryParameterValidationItem]
validation_mode

Gets the validation_mode of this QueryParameterValidationRequestPolicy. Validation behavior mode.

In ENFORCING mode, upon a validation failure, the request will be rejected with a 4xx response and not sent to the backend.

In PERMISSIVE mode, the result of the validation will be exposed as metrics while the request will follow the normal path.

DISABLED type turns the validation off.

Allowed values for this property are: “ENFORCING”, “PERMISSIVE”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The validation_mode of this QueryParameterValidationRequestPolicy.
Return type:str