Retrieve details about a lab instance based on the TMS Lab Instance Id.

Prev Next
Get
/GetLabInstanceDetails

The GetLabInstanceDetails command retrieves detailed information about a specified TMS lab instance using the TMS Lab Instance Id.

Security
API Key
Header parameter nameapi_key
Query parameters
labinstanceid
integer (int64) Required

The TMS ID of the lab instance.

Responses
200

OK Response.

Collapse all
object
Id
integer (int64)

The TMS ID of the lab instance.

LabId
integer (int32)

The TMS ID of the lab.

LabName
string

The TMS name of the lab.

SeriesId
integer (int32) | null

The ID of the lab series.

SeriesName
string | null

The name of the lab series.

UserId
string

The ID you use to identify the user in your external system.

UserFirstName
string

The user's first name.

UserLastName
string

The user's last name.

ClassId
string | null

The ID of the class the lab instance is associated with.

ClassName
string | null

The name of the class the lab instance is associated with.

AssignmentId
string | null

The ID of the class assignment the lab instance is associated with.

Start
integer (int64)

When the lab was started (in Unix epoch time).

StartTime
string

When the lab was started (in Unix epoch time).

Expires
integer (int64)

When the lab expires (in Unix epoch time).

ExpiresTime
string

When the lab expires (in Unix epoch time).

End
integer (int64) | null

When the lab ended (in Unix epoch time).

EndTime
string | null

When the lab ended (in Unix epoch time).

LastActivity
integer (int64) | null

When student activity was last detected (in Unix epoch time).

LastActivityTime
string | null

When student activity was last detected (in Unix epoch time).

LastSave
integer (int64) | null

When the lab was last saved (in Unix epoch time).

LastSaveTime
string | null

When the lab was last saved (in Unix epoch time).

SaveExpires
integer (int64) | null

If the lab instance is saved, when the saved data will expire and be deleted (in Unix epoch time).

SaveExpiresTime
string | null

If the lab instance is saved, when the saved data will expire and be deleted (in Unix epoch time).

State
string

The state of the lab instance. Possible values:
Off
Provisioning Storage
Building
Building (Displayable)
Starting
Running
Saving
Saved
Resuming
Creating Snapshot
Applying Snapshot
Updating Lab Profile
Tearing Down
Cloning
Creating As Clone
Moving (Running)
Moving (Saved)
Creating New Lab Profile
Scoring
Scheduled

CompletionStatus
string

The student's completion status. Possible values:
Scheduled
Cancelled
Not Started
Incomplete
Complete
Storage Provisioning Failed
Lab Creation Failed
Resume Failed
Save Failed
Submitted For Grading
Grading In Progress

PoolMemberName
string | null

If the lab contains a virtual machine pool, the name of the pool member that was used.

LabHostId
integer (int32)

The ID of the lab host machine.

LabHostName
string

The name of the lab host machine.

DatacenterId
integer (int32)

The ID of the datacenter where the lab is located.

DatacenterName
string

The name of the datacenter where the lab is located.

DeliveryRegionId
integer (int32)

When specified, Skillable will attempt to launch the lab in the specified delivery region if a suitable host in that region is available and all required storage is available in that region. Delivery regions can be found using the DeliveryRegions command or Catalog command. Using the ipAddress parameter will result in a more reliable geo-location of the lab for the end user.

DeliveryRegionName
string

The name of the delivery region where the lab is located.

PlatformId
integer (int32)

The platform the lab has hosted on. Possible values:
2 = Hyper-V
3 = ESX
20 = Docker
-1 = None

LastSaveTriggerType
string | null

If the lab is currently saved, what triggered the save operation. Possible values:
Unknown
By Student
By Administrator
Automatic
From API Consumer

TimeInSession
integer (int32)

The total number of seconds the user spent in the lab.

TotalRunTime
integer (int32)

The total number of seconds the lab was running, whether or not the student was present.

TimeRemaining
integer (int32)

The total number of seconds remaining before the lab expires.

InstructorName
string | null

The name of the instructor for the associated class.

StartupDuration
integer (int32) | null

The number of seconds it took the lab to start.

Errors
Array of object

An array of all errors associated with the lab instance.

object
Snapshots
Array of object

An array of snapshots created by the user within the lab. This contains an array of LabInstanceSnapshot objects.

object
Sessions
Array of object

An array of session times the student spent in the lab. This contains an array of LabInstanceSnapshot objects.

