ltm rule event ACCESS POLICY COMPLETED
iRule(1) BIG-IP TMSH Manual iRule(1)
ACCESS_POLICY_COMPLETED
This event is triggered when the access policy execution completes for
a user session.
DESCRIPTION
This event is triggered when the access policy execution completes for
a user session. This event is a notification to admin that the access
policy has completed for the user. Admin can use this event to do post
access policy related work. For e.g. reading and setting some session
variables. Admin can use ACCESS::policy and ACCESS::session commands to
check the result of the policy and to get and set session variables in
this event , in addition to TCP/SSL/HTTP iRule commands in this event.
Examples
when ACCESS_POLICY_COMPLETED {
set policy_result [ACCESS::policy result]
switch $policy_result {
"allow" {
# Do nothing
}
"deny" {
ACCESS::respond 401 content "Error: Failure in Authentication" Connection Close
}
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-10.1.0 --First introduced the event. --Requires APM module
BIG-IP 2017-01-31 iRule(1)