Forum Discussion

Imran_Abid's avatar
Imran_Abid
Icon for Altocumulus rankAltocumulus
Jul 09, 2019

Using ASM variables in APM iRule?

Hi all,

 

Is it possible to use ASM or Bot Defense variables in APM iRule?

 

If yes, then how can I call that variable inside APM iRule?

 

The particular variable I'm talking about is "Device ID".

 

I'm not a developer so not well familiar with the syntax.

 

Thanks.

  • Yes, this is possible. You could use the iRule below.

    when ASM_REQUEST_DONE {
      ACCESS::session data set session.custom.deviceid [ASM::fingerprint]
    }

    It will set the session variable 'session.custom.deviceid'. You can use this within APM. See example below.

  • Dear Niels,

     

    Thank you very much for the short and precise answer.

     

    You solved my problem.

     

    Thanks a lot.