Using advanced policies
The APIM policy is a powerful tool to manage many aspects of APIM communication. You can manage caching, header authentication, IP filtering, rewriting URLs, returning policies, converting output into a different format, and much more. A policy in APIM is provided as XML configuration applied for the operation it is specified for. You can also set up a global policy for APIs and refer to that policy in the exact policy for an operation, such as in the code when an inherited class can call the base class. This option allows you to minimize duplication of configuration and follow the Don’t Repeat Yourself (DRY) approach.
The policy consists of four sections: <inbound>
, <backend>
, <outbound>
, and <on-error>
. Each of the sections can be extended with custom settings. The global policy for APIs can be referenced in the particular operation policy by including the <base/>
tag in the policy. You can exclude the execution of...