API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  Localhost calls through invoke

    Posted 07/09/21 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 07/12/21 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 07/13/21 02:34 AM
    Thank you Steve

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



  • 4.  RE: Localhost calls through invoke

    Posted 07/13/21 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
    ------------------------------