Forum Discussion
m_aremia
Nov 17, 2021Nimbostratus
Insert Pool Name into serverside HTTP Header
Hello, We currently use an irule to direct API calls to either a SOAP pool or REST pool based on URI Path. The Virtual Server has no Default pool configured. The way our current irule is config...
m_aremia
Nov 18, 2021Nimbostratus
There is no real pattern to the path and pool name and being so your suggestion would to use a datagroup, a class match condition to send the traffic to the pool with the following?
HTTP:header insert <value> <name>
- jaikumar_f5Nov 18, 2021MVP
Create your datagroup with URI as record and pool name as value.
then in your irule, use something like
#take http uri set httpuri [string tolower [HTTP::uri]] #Compare against Datagroup and pull out the pool name set poolname [class match -value $httpuri starts_with DATAGROUP_NAME] #To insert the poolname as header HTTP::header insert "X-Pool" $poolname #To send the traffic to the respective pool pool $poolname
Hope you got the point !!!
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