Global Users - List Labs

List labs for the user.

POST https://management.azure.com/providers/Microsoft.LabServices/users/{userName}/listLabs?api-version=2018-10-15

URI Parameters

Name In Required Type Description
userName
path True

string

The name of the user.

api-version
query True

string

Client API version.

Responses

Name Type Description
200 OK

ListLabsResponse

OK

Other Status Codes

CloudError

BadRequest

Security

azure_auth

OAuth2 Implicit Grant

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Access Microsoft Azure

Definitions

Name Description
CloudError

Error from a REST request.

CloudErrorBody

Body of an error from a REST request.

LabDetails

This represents the details about a lab that the User is in, and its state.

ListLabsResponse

Lists the labs owned by a user

CloudError

Error from a REST request.

Name Type Description
error

CloudErrorBody

Body of an error from a REST request.

CloudErrorBody

Body of an error from a REST request.

Name Type Description
code

string

details

CloudErrorBody[]

Inner errors.

message

string

target

string

LabDetails

This represents the details about a lab that the User is in, and its state.

Name Type Description
id

string

The Id of the lab.

name

string

Name of the lab

provisioningState

string

The provisioning state of the lab.

usageQuota

string

The maximum duration a user can use a VM in this lab.

ListLabsResponse

Lists the labs owned by a user

Name Type Description
labs

LabDetails[]

List of all the labs