Peek

The PUT/api/compute/execution/{executionId}/peek endpoint can be used to peek log files during an execution. It can be called only during execution in progress and takes a list of file local paths to peek. Peeked files will be uploaded to execution results output location provided at execution creation.

Click to show example commands to peek the engine execution
projectId="<replacewithprojectid>"
openapikey="<replacewithopenapikey>"
executionId="<replacewithexecutionid>"

# peek an execution
curl -L -X PUT "https://api.mike-cloud-test.com/api/compute/execution/$executionId/peek" \
  -H 'api-version: 2' \
  -H 'dhi-service-id: engine' \
  -H "dhi-project-id: $projectId" \
  -H "dhi-open-api-key: $openapikey" \
  -H 'Content-Length: 0'
  --data-raw '{
      "PeekFileLocalPaths": ["lake.log"]
    }'

When things go well, no content will be returned. To get the results of the peek request subscribe to event EngineExecutionPeekResultMessage, the list of events can be found here