MGM:set_auto(t)
In the case of keep-alive, all events will be re-enabled automatically even if they are disabled in the previous TRANSACTION using the HTTP:set_event(t) command. To disable this automatic re-enabling behavior, you can call HTTP:set_auto(t).
Syntax
MGM:set_auto(t);
Arguments
| Name | Description |
|---|---|
|
t |
A table which specifies the event and operation to enable or disable. |
Events
Applicable in all events.
Example
when HTTP_REQUEST {
t={};
t["event"]="req";
t["operation"]="disable";
MGM:set_auto(t);
debug("disable automatic re-enabling of the HTTP_REQUEST events\n");
}
Note: Event can be "req", "res", "data_req", "data_res", "ssl_server", "ssl_renego_server", "server_connected", "server_close", "server_before_connect." Operation can be "enable", and "disable."
Supported Version
FortiADC version 5.0.x and later.