<< < 1 2 3 4 >   Sort: Rank

What Is Azure API Policy
What Is Azure API Policy? Azure API Policy is a set of plugin rules to be executed between Azure API and the backend service. Those plugin rules are written in Azure API policy statements in XML format. An Azure API policy contains two major blocks: 1. Inbound Policy - Policy statements to be execut...
2018-03-10, 1479🔥, 0💬

Policy Hierarchy and 'base' Statement
What are the relations among API policies defined at product level, API level, and operation level? Azure API Management allows you to define policies at 3 levels: Top Level policy - Policy defined at top level can be shared amount all APIs. You can use the "base" policy statement in the API policy ...
2018-03-10, 1426🔥, 0💬

'context.Request.MatchedParameters' URL Template Parameters
How to access URL template parameters from "context.Request.MatchedParame ters"object in Azure API Policy? URL template parameters are parameters used in the URL defined in the URL template: For example, the following URL template contains two template parameters, "cid", "oid" and "date": /customers...
2018-02-14, 10337🔥, 0💬

'@(...)' Expressions in Azure API Policy
How to use the "@(...)" expression in Azure API Policy? The "@(...)" expression in Azure API Policy can be used to include a single C# expression as the attribute value or text value in most policy statements. When a "@(...)" expression is included in a policy statement, the C# expression will be ev...
2018-02-14, 3628🔥, 0💬

'@{...}' Expression Blocks in Azure API Policy
How to use the "@{...}" expression block in Azure API Policy? The "@{...}" expression block in Azure API Policy can be used to include a C# statement block as the attribute value or text value in most policy statements. C# statement block in the "@{...}" expression block must end with a "return" sta...
2018-02-14, 2351🔥, 0💬

Using the 'context' Object in Policy Expressions
How to use the built-in "context" object in Policy expressions? The built-in "context" object can be used any "@(...)" expressions or "@{...}" expression blocks. The "context" object allows you to access information related to Azure API operation through its properties and methods. Here are some exa...
2018-02-14, 2284🔥, 0💬

'context.Request.Body' Request Body
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is the HTTP request body, which follows an empty line after request headers. You can access Request body from "context.Request.Body" object in any policy statements. This "context.Request.Body" object is ...
2018-01-24, 20588🔥, 0💬

Dump Everything from 'context.Request'
How to build a test service operation to dump everything from the "context.Request" object in the response in Azure API Policy? If you want to build a test service operation to dump everything from the request to the response with an Azure API policy, you can follow this tutorial: 1. Go to the publi...
2018-01-24, 12550🔥, 0💬

'set-variable' Statement to Create Custom Variables
How to use the "set-variable" Policy Statement to create custom variables for an Azure API service operation? The "set-variable" policy statement allows you to create custom variables with given values to be used later in other policy statements. The "set-variable" statement has the following syntax...
2018-01-24, 9955🔥, 0💬

Using .NET CLR Types in Azure API Policy
How to use .NET CLR Types in Azure API Policy? By default, Azure imports many basic .NET CLR (Common Language Runtime) types into the API policy execution environment. Imported .NET CLR types can be used in any "@(...)" expressions or "@{...}" expression blocks. For example, the following "@{...}" e...
2018-01-24, 3000🔥, 0💬

Use Custom Variables in Policy Expressions
How to use custom variables created by "set-variable" statements in policy expressions? If you want to access custom variables created by "set-variable" statements, you can use the IReadOnlyDictionary object through "context.Variables". For example, the following policy creates a custom variable dur...
2018-01-24, 2406🔥, 0💬

'find-and-replace' Policy Statement
How to use the "find-and-replace" Policy Statement for an Azure API service operation? The "find-and-replace" Policy Statement allows you to find and replace a sub string in the request body or response body. For example, the following inbound policy will replace "$id" by the template parameter "id"...
2018-01-19, 4739🔥, 0💬

'choose ... when ...' Statements to Control Execution Flows
How to use 'choose ... when ..." policy statements to control execution flows? If you want to control execution flows in Azure API management process, you can use the 'choose ... when ..." policy statement. The "choose ... when ..." statement has the following syntax: &lt;choose&gt; &lt;...
2018-01-19, 2831🔥, 0💬

Policy to Modify Request and Response Body
Where to find tutorials on creating Policy to Modify Request and Response Body on Azure API Management Policy? Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on creating Policy to Modify Request and Request Body on Azure API Management Policy. 'f...
2018-01-19, 2825🔥, 0💬

'forward-request' Policy Statement
How to use the "forward-request" Policy Statement to call the backend service for an Azure API service operation? The "forward-request" Policy Statement allows you to call the backend service, using information provided in the "context.Request" object. The "forward-request" Statement has the followi...
2018-01-16, 7129🔥, 0💬

'rewrite-uri' Policy Statement
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" Policy Statement is actually doing the same work as the operation setting "Rewrite URL template". For example, if you create an API operation with the following settings: HTTP verb: POST URL template:...
2018-01-16, 6780🔥, 0💬

'retry' Policy Statement
How to use the "retry" Policy statement to retry "forward-request" multiple times for an Azure API service operation? The "retry" Policy Statement allows you to mainly execute "forward-request" statement multiple times if it fails. The "forward-request" Statement has the following syntax: &lt;re...
2018-01-16, 2523🔥, 0💬

'set-method' Policy Statement
How to use the "set-method" Policy Statement for an Azure API service operation? The "set-method" Policy Statement can be used to modify the HTTP verb when Azure forwarding the client request to the backend Web service. By default, Azure uses the save HTTP verb as client request received at the Azur...
2018-01-16, 1478🔥, 0💬

'mock-response' Policy Statement
How to use the "mock-response" Policy statement to return an example response for an Azure API service operation? The "mock-response" Policy Statement allows you to return a fake response and stop the Azure API processing immediately. The "mock-response" Statement has the following syntax: &lt;m...
2018-01-16, 1414🔥, 0💬

'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? The "send-one-way-request" Policy Statement allows you to call an extra web service. The "send-request" statement has the following syntax: &lt;send-request mode="new|copy"&...
2018-01-13, 4042🔥, 0💬

'return-response' Policy Statement
How to use the "return-response" Policy statement to build the response from scratch for an Azure API service operation? The "return-response" Policy Statement allows you to stop the Azure API processing immediately and return with the given response. The "forward-request" statement can be used in t...
2018-01-13, 3906🔥, 0💬

'send-request' Policy Statement
How to use the "send-request" Policy statement to call an extra web service for an Azure API service operation? The "send-request" Policy Statement allows you to call an extra web service and store the response in a given variable. The "send-request" statement has the following syntax: &lt;send-...
2018-01-13, 2990🔥, 0💬

'wait' Policy Statement
How to use the "wait" Policy statement to make multi-threading calls for an Azure API service operation? The "wait" Policy Statement allows you to make multi-threading calls to external systems. The "wait" statement has the following syntax: &lt;wait for="all|any"&gt; &lt;send-request .....
2018-01-13, 1438🔥, 0💬

'set-status' Policy Statement
How to use the "set-status" Policy statement to modify the response status for an Azure API service operation? The "set-status" Policy Statement allows you to change the status code of the response. For example, the following outbound policy changes the status code of the response to 401: &lt;ou...
2018-01-13, 1317🔥, 0💬

<< < 1 2 3 4 >   Sort: Rank