'set-backend-service' Policy Statement

Q

How to use the "set-backend-service" Policy Statement for an Azure API service operation?

✍: FYIcenter.com

A

The "set-backend-service" Policy Statement is actually overriding the API setting "Web service URL" to specify the backend service base URL.

For example, if you create an API with the following settings:

FYIcenter.com User API
Web service URL: http://dev.fyicenter.com/rest
Web API URL: https://fyi.azure-api.net/v1/rest

You can override the above backend web service URL with the following "set-backend-service" statement in the inbound policy:

<inbound>
    <set-backend-service base-url="http://dev.fyicenter.com/v1/rest" />  
</inbound>

 

Policy to Control Backend Service

⇒⇒Microsoft Azure API Management Tutorials

2017-09-23, 120👍, 0💬