admin管理员组

文章数量:1313598

I have a requirement to have different APIs in single API Management service which are dependent on incoming HTTP host. Example

*pany -> API 1
*.anothercompany -> API 2

Something very similar how Application Gateways handles this situation where you can have listener for each custom hostname and route it based on which listener received incoming request. I can see that API management service can responds to multiple custom domains but I don't see any option to tie incoming request to specific API

I have a requirement to have different APIs in single API Management service which are dependent on incoming HTTP host. Example

*pany -> API 1
*.anothercompany -> API 2

Something very similar how Application Gateways handles this situation where you can have listener for each custom hostname and route it based on which listener received incoming request. I can see that API management service can responds to multiple custom domains but I don't see any option to tie incoming request to specific API

Share Improve this question asked Jan 31 at 0:10 Gregory SuvalianGregory Suvalian 3,8428 gold badges45 silver badges78 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Not directly possible at the moment. If you have any network appliance in front of APIM you could consider doing URL rewrite at that level. Otherwise, one workaround is to use send-request policy to invoke an operation on APIM itself via 127.0.0.1 localhost IP: https://learn.microsoft/en-us/azure/api-management/send-request-policy#usage-notes

本文标签: azure api managementIs it possible to bound API based on on incoming hostheader of requestStack Overflow