mulesoftmule4cloudhub

How to get ip address of application deployed to cloudhub and set it in IP Allowlist policie


I have two applications in the cloud hub. I want the second application to accept requests only from the IP address of the first application. I tried getting the first application IP by writing ping "application address" and then setting it in IP Allowlist police of the second app. But it seems that IP is incorrect because the first app can't access the second one


Solution

  • You can set a static IP to the first Cloudhub Application. From the UI you can set it using static IPs tab in Runtime manager.

    In the second application you can apply IP Allowlist Policy using API manager and Auto discovery.