Run command in shell session

Runs a command in an active shell session and waits for it to finish. The exit code and output will be returned in the response.

Note that a variety of different errors can occur when executing the command. If the command finishes, even with an error code, a normal HTTP 200 response will be returned. However, if any other error occurs like the shell not responding or exiting unexpectedly, an HTTP 500 response will be returned.

post/shell/exec

Request

  • Base URL
    http://localhost:21721
  • Auth
    HTTP bearer

Request body

storestring required

The store uuid

commandstring required

The command to execute

Response

The operation was successful. The shell command finished.

exitCodeinteger required

The exit code of the command

stdoutstring required

The stdout output of the command

stderrstring required

The stderr output of the command

Changes

No recorded changes to this operation across all 1 revision of this API.