Forum Discussion
Need help with an iRule for HTTP Methods
Could you please review the below iRule and suggest?
when HTTP_REQUEST {
if { ( [HTTP::method] equals "PUT" ) } {
switch -glob [string tolower [HTTP::uri]] {
"/rws/api/v1/devices/*" -
"/rws/api/v1/accounts/*" {
pool POOL_POD1_RWSDEVICE
}
}
}
else
{ ( [HTTP::method] equals "POST" ) } {
switch -glob [string tolower [HTTP::uri]] {
"/rws/api/v1/accounts/*" {
pool POOL_POD1_RWSDEVICE
}
default {
pool POOL_POD1_RWS
}
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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