Forum Discussion
Imran_Abid
Altocumulus
Jul 09, 2019Using 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.
- Imran_Abid
Altocumulus
Dear Niels,
Thank you very much for the short and precise answer.
You solved my problem.
Thanks a lot.
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