API Management vs. Service Flow

梦想的初衷 提交于 2019-12-11 13:47:09

问题


I have a very basic setup: APIM + SF with WebAPI Stateless Service (Kestrel). Just trying to make this POC work. Unsuccessful so far... :(

Following the available instructions I got to the point, where I am having problems with the APIM inbound policies... What am I supposed to use for the backend-id? Besides the "servicefabric" one (from examples), I have tried probably all of the options from my "service fabric" instance metadata. It keeps coming back to me with: "Backend with id 'whatever-I-put-in-here' could not be found."

I would really appreciate if someone could shed some light into what exactly is meant by backend-id=""!

Thanks, Peter


回答1:


The backend-id has to reference a "backend resource" that has been created via the API Management API (or deployment template) as there currently is no UI to create these backend resources. In the deployment template pointed to by the article the definition of the backend resource is here:

https://github.com/Azure-Samples/service-fabric-api-management/blob/master/apim.json#L162

You can use this API call to list the existing backends for your service:

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends?api-version=2017-03-01

https://docs.microsoft.com/en-us/rest/api/apimanagement/backend/listbyservice



来源:https://stackoverflow.com/questions/48457496/api-management-vs-service-flow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!