Hi Vinod,
I am not sure if i understand correctly you are saying like you have a REST API in your VM and you are trying to connect it through outsystems cloud.
If yes than you would need to expose the REST API through a public IP or domain .
Best Regards
Devendra