GET /api/v3/class/ID/students

Retrieves information about the students in a class

Request Path

GET /api/v3/class/{classId}/students?isFull={isFull}

Request Payload

None

Parameters

{classId} The ID of the class. To retrieve class IDs, use GET /api/v3/class
{isFull} Boolean.

  • true. Returns details of the VMs in each student’s environment as well as other details
  • false. Returns a shorter list of details, which does not include the VM details

Response Examples

IsFull=false


[
    {
        "status": 1,
        "envStatus": 5,
        "envCommands": [],
        "envId": "ENQi3ZoBEUCY5Kv3AA6wKo0w2",
        "firstName": "Hector",
        "lastName": "Pounders",
        "email": "hector@cloudshare.com",
        "id": "SDcJ5YHCfmKWXGgHJdiK0UEQ2"
    }
]


IsFull=true

[
    {
       "vms": [
           {
               "id": "MCenC7qMgpzbZMd9EP_fwfWA2",
               "name": "machine 1"
           }
       ],
       "status": 2,
       "envStatus": 2,
       "envCommands": [
           "Suspend",
           "RevertEnv",
           "Delete"
       ],
       "envId": "ENzoOVHhh0EcRbc6SrXsBQNg2",
       "firstName": "Hector",
       "lastName": "Pounders",
       "email": "hector@cloudshare.com",
       "id": "SDcJ5YHCfmKWXGgHJdiK0UEQ2"
    }
]