Forum Discussion
Scott_87636
Nimbostratus
Mar 07, 2013Question about irule event action in APM
In APM you can set an irule event action. I would like to do this but not sure what goes in the ID box? Is the name of the irule used? I basically am wanting to determine if it is coming from this...
Kevin_Stewart
Employee
Mar 07, 2013The ID box should contain an unique (arbitrary) value. That value is assigned to the [ACCESS::policy agent_id] command when the policy reaches a specific iRule event agent in policy processing (you can have more than one iRule agent in your policy).
So then an iRule would use something like the following to trigger specific actions at different points in the access policy sequence:
when ACCESS_POLICY_AGENT_EVENT {
switch [ACCESS::policy agent_id] {
"EVENT1" {
... do something here at the EVENT1 stage
}
"EVENT2" {
... do something here at the EVENT2 stage
}
}
}
In this example, there are two iRule event agents in the VPE (presumably in different places), with IDs "EVENT1" and "EVENT2".
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects