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
Documentation Index
Fetch the complete documentation index at: https://vastai-80aa3a82-auto-openapi-preview-pr-4175.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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"