Result of one subprocess, reconstructed from its events
Returns an InstanceResult for spid — the same shape as the parent operation's metadata.result — folded from the subprocess's event log (spawn / stdout / stderr / exit). Works for running and terminal operations alike. While the process is still running, state.exit_code and state.signal are -1 (unknown) and resources holds sentinel defaults; once the exit event lands they carry the real values.
stdout / stderr are consolidated and capped at the spec's truncate_output_at. The raw event stream stays available at GET /operations/{operationId}/events?spid={spid}.
Path parameters
A UUID string
The ID of the operation
Spawn id (1 = main process; ≥2 = exec'd children).
Response
Result of the requested subprocess.
Example response
{
"stdout": {
"value": "Y29tbWFuZCBvdXRwdXQK",
"encoding": "base64"
},
"stderr": {
"value": "Y29tbWFuZCBvdXRwdXQK",
"encoding": "base64"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.