Getting Started > Use Lua Scripts > Method Reference > ACI Methods

ACI Methods
send_aci_action
Sends the given query to the ACI server at host:port with optional time-out (ms) and retries settings. Takes the action parameters as a table instead of the full action as a string, as with send_aci_command, to avoid issues with parameter values containing “&”.
Syntax
send_aci_action( host, port, action [, parameters][, timeout]
[, retries] )
Example
send_aci_action( “localhost”, 9000, “query”, {text = “*”, print = “all”} );
Arguments
 
This takes a Lua table containing the action parameters, for example, { param1=”foo”, param2=”bar” }
Returns
If the application has been configured with an XSLT dll (autnxslt.dll/libautnxslt.so) then the response is returned as an XMLDocument. Otherwise, the xml response is returned as a string.
If the request has failed, then nil is returned.
send_aci_command
Sends the given query to the ACI server at host:port with optional time-out (ms) and retries settings.
Syntax
send_aci_command( host, port, query [, timeout] [, retries] )
Arguments
 
Returns
If the application has been configured with an XSLT dll (autnxslt.dll/libautnxslt.so) then the response is returned as an XMLDocument. Otherwise, the xml response is returned as a string.
If the request has failed, then nil is returned.