'send-one-way-request' Policy Statement


How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API service operation?

✍: FYIcenter.com


The "send-one-way-request" Policy Statement allows you to call an extra web service.

The "send-request" statement has the following syntax:

<send-request mode="new|copy">  
  <set-header name="" exists-action="override|skip|append|delete">...</set-header>  

Where, mode="new (default) | copy" - Indicates whether you want to start with new empty request of take a copy of the "context.Request" object.

For example, the following outbound policy makes an extra web service call to deliver an alert:

      <send-one-way-request mode="new">  
        <set-body>{"alert": {
      "type": "warning",
      "message": "Someone called the API."


'wait' Policy Statement

'send-request' Policy Statement

Policy to Control Backend Service

⇑⇑ Microsoft Azure API Management Tutorials

2018-01-13, 4161🔥, 0💬