API Connect

 View Only
  • 1.  Localhost calls through invoke

    Posted Fri July 09, 2021 10:50 AM
    Hello People

    I am trying to design a solution were I have a reusable API deployed on API Connect which will be invoked by other API deployed on the same as well different API domains on the same datapower box. The idea is to avoid external network for the reusable calls.

    I have tried following combinations but non worked.
    • https://0.0.0.0/api/context
    • https://localhost/api/context
    • https://127.0.0.1/api/context

    We are using APIC v5.0.8.10. 

    Any suggestions ?

    Regards

    ------------------------------
    Vaibhav Mehra
    ------------------------------


  • 2.  RE: Localhost calls through invoke

    Posted Mon July 12, 2021 08:38 AM
    For security reasons, the API Connect Gateway design configured the DataPower HTTPS Front Side Handler to listen on the local  IP address of the ethernet interface used when specifying the Gateway in CMC.  That would prohibit any localhost traffic.

    ------------------------------
    Steve Linn

    ------------------------------



  • 3.  RE: Localhost calls through invoke

    Posted Tue July 13, 2021 02:34 AM
    Thank you Steve

    ------------------------------
    Vaibhav Mehra
    ------------------------------



  • 4.  RE: Localhost calls through invoke

    Posted Tue July 13, 2021 08:18 AM
    If you need to call the same DataPower for any reason beside local traffic, you can do this way:
    - Use "Host alias" to define your own localhost, like "datapower-localhost", on each DataPower box/domain.
    So call to http://datapower-localhost:<port>/... will always go to the same box.

    ------------------------------
    Denis Migulin
    ------------------------------