||avi.poolgroup.select( poolgroup )
||Selects a pool group for the current request. The selection does not take effect if an HTTP request policy was also configured with a switching action to select a pool. The switching action of the HTTP request policy takes precedence over the DataScript's pool group selection.
||poolgroup can be a specific pool name or an expression that evaluates to a valid pool name.
||The pool group name may be called explicitly, or dynamically determined based on a Lua expression. If the pool group name does not exist or is not able to be referenced by the virtual service, an error is generated.
- Explicit reference: A configuration error will be generated while saving the DataScript.
- Dynamically generated reference: A runtime error is generated, which results in a 500 error return to the client.
||No value returned
||avi.pool.select() Selects a pool for the current request.
||Forward the request to an explicit destination.
if avi.http.get_path() == "/test/" then