Tools, FAQ, Tutorials:
Use Custom Variables in Policy Expressions
How to use custom variables created by "set-variable" statements in policy expressions?
✍: FYIcenter.com
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 during the inbound processing step and used it in the output processing step:
<inbound>
<set-variable name="method" value="@(context.Request.Method)"/>
</inbound>
<outbound>
<trace source="DEBUG">@(context.Variables["method"])</trace>
</outbound>
⇒ 'choose ... when ...' Statements to Control Execution Flows
2018-01-24, ∼4141🔥, 0💬
Popular Posts:
What validation keywords I can use in JSON Schema to specifically validate JSON Array values? The cu...
How To Move Uploaded Files To Permanent Directory in PHP? PHP stores uploaded files in a temporary d...
How to use the "set-body" Policy Statement for an Azure API service operation? The "set-body" Policy...
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is t...
Tools, FAQ, Tutorials: JSON Validator JSON-XML Converter XML-JSON Converter JSON FAQ/Tutorials Pytho...