Layer7 API Management

Expand all | Collapse all

Assertion error

Jump to Best Answer
  • 1.  Assertion error

    Posted 09-26-2016 08:12 PM

    Hello,

    I would like to capture the error message or error code with what a particular policy has failed/falsified in the processing. Is there some kind of context variable which specifies the above required info.

     

    Thank you!



  • 2.  Re: Assertion error
    Best Answer

    Posted 09-26-2016 08:40 PM

    Sravan,

     

    Some time ago we started to add in audit context variables that are usable in policy. https://docops.ca.com/ca-api-gateway/8-3/en/context-variables/audit-context-variables

    What you would require is ${audit.details.last.fullText} as it shows the last audit detail in the policy but you need to design the policy to continue after the failure so that the audit is available.

     

    Sincerely,

     

    Stephen Hughes

    Director, CA Support