管理和发布虚拟机上托管的API [英] Manage and publish our API hosted on VMs

查看:69
本文介绍了管理和发布虚拟机上托管的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

请为我们的问题提供建议.

Please we need a suggestion to our problem.

我们在使用Tomcat的Ubuntu Azure VM上托管了一些API,并且已使用应用程序网关向我们的API添加SSL证书和自定义域,我们应该添加Azure API Management来管理这些API,但我们不知道如何约束APIM 对于AG,应将侦听器作为APIM URL,并且APIM将流量路由到VM,否则我们只能在没有AG的情况下仅使用API​​M并添加自定义域.

We have some APIs hosted on Ubuntu Azure VMs with Tomcat and we have used the application gateway to add a SSL certificat and custom domain to our APIs and we should add the Azure API Management to manage these APIs but we don't know how to conbine the APIM with the AG, should the listeners be the APIM URL, and the APIM route the traffic to VMs, or we can only use just the APIM without the AG and add a custom domain.

这令人困惑!!!

致谢

推荐答案

Azure Application Gateway是L7负载平衡器,并且它已经可以通过Internet使用您的API.

Azure Application Gateway is a L7 loadbalancer and with it, your APIs are already available for use via the internet.

API管理执行类似的工作,不同之处在于它具有许多额外的功能,例如其策略引擎,产品,用户组,AAD集成,开发人员门户等.

API Management does a similar job except that you have lots of extra features like its policy engine, products, user groups, AAD integration, developer portal, etc.

因此,如果您想使用这些功能,则可以直接将API添加到APIM中进行使用,并将自定义域添加到APIM中,就像您提到的那样.

So, if you would like to use these features, then you can directly add your APIs to APIM for use and add the custom domain to APIM instead like you have mentioned.

这是 doc 手动添加您的API.如果您具有OpenAPI规范,则可以检查 这个.
在此之前,您将必须按照以下说明将APIM实例配置为外部VNET. doc .

Here is a doc to add your API(s) manually. If you have an OpenAPI spec, you can check this.
Before that, you will have to configure your APIM instance into an External VNET as described in this doc.

此外,如果您的用例需要从Internet和VNET安全访问APIM,则此 doc 将更相关.
这样,您将同时使用API​​M和Application Gateway.

Also, if your use case requires secured access to APIM both from the internet and VNET, this doc will be more relevant.
With this, you will be using both APIM and Application Gateway.


这篇关于管理和发布虚拟机上托管的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