Send commands directly to your virtual server's (VM) agent for advanced system administration tasks. The endpoint returns a unique 'requestId' to track command execution.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example command string required success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string error string message string code string timestamp string requestId string https://cloud.hostup.se/api/vm/{vmid}/agent/exec curl -X POST "https://cloud.hostup.se/api/vm/18011/agent/exec" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"command": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"pid": 0,
"message": "string",
"command": "string"
}
} {
"command": "string"
}