2
votes

https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-policies

    <policies>
  <inbound>
    <!-- statements to be applied to the request go here -->
  </inbound>
  <backend>
    <!-- statements to be applied before the request is forwarded to 
         the backend service go here -->
  </backend>
  <outbound>
    <!-- statements to be applied to the response go here -->
  </outbound>
  <on-error>
    <!-- statements to be applied if there is an error condition go here -->
  </on-error>
</policies> 

When do we use backend sections in the policy?

Looks like setting the backend url using is also done on <inbound> node only.

Thanks for your time.

1

1 Answers

0
votes

that part is used to do any transforms\checks on the request before forwarding it to the backend, for example I was adding headers to the request and validating oauth tokens.