ASM::status

Description

Returns the current status of the request or response, depending on the event from which it is invoked.

Syntax

ASM::status

ASM::status

  • 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

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]"
            }
}