将服务Fabric API导入API Management Service [英] Import Service Fabric api to API Management Service
问题描述
HI,
我们创建了两个API并将它们部署到Service Fabric Cluster,将其公开为https://< SomeClusterUrl>:8100和https:/ /< SomeClusterUrl>:8101
现在,我们希望通过API Management Service公开这些API,我们找不到更简单的方法。在https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-deploy-api-management上有一篇文章,但理解它真的很模糊
。 / p>
我们找到了Azure SDK,可以创建API Management Service并通过它创建API。但无法找到导入Service Fabric Cluster中托管的API的任何方法。
非常感谢任何帮助并指向正确的方向。
此外,如果这样不是正确的论坛,请引导我到正确的论坛。
主要部分想要关注的文档是
下载并理解资源管理器模板。
本节介绍ARM模板您将部署哪个部署APIM(以及VNET + NSG)并将API添加到其中。
具体来说,这些是
apim.json 文件那个你需要部署(两次,每个API一次)
1. Microsoft.ApiManagement / service / backends
2. Microsoft.ApiManagement / service / apis
3. Microsoft.ApiManagement / service / apis / operations
4. Microsoft.ApiManagement / service / apis / policies
HI,
We have created two APIs and deployed them to Service Fabric Cluster which exposes it as https://<SomeClusterUrl>:8100 and https://<SomeClusterUrl>:8101
Now, we want to expose these APIs via API Management Service and we couldn't find any easier way. There is one article at https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-deploy-api-management but it's really very vague to understand.
We found Azure SDK and could create API Management Service and also create API through it. But couldn't find any way to import APIs hosted in Service Fabric Cluster.
Any help and pointing to right direction is greatly appreciated.
Also, if this is NOT the right forum to ask, please guide me to right forum.
The main section of the doc that would want to focus on is Download and understand the Resource Manager templates.
This section describes the ARM Templates that you would be deploying which deploy both APIM (along with a VNET + NSG) and add your API to it.
Specifically, these are the resources in the apim.json file that you need to deploy (twice, once for each API)
1. Microsoft.ApiManagement/service/backends
2. Microsoft.ApiManagement/service/apis
3. Microsoft.ApiManagement/service/apis/operations
4. Microsoft.ApiManagement/service/apis/policies
这篇关于将服务Fabric API导入API Management Service的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!