eLeCtRoN
May 08, 2018Cirrus
iRule for Version check with dependent pool selection
Hello,
I have a scenario, my web developers want a dynamic pool selection which depents on a Version No., my idea was to make a curl get request with credentials (with a simple http basic auth) and I get back something like that. (result from the curl get)
{
"build" : {
"version" : "20001.0.1",
"artifact" : "calculator-web-service",
"name" : "calculator-web-service",
...
Now the user access the VIP maybe 10.10.10.10/Version.20001.0.1 and I want to compare with my curl query, is it the same version balance to pool A is it different balance to pool B. Is that possible and how could I realize that, Im not so familiar with iRules ! Maybe I could get an example ? Or a another idea how can I realize this.
THX Manuel