ltm rule command ADAPT context nameΒΆ

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



ADAPT::context_name
       Gets the name of a dynamic adaptation context.

SYNOPSIS
       ADAPT::context_name ADAPT_CTX

DESCRIPTION
       Obtains the name of an adaptation context. The name of a dynamic
       context was specified when it was created. The name of a static
       (profile) context is that of the ADAPT profile on the side of the
       virtual server where the context resides.

       Syntax:

       ADAPT::context_name 

RETURN VALUE
       Returns the context name.

VALID DURING
       HTTP_REQUEST, HTTP_RESPONSE, HTTP_PROXY_REQUEST, ADAPT_REQUEST_RESULT,
       ADAPT_RESPONSE_RESULT

EXAMPLES
	when ADAPT_RESPONSE_RESULT {
	   set ctx [ADAPT::context_current]
	   set ctx_name [ADAPT::context_name $ctx]
	   log local0. "ADAPT_RESPONSE_RESULT in context $ctx_name"
	}

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



BIG-IP				  2017-01-31			      iRule(1)