object
Notes
Array of object

Array of notes applicable to the lab instance.

object
HasContent
boolean

Indicates whether the lab has content, or simply houses virtual machines.

Task
string | null

If the lab has content (HasContent=true), indicates the name of the task the student is working on.

Exercise
string | null

If the lab has content (HasContent=true), indicates the name of the exercise the student is working on.

NumTasks
integer (int32)

If the lab has content (HasContent=true), indicates the total number of tasks in the lab.

NumCompletedTasks
integer (int32)

If the lab has content (HasContent=true), indicates the number of tasks the student has completed.

TaskCompletePercent
integer (int32)

If the lab has content (HasContent=true), indicates the percentage of tasks that the student has completed.

RemoteController
string

The name of the remote controller used by the user.

Tag
string | null

Lab instance tag data.

BrowserUserAgent
string | null

The browser user agent used by the user.

LastLatency
integer (int32) | null

The last known latency value as measured between the client and the lab's datacenter.

ExamPassed
boolean | null

Indicates whether the user passed the lab. Will only be set if the lab has activities which have been scored.

ExamScore
integer (int32) | null

Indicates the lab score. Will only be set if the lab has activities which have been scored.

ExamMaxPossibleScore
integer (int32) | null

Indicates the maximum possible score of the lab. Will only be set if the lab has activities which have been scored.

ExamPassingScore
integer (int32) | null

Indicates the minimum score required to pass the lab. Will only be set if the lab has activities which have been scored.

ExamScoredById
integer (int64) | null

The ID of the user that manually scored the lab. Will only be set if the lab has activities which have been scored manually. Automatically scored labs will not include a value for this property.

ExamScoredByName
string | null

The name of the user that manually scored the lab. Will only be set if the lab has activities which have been scored manually. Automatically scored labs will not include a value for this property.

ExamDetails
string | null

Legacy Field from previous scoring engine.

ExamScoredDate
integer (int64) | null

The date the lab was scored (in Unix epoch time).

ExamScoredTime
string | null

When the lab was scored (in Unix epoch time). Will only be set if the lab has activities which have been scored.

IsExam
boolean

Indicates whether the lab is scored.

IpAddress
string | null

The user's IP address. This is only included if the IP address was provided when the lab was launched.

Country
string | null

The user's country as determined by IP address geolocation. This is only included if the IP address was provided when the lab was launched.

Region
string | null

The user's state/region as determined by IP address geolocation. This is only included if the IP address was provided when the lab was launched.

City
string | null

The user's city as determined by IP address geolocation. This is only included if the IP address was provided when the lab was launched.

Latitude
number (float) | null

The user's latitude as determined by IP address geolocation. This is only included if the IP address was provided when the lab was launched.

Longitude
number (float) | null

The user's longitude as determined by IP address geolocation. This is only included if the IP address was provided when the lab was launched.

PublicIpAddresses
Array of object

An array of public IP address information objects. This contains an array of IpAddressInfo objects.

object
CloudCredentials
Array of object

An array of credentials assigned to the lab instance. This contains an array of CloudCredential objects.

object
CloudPortalCredentials
Array of object

An array of credentials assigned to the lab instance. This contains an array of CloudPortalCredential objects.

object
VirtualMachineCredentials
Array of object

An array of credentials used to access the virtual machines. This contains an array of VirtualMachineCredential objects.

object
CloudPlatformId
integer (int32) | null

The ID of the cloud platform. Possible values:
10 = Azure
11 = AWS

ClientUrl
string | null

This response property is deprecated. Unless explicitly allowed by Skillable, this field will always be null.
To obtain an access URL, use the LabAccessUrl command.

ActivityResults
Array of object

An array of results for activities displayed in the lab instance. This contains an array of ActivityResult objects.

object
ActivityGroupResults
Array of object

An array of results for activities displayed in the lab instance Activity Group. This contains an array of ActivityResult objects.

object
EstimatedReadySeconds
integer (int32) | null

An estimated number of seconds before the lab is ready.

InstructionsSetId
string | null

The ID of the Instructions Set used.

Language
string | null

The lanuage code of the instruction set.

en = English
es = Spanish
fr = French
de = German
pt = Portuguese
ja = Japanese
zh-hans = Simplified Chinese
zh-hant = Traditional Chinese
ko = Korean

Error
string | null

In the event of an error, this will contain a detailed error message.

Status
integer (int32)

Indicates the status of the API request.
0 = Error
1 = Success