FuncApi (Function APIs)

executeFunction

Execute a specific Trillo function by providing its parameters.​

FuncApi.executeFunction(functionName, params)

or

FuncApi.executeFunction(appName, functionName, params)

parameters:

functionName: name of the function as str
params:   dictionary representing the parameters
appName: str

Sample Code

functionParameters = {}
result = FuncApi.executeFunction("FUNCTION_NAME", functionParameters)

Returns:

Dictionary containing the result of the function execution.

executeFunctionWithMethod

Executes a function with a specific method and parameters.

Parameters

Sample Code

Returns

executeSSH

Execute a remote ssh command on a server whose keys are known to the workbench.​ Generally the SSH server is a companion server of the workbench.

parameters:

Returns:

pingTask

Ping an asynchronous task by id​ and returns it's last time stamp

parameters:

Sample Code

Returns:

createTask

Creates a task for a function.

Parameters

Sample Code

Returns

createTaskBySourceUid

Creates a task for a function using source UID.

Parameters

Sample Code

Returns

Last updated