Layer7 API Management

Expand all | Collapse all

Is there a way to search all Web APIs for a certain string?

  • 1.  Is there a way to search all Web APIs for a certain string?

    Posted Aug 01, 2018 02:32 PM

    I'm looking for a way to search through all the Web API on our gateway for a specific string in the Route via HTTP assertions. In short, I'm looking for all the Web APIs routing to a certain address.

     

    Is there a way to do this without manually copy/pasting each Web APIs' assertions into a text file?



  • 2.  Re: Is there a way to search all Web APIs for a certain string?
    Best Answer

    Posted Aug 01, 2018 04:15 PM

    Try this database query. This would return all the policies containing the string(not restricted to what's on routing assertion).

     

    select a.name,a.routing_uri,b.name from published_service a,policy b where a.policy_goid=b.goid and b.xml like '%searchstring%';



  • 3.  Re: Is there a way to search all Web APIs for a certain string?

    Posted Aug 02, 2018 08:37 AM

    Worked like a charm! Thank you!