ScriptExecutionRequest object

Example JSON representation

{
  "blocking": true,
  "runAs": "string",
  "server": {
    "id": "string"
  },
  "timeout": 1,
  "variables": [
    {
      "name": "string",
      "value": "string"
    }
  ]
}

Properties

property attributes valid values description filter option
server
ServerForeignKey object
required

Identifier of the Server

blocking
boolean
optional

If it is true Scalr Agent will wait for your Script to finish executing before firing and processing further events.

runAs
string
optional

A name of the system user the Script should be executed as. Administrator / root is used by default.

timeout
integer
optional

How many seconds should Scalr Agent wait before aborting the execution of this Script.

variables
Array of ScriptVariableValue objects
optional

The list of redefined script variables for the current script.

Endpoints using this object