ltm rule command ADAPT context staticΒΆ

iRule(1)					  BIG-IP TMSH Manual					     iRule(1)

ADAPT::context_static
       Gets the static context.

SYNOPSIS
       ADAPT::context_static (ADAPT_SIDE)?

DESCRIPTION
       Obtains a handle for the static context on the current or specified side. The static context is the profile-
       based context that applies when there are no dynamic contexts on that side. Returns a null string if the
       connection flow has not yet been initialized (for example, if the command was issued from a request-adapt
       (client side) event and the server side connection has not yet been established).

       Syntax:

       ADAPT::context_static

	   * Gets the static context on the current side.

       ADAPT::context_static request

	   * Gets the static context on the request-adapt side.

       ADAPT::context_static response

	   * Gets the static context on the response-adapt side.

RETURN VALUE
       Returns the handle of the static context, or a null string.

VALID DURING
       HTTP_REQUEST, HTTP_RESPONSE, HTTP_PROXY_REQUEST, ADAPT_REQUEST_RESULT, ADAPT_RESPONSE_RESULT

EXAMPLES
	when ADAPT_REQUEST_RESULT {
	    set static_ctx [ADAPT::context_static]
	    set ctx [ADAPT::context_current]
	    if {$ctx == $static_ctx} {
		log local0. "No dynamic contexts have been created."
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-12.0.0 --First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)