Azure API 管理 - 自定义域特定 APIs?

Azure API management - custom domain specific APIs?

我可以成功地将自定义域添加到 Azure API 管理并访问 APIs。

我知道 Azure API 管理支持多个自定义域。

但是,所有 API 都可以跨自定义域访问。

有没有什么方法可以限制每个自定义域的 API?例如:API1 仅可用于 domainX,而 API2 可用于 domainY。

当来电的 URI 位于错误的域时,您可以使用 API 级别或产品级别策略来 return 未授权状态代码:

<policies>
  <inbound>
    <base />
    <choose>
      <when condition="@(context.Request.OriginalUrl.Host != "domainX")">
        <return-response>
          <set-status code="401" reason="Unauthorized"/>
        </return-response>
      </when>
    </choose>
  </inbound>
</policies>