Lua Methods Reference > General Methods > send_aci_action

send_aci_action
The send_aci_action method sends a query to an ACI server. This method takes the action parameters as a table instead of the full action as a string, as with send_aci_command. This avoids issues with parameter values containing an ampersand (&).
Syntax
send_aci_action( host, port, action [, parameters] [, timeout] [, retries] [, sslParameters] )
Arguments
 
Returns
(String). Returns the XML response as a string. If required, you can call parse_xml on the string to return a LuaXmlDocument. If the request fails, it returns nil.
Example
send_aci_action( "localhost", 9000, "query" ,
{text = "*", print = "all"} );
Related Topics 
*