Invoke target service running in intranet

Not applicable

I have created a API proxy and in my machine I have created a sample HTTP based service. As service is on running on private IP (10.x.x.x). I cannot consumer it using API proxy. Can you please suggest me any way by which I can consume my target service

0 3 390
3 REPLIES 3

It sounds like you are looking to do some testing (assuming that based on "sample" http service). If that's the case, I think you have two options. First, you could try a service that will create a public URL for your local service. I have not tried this service myself, but it may do exactly what you want: https://ngrok.com/ -- Provided only as example.. do the due diligence to make sure it's not a nefarious service, etc.

Secondly, maybe you want to just run the sample in the cloud somewhere? There are quite a few places where you can spin up http services without cost. Heroku, http://run.pivotal.io, etc.

What you choose probably will depend a bit on security, etc. I think it would be safer to use run.pivotal.io, e.g., than installing something on your local machine.

If my assumption is wrong and you aren't talking about just doing some testing, then these answers aren't valid. You'll need to find a more "production-ready" solution for getting that service exposed from your internal network. Alternatively you could look at our private cloud deployment or using the micro gateway, but those are decisions best based on a deeper understanding of what you're doing. 😉

Thanks guys for useful suggestions. I have tested API proxy with target system as some internet services. Yes cloud is one idea which I can use. But, with cloud problem is I need required software to deploy application. It's not java service.

I am working on get public IP linked to private IP of my system. I guess that would help in consuming my service.

@Vinod Garg

If the intention is just to test API Proxy & play with same, you can use Apigee Hello World API URLs as target servers, http://mocktarget.apigee.net/json & http://mocktarget.apigee.net/json

If the intention is access APIs hosted on intranet, You need onPrem version of Apigee Edge software / Hybrid solution like Apigee Micro gateway.

If the intention is to create a target API & then create an API Proxy, as suggested by @Carlos Eberhardt either you can use heroku / pivotal to run target server API OR you can use Apigee Edge itself to create an API using Node.JS containers.