curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123"
}'
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123",
"task_config": {
"id": "task-002",
"instruction": "New task instructions",
"config": []
}
}'
{
"status": "accepted",
"message": "Environment reset started",
"vm_id": "vm-abc123",
"task_id": "uuid-string",
"status_url": "/task_status/uuid-string"
}
Control Plane
Reset Environment
Reset the desktop environment to initial state
POST
/
reset
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123"
}'
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123",
"task_config": {
"id": "task-002",
"instruction": "New task instructions",
"config": []
}
}'
{
"status": "accepted",
"message": "Environment reset started",
"vm_id": "vm-abc123",
"task_id": "uuid-string",
"status_url": "/task_status/uuid-string"
}
Resets the desktop environment to its initial state. Runs as a background task. Optionally accepts a new task configuration to initialize after reset.
Request Body
string
required
VM identifier
object
Optional task configuration to initialize after reset
Response
string
Request status (
accepted)string
Status message
string
VM identifier
string
Background task ID for status polling
string
URL to check task status
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123"
}'
curl -X POST "http://CONTROL_PLANE_IP:PORT/reset" \
-H "Content-Type: application/json" \
-d '{
"vm_id": "vm-abc123",
"task_config": {
"id": "task-002",
"instruction": "New task instructions",
"config": []
}
}'
{
"status": "accepted",
"message": "Environment reset started",
"vm_id": "vm-abc123",
"task_id": "uuid-string",
"status_url": "/task_status/uuid-string"
}