Forum Discussion
JRahm
Admin
Jan 22, 2026AppWorld DC Booth Kiosk Generator
Welcome to AppWorld, community! You may or may not be with us in person, but you can watch this thread for iRules that are either generated or described by the Distributed Cloud AI Assistant.
JimmyPackets
Cirrus
Mar 11, 2026AI-Generated iRule
Prompt: Select a specific pool member based on a query string parameter value (e.g., ?server=web01)
Generated iRule (by F5 Distributed Cloud AI Assistant):
when HTTP_REQUEST {
# Check if the query string contains the parameter 'server'
if {[HTTP::query] contains "server="} {
# Extract the value of the 'server' parameter
set server_name [getfield [HTTP::query] "server" "="]
# Select the pool member based on the server_name
if {$server_name eq "web01"} {
pool web01_pool
} elseif {$server_name eq "web02"} {
pool web02_pool
} else {
# Default pool if no match
pool default_pool
}
} else {
# Default pool if 'server' parameter is not present
pool default_pool
}
}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