34.118. scheduleScriptRun

Name
scheduleScriptRun
Description
Schedule a script to run.
Parameters
  • string sessionKey
  • int serverId - ID of the server to run the script on.
  • string username - User to run script as.
  • string groupname - Group to run script as.
  • int timeout - Seconds to allow the script to run before timing out.
  • string script - Contents of the script to run.
  • dateTime.iso8601 earliestOccurrence - Earliest the script can run.
Return Value
  • int - ID of the script run action created. Can be used to fetch results with system.getScriptResults.