execute
Instances
execute
Executes a constrained remote command on a specified instance. The command output can be retrieved from the returned result URL.
CLI Usage: vastai execute <instance_id> <command>
PUT
execute
Authorizations
API key must be provided in the Authorization header
Path Parameters
ID of the instance to execute command on
Example:
12345
Body
application/json
Command to execute on the instance
Maximum string length:
512Example:
"ls -l"
Response
Command queued successfully
Example:
true
Container writeable path
Example:
"/workspace"
URL to fetch command execution results
Example:
"https://s3.amazonaws.com/vast.ai/instance_logs/abc123.log"
Example:
"Command is executing, wait a few seconds and then view the result_url"