APM variable assign examples
Problem this snippet solves: APM variable assign is a powerful tool to manipulate APM variable during policy evaluation supporting tcl code.
On Devcentral answers, there are lots of variable assig...
Updated Jun 06, 2023
Version 2.0Stanislas_Piro2
Cumulonimbus
Joined January 04, 2011
Stanislas_Piro2
Nov 24, 2017Cumulonimbus
In some versions, when entered multi line it works fine but if we edit it later, the code is merge on one line.
; is a character which means that next words are not parameters of current command but a new command.
It doesn’t change behavior in multi lines code but prevent issues.
In variable assign, only native tcl commands are allowed. For example, getfield is not allowed.
Virtual command doesn’t make sense during policy evaluation which is out of request flow but in HTTP_REQUEST OR ACCESS_ACL_ALLOWED events