Forum Discussion
ChrisRodrigues
Nimbostratus
Aug 02, 2019string map insert
I have the following uris that I would like to map a string and prepend a value to the string (in the examples below snt ) Any help with the iRules would be greatly appreciated "/here.there/s...
JG
Cumulonimbus
Aug 02, 2019Try something like this one then:
when HTTP_REQUEST {
switch -- [string tolower [HTTP::uri]] {
"/here.there/service/v1/customers/qualification" {
HTTP::uri /snt[HTTP::uri]
pool pool_1
}
"/here.there/service/v1/accounts/\{accountNumber\}/paymentprofile" {
HTTP::uri /snt[HTTP::uri]
pool pool_2
}
"/here.there/service/v1/accounts/\{accountNumber\}" {
HTTP::uri /snt[HTTP::uri]
pool pool_3
}
default {
pool default_pool
}
}
}.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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