Forum Discussion
What/Where are the built-in variables for LTM?
Can someone show me where (pdf) or what are the built-in variables for LTM. Looking to do some custom irules and would like to use the built-in variables.
- P_K
Altostratus
I don't think there is a pdf for that.. Are you looking for specific variables? like AD Auth, etc..
- DAGOATMAMBA_328
Nimbostratus
im looking for redirects....if there is no matching host on the HTTP endpoint, return a redirect to the client for them to try the same request on the HTTPS endpoint.
- Lee_Sutcliffe
Nacreous
iRules are an extension to Tcl, all built in commands can be found on the iRule Wiki:
https://devcentral.f5.com/wiki/iRules.Commands.ashx
- Stanislas_Piro2
Cumulonimbus
Hi,
There is no built in variables, MrPlastic shared the link to the iRule wiki.
Every string within brackets are commands which are evaluated to return a value and not variables.
for example, if you use multiple times
the command is evaluated each time. It is recommended to store it in a variable instead of call it multiple times.[HTTP::uri]
- mdcarson_58978
Nimbostratus
It is NOT recommended to create variables rather than using something like [HTTP::uri]. [HTTP::uri] is cached and doesn't incur extra overhead when you use it. Only create variables for operations that incur extra overhead and are going to be used more than once.
See: https://devcentral.f5.com/articles/getting-started-with-irules-variables-20403
Recent Discussions
Related Content
* 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