ltm rule event ACCESS PER REQUEST AGENT EVENT
iRule(1) BIG-IP TMSH Manual iRule(1)
ACCESS_PER_REQUEST_AGENT_EVENT
Access Policy Agent event for per-request policy
DESCRIPTION
This event provides a way to use an iRule at any point during per-
request access policy execution. During the per-request access policy
execution, iRule event agent is executed and
ACCESS_PER_REQUEST_AGENT_EVENT is raised in iRules inside TMM. Admin
can get the current agent ID (using "ACCESS::perflow get
perflow.irule_agent_id") to know which of the iRule agents (in case
there are multiple of them) raised the event and do some custom logic
execution. This event allows admin to execute an iRule logic (inside
TMM) at a desired point in the per-request access policy execution.
Examples
when ACCESS_PER_REQUEST_AGENT_EVENT {
if { [ACCESS::perflow get perflow.irule_agent_id] eq "irule_agent_one" } {
log local0. "Hit first iRule agent in PR policy"
}
if { [ACCESS::perflow get perflow.irule_agent_id] eq "irule_agent_two" } {
log local0. "Hit second iRule agent in PR policy"
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-12.1.0
--First introduced the event.
BIG-IP 2017-01-31 iRule(1)