Capture Last Audit Detail

Document ID : KB000013080
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

There may be a time when you are interested in capturing the details of a route assertion to a variable to be used elsewhere in policy. This document explains how this can be accomplished.

Question:

Can I programmatically extract the audit details of a route assertion to a variable?

Environment:
API Gateway 8.3 and higher
Answer:

By using the following content variable, you can store the details of the last audit event:

${audit.details.last.fullText}

This variable can then be stored in your own context variable before it is overwritten by any further actions. The variable is useful if you wish to store or use the results later in policy logic.