Configuration of the script that will run on an asset.
Input Fields
scriptId
ID!
required
Script ID that will be executed.
name
String!
required
Name that will be given to all tasks associated with the execution of the script. Must not exceed 128 characters.
timeoutSeconds
Int!
required
Period of time in seconds that the script will execute until it returns a timeout error. Must be a non-negative integer and cannot exceed 3600 (1 hour).
A value of 0 is treated as the maximum allowed timeout (3600 seconds).
credential
ScriptCredentialInput
Type of credential used to run a script.
inputs
[ScriptInputVariableInput!]
Input variables.
shouldRunWhenOnline
Boolean
If true, the script will run as soon as the asset comes back online. If the asset is already online the script runs immediately.