ltm rule command SSL modeΒΆ

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

SSL::mode
       Gets the enabled/disabled state of SSL.

SYNOPSIS
       SSL::mode

DESCRIPTION
       Gets the enabled/disabled state of SSL

RETURN VALUE
       SSL::mode
	   Gets the enabled/disabled state of SSL. Returns 1 if it is enabled, and 0 if it is disabled.

VALID DURING
       ANY_EVENT

EXAMPLES
	when CLIENT_ACCEPTED {
	    if { [TCP::local_port] != 443 } {
		SSL::disable
	    }
	}
	when HTTP_REQUEST {
	    if { [SSL::mode] == 0 } {
		HTTP::redirect "https://some.other.site.com/"
	    }
	}

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

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