API Management On Premise DR system configuration with Self Hosted Gateway

Rasmikant Bal 66 Reputation points
2022-12-01T06:03:43.793+00:00

I have one API Management instance (2 public API , 2 on premise API) with one self hosted API Gateway.

Q1. Can i access & Test on premise APIs hosted in API Management Service via Developer Portal or it will only accessed via its endpoint ?

Q2. Is it possible to cloud monitor (viewing Analytics, Logs , Metrics, the way we can do for my public API hosted in azure ) my on premise APIs via API Management provided that i have added Self Hosted Gateway (API hosted on on premise docker)? If we can do so please send detailed step.

Q3. Is there any way to communicate my public API with On Premise APIs managed under one API management instance ?

Q4. My On Premise APIs are having disaster recovery system (two datacenter 1- primary & 1 - failover). How to configure DR On Premise system with APIM self hosted gateway.

Q5. My On Premise System having private IP (not exposed to public). Do we need site to site VPN to access it ?

@JananiRamesh-MSFT @Jason Sandys @JimmyYang-MSFT - Would you please help with above queries.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,782 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 21,861 Reputation points
    2022-12-07T11:13:50.507+00:00

    Hi @Rasmikant Bal Thanks for reaching out.

    Q1. Can i access on premise APIs hosted in API Management Service via Developer Portal or it will only be accessed via its endpoint?

    Yes, you can access it via developer portal. The API call will only be successful if there is connectivity between user's machine and the self-hosted gateway. In other words, if user cannot use any other REST client (such as Postman) to send API calls to self-hosted gateway from their machine, they won't be able to use the test console from Azure Portal or Developer Portal.

    Q2. Is it possible to cloud monitor (viewing Analytics, Logs , Metrics, the way we can do for my public API hosted in azure ) my on premise APIs via API Management provided that i have added Self Hosted Gateway (API hosted on on premise docker)? If we can do so please send detailed step.

    By default, the self-hosted gateway emits a number of metrics through Azure Monitor, same as the managed gateway, you can see request going through self-hosted gateway in Metrics feature.
    Reference: https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-use-azure-monitor#modify-api-logging-settings
    https://learn.microsoft.com/en-us/azure/api-management/how-to-configure-cloud-metrics-logs

    If you're interested in Analytics, then you should configure Application Insights integration of your API from Azure portal and self hosted gateway will emit logs to Application Insights.
    As long as your network allows outbound connectivity from the network where self-hosted gateway is deployed.
    See https://learn.microsoft.com/en-us/azure/azure-monitor/app/ip-addresses#outgoing-ports. APIM uses dc.services.visualstudio.com over port 443.

    Q3. Is there any way to communicate my public API with On Premise APIs managed under one API management instance?
    Is that you wanted to call the on-prem apis via public api? If Yes, then this is possible if on-prem API's are reachable/publicly available

    Q4. My On Premise APIs are having disaster recovery system (two datacenter 1- primary & 1 - failover). How to configure DR On Premise system with APIM self hosted gateway.
    You can duplicate the VMs in your DR site
    268106-image.png

    Q5. My On Premise System having private IP (not exposed to public). Do we need site to site VPN to access it ?
    Yes.

    do let me know incase of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.