ltm rule command ASM policyΒΆ

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

ASM::policy
       Returns the name of the ASM security policy that was applied for the request.

SYNOPSIS
       ASM::policy

DESCRIPTION
       Returns the name of the ASM policy that was applied on the request. It can be used to detect which CPM rules
       are applied or ASM::enable commands are applied on a request.

RETURN VALUE
       Returns the ASM policy applied on the request or null string if ASM is disabled.

VALID DURING
EXAMPLES
	when ASM_REQUEST_BLOCKING{
	    log local0. "The request was blocked using the [ASM::policy] policy"
	}

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

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