Dictionary containing the result of the function execution with method.
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.
FuncApi.executeSSH(hostName, command)
or
FuncApi.executeSSH(hostName, command, async)
or
FuncApi.executeSSH(command, async)
parameters:
hostName: the str name of the companion server
command: the command needed to be executed as str
async: execute command immediately and wait or run it in the background
Returns:
Dictionary containing the result of the SSH command execution.
pingTask
Ping an asynchronous task by id and returns it's last time stamp
FuncApi.pingTask(id)
parameters:
id: task name (str)
Sample Code
result = FuncApi.pingTask("id");
Returns:
Dictionary containing the result of the ping operation.
createTask
Creates a task for a function.
FuncApi.createTask(taskName, taskType, functionName, params)
or
FuncApi.createTask(taskName, taskType, appName, functionName, params)