Execute code on a Gateway

Executes code (e.g. Python) on a Gateway5 cluster without requiring a pre-configured service. The code is sent directly to the gateway for execution.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Request

request body
clusterIdstringOptional
languageenumOptional
Allowed values:
codestringOptional
dataobjectOptional
safetyobjectOptional
packageslist of stringsOptional

Response

The execution result from the gateway including stdout, stderr, return code, and timing
idstring
jsonrpcstring
statusenum
receiveTimeinteger
return_codeinteger

Process exit code (0 = success, >=1 = error)

stdoutstring
Raw standard output from the script execution
stderrstring
Standard error from the script execution
stdout_jsonmap from strings to any or list of any or string or double or boolean or null
Parsed JSON from stdout, present only when stdout is valid JSON
started_atstring
ISO 8601 timestamp when execution started on the runner
finished_atstring
ISO 8601 timestamp when execution completed on the runner
elapsed_msdouble

Server-measured execution time in milliseconds

Errors

500
Internal Server Error