Tools, FAQ, Tutorials:
View Effective Policy of API Operation - 2017 Version
How to View Effective Policy of an API Operation 2017 version? My API operation is not calling the backend service.
✍: FYIcenter.com
If your API operation is not calling the backend service,
you need to view the effective policy of the API operation to see why backend
service is not called.
1. Go to the publisher portal of the API Management Service.
2. Click "Policies" on the left menu. You see the gateway policy definition page.
3. Select "First API" in the API dropdown list.
4. Select "Add new user" in the operation dropdown list. You see the system generated gateway policy displayed.
5. Click the "View effective policy for selected scope" button. You see the effective policy displayed:
<policies>
<inbound>
<rewrite-uri template="/profiles" />
</inbound>
<backend />
<outbound />
<on-error />
</policies>
The empty "backend" section is telling the API gateway to not forward the request to the backend service. This is why there is no backend actions in the test trace report.
To fix the issue, you need add the "forward-request" policy statement in the backend section as demonstrated in the next tutorial.
The picture below shows you steps on how to view effective gateway policy of an API operation:
⇒ Add Request URL Template Parameters - 2017 Version
⇐ Add Request Body Examples - 2017 Version
2018-07-18, ∼1907🔥, 0💬
Popular Posts:
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
How to add request body examples to my Azure API operation to make it more user friendly? If you hav...
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...