Forum Discussion

Scott_87636's avatar
Scott_87636
Icon for Nimbostratus rankNimbostratus
Mar 07, 2013

Question 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 uri then access::Disabled. I have the irule created but again not sure what goes in the ID portion.

 

 

 

1 Reply

  • The 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".