问题描述
有没有一种方法可以创建API,该API不需要调用者传递Ocp-Apim-Subscription-Key,而无需创建单独的产品并取消选中Require subscription复选框.我要在同一产品中提供一些API,这些API需要传入Ocp-Apim-Subscription-Key,而某些API可以在不将请求标头中传递Ocp-Apim-Subscription-Key的情况下调用. >
Is there a way to create a API which does not require the caller to pass in the Ocp-Apim-Subscription-Key without having to create a separate product and un-checking the Require subscription checkbox. What I want is within the same product to have some APIs which require the Ocp-Apim-Subscription-Key to be passed in and some APIs which can be called without passing the Ocp-Apim-Subscription-Key in the request header.
推荐答案
不取消选中需要订阅"复选框,我们将无法实现它.
We cannot achieve it without un-checking the Require subscription checkbox.
这些天来我一直在围绕APIM工作,根据我的理解,我们需要创建一个不需要订阅的新产品.
I have been working around APIM these days, and as per my understanding we need to create a new Product, which doesnot require subscription.
理想情况下,我们应该为所有开放产品编写节流策略.来宾的速率下限较低,而具有订阅密钥的用户的上限较高.
And Ideally we should write some throttling policies to all open products. Lower rate limit for guest, and higher limit for the users with subscription key.
这篇关于通过Azure API管理访问API,而无需设置Ocp-Apim-Subscription-Key的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!