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
clusterId
language
Allowed values:
code
data
safety
packages
Response
The execution result from the gateway including stdout, stderr, return code, and timing
id
jsonrpc
status
receiveTime
return_code
Process exit code (0 = success, >=1 = error)
stdout
Raw standard output from the script execution
stderr
Standard error from the script execution
stdout_json
Parsed JSON from stdout, present only when stdout is valid JSON
started_at
ISO 8601 timestamp when execution started on the runner
finished_at
ISO 8601 timestamp when execution completed on the runner
elapsed_ms
Server-measured execution time in milliseconds
Errors
500
Internal Server Error