Layer7 API Management

Expand all | Collapse all

How to filter the response content and terminate the request.

Jump to Best Answer
  • 1.  How to filter the response content and terminate the request.

    Posted 07-14-2017 01:13 AM

    Hi,

    I'm new to APIM solution and facing a PoC here.

    The PoC target service is a WSDL and the customer gave me some requirements.

     

    One of the requirements is filtering the sensitive data(String) from sending out to the requestor.

    Once the data found, the request should be terminated.

     

    I have no idea how to achieve this one.

     

    Any advice and suggestions will be greatly appreciated.



  • 2.  Re: How to filter the response content and terminate the request.
    Best Answer

    Posted 07-14-2017 12:11 PM

    You can use the Evaluate Regular Expression assertion to search for text in the response and replace/remove it. Here is a link to the documentation for that:

     

    Evaluate Regular Expression Assertion
    https://docops.ca.com/ca-api-gateway/9-2/en/policy-assertions/assertion-palette/message-validation-transformation-assertions/evaluate-regular-expression-assertion