通过一个访问密钥使用不同的Microsoft Cognitve服务器 [英] Using different Microsoft Cognitve servers with one access key
问题描述
FaceAPI服务.在ASP.NET MVC Web应用程序内部使用. Net Framework 4.6
FaceAPI services. Using inside ASP.NET MVC web application. Net Framework 4.6
2017年4月,我获得了FaceAPI的免费访问密钥,但是由于某些未知原因,我只能访问美国西部"服务器(westus.api.cognitive.microsoft.com)和常规服务器(api.cognitive) .microsoft.com).
In Apr/2017 I obtained free access key for FaceAPI, however, for some unknown for me reason i could access only "West US" server (westus.api.cognitive.microsoft.com) and general server (api.cognitive.microsoft.com).
一旦我尝试登录西欧"服务器,就会收到错误消息由于无效的订阅密钥而导致访问被拒绝.请确保您已订阅要尝试调用的API并提供正确的密钥."
Once i am trying to login into "West Europe" server i got error "Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key."
所以,我的问题是:
1)我如何连接到西欧"服务器?
1) how can I connect to "West Europe" server ?
2)在哪里可以看到我的订阅密钥属于哪个区域?
2) where I could see to what region belong my subscription key?
推荐答案
西欧API端点为https://westeurope.api.cognitive.microsoft.com/face/v1.0
.您已经发现,一个区域的订阅密钥在另一区域无效.
The West Europe API endpoint is https://westeurope.api.cognitive.microsoft.com/face/v1.0
. As you've discovered, a subscription key for one region is not valid in another.
我不知道任何订阅密钥->位置映射.由于您目前仅有的两个选项是"westus"和"westeuprope",因此您可以通过消除过程来确定哪个.
I'm not aware of any subscription key -> location mapping. Since the only two options available to you right now are 'westus' and 'westeuprope', you could determine which through the process of elimination.
这篇关于通过一个访问密钥使用不同的Microsoft Cognitve服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!