Azure API 管理 - API 端点域与实际 API URL

2024-02-01

I have setup an Azure API Management Service and its configured on a custom domain. Under the API Management Service's Configure Section in the Azure Portal, I have set the following: API Management Service - Config

因为这是一个客户端系统,所以我必须屏蔽细节,但以下是基础知识:

  • API 端点域:api.example.com
  • 开发者门户域:apiportal.example.com
  • 两者都上传了 SSL。

因为我将类型设置为自定义,所以我需要输入 API 端点和开发门户。

When I go into the Publish Portal and setup the API I get this: API Publisher Portal - API-Settings

我需要能够运行单个开发人员门户,但有 2 个不同的 API 服务器(1-Sandbox,2-Production),但它们将有不同的子域(api-sandbox.example.com 和 api.example.com)

这可能吗?为什么 API 设置会使用我在 API 管理配置中输入的内容覆盖 Web 服务 URL/URL 后缀?


Web 服务 URL 属性用于指定特定 API 的后端 URL。该 URL 被视为私有 URL,仅应由 API 管理网关组件用于转发发送到您为租户定义的公共 URL 的请求。因此,您所观察到的行为是设计使然的。您应该在 API 管理中将两个后端显示为两个不同的 API。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Azure API 管理 - API 端点域与实际 API URL 的相关文章

随机推荐