curl -X GET "http://CONTROL_PLANE_IP:PORT/list_desktop_environments"
{
"environments": [
{
"vm_id": "vm-abc123",
"provider": "docker",
"os_type": "Ubuntu",
"status": "active",
"start_time": 1234567890.123,
"timeout": 3600,
"age_seconds": 1200.5,
"vnc_port": 8001,
"last_open_connection": 1234568000.0,
"time_since_last_connection": 90.123
}
],
"total": 1
}
{
"environments": [],
"total": 0
}
Control Plane
List Environments
View all active desktop environments
GET
/
list_desktop_environments
curl -X GET "http://CONTROL_PLANE_IP:PORT/list_desktop_environments"
{
"environments": [
{
"vm_id": "vm-abc123",
"provider": "docker",
"os_type": "Ubuntu",
"status": "active",
"start_time": 1234567890.123,
"timeout": 3600,
"age_seconds": 1200.5,
"vnc_port": 8001,
"last_open_connection": 1234568000.0,
"time_since_last_connection": 90.123
}
],
"total": 1
}
{
"environments": [],
"total": 0
}
Returns a list of all currently active desktop environments with their VM IDs, status, and metadata.
Response
Environment Object Fields
curl -X GET "http://CONTROL_PLANE_IP:PORT/list_desktop_environments"
{
"environments": [
{
"vm_id": "vm-abc123",
"provider": "docker",
"os_type": "Ubuntu",
"status": "active",
"start_time": 1234567890.123,
"timeout": 3600,
"age_seconds": 1200.5,
"vnc_port": 8001,
"last_open_connection": 1234568000.0,
"time_since_last_connection": 90.123
}
],
"total": 1
}
{
"environments": [],
"total": 0
}