ltm rule command ASM statusΒΆ

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



ASM::status
       Returns the current status of the request or response.

SYNOPSIS
       ASM::status

DESCRIPTION
       Returns the current status of the request or response Returns one of
       the following values:
	 + Alarm - there are violations and alarm has been raised, but
	   request or response is not blocked. This does not apply to
	   violations that are in staging mode. This value will also be
	   returned if the request had violations but was unblocked using
	   a previously called ASM::unblock command.
	 + Blocked - violations caused the request/response to be
	   blocked. This does not apply to violations that are in staging
	   mode.
	 + Clear - no violations found

       Syntax

       ASM::status

RETURN VALUE
       * Alarm * Blocked * Clear

VALID DURING
       ASM_REQUEST_DONE, ASM_REQUEST_VIOLATION, ASM_RESPONSE_VIOLATION

EXAMPLES
	when ASM_REQUEST_DONE {
	    #log local0.debug "\[ASM::status\] = [ASM::status]"
	    if { [ASM::status] equals "alarmed" } {
		set x [ASM::violation_data]
		HTTP::header insert X-ASM "violation=[lindex $x 0] supportid=[lindex $x 1]"
		#log local0.debug "DEBUG02: violation=[lindex $x 0] supportid=[lindex $x 1]"
	    }
	}

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



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