Microsoft.LabServices (stable:2018-10-15)

2025/10/23 • 55 new, 55 deleted methods

ProviderOperations_List (new)
Description Result of the request to list REST API operations
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.LabServices/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
}
,
]
,
nextLink: string ,
}
GlobalUsers_GetEnvironment (new)
Description Gets the virtual machine details
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/getEnvironment
{
userName: string ,
environmentOperationsPayload:
{
environmentId: string ,
}
,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
environment:
{
name: string ,
description: string ,
id: string ,
provisioningState: string ,
virtualMachineDetails:
{
provisioningState: string ,
rdpAuthority: string ,
sshAuthority: string ,
privateIpAddress: string ,
userName: string ,
lastKnownPowerState: string ,
}
,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
environmentState: string ,
totalUsage: string ,
passwordLastReset: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_GetOperationBatchStatus (new)
Description Get batch operation status
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/getOperationBatchStatus
{
userName: string ,
operationBatchStatusPayload:
{
urls:
[
string ,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{
items:
[
{
operationUrl: string ,
status: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_GetOperationStatus (new)
Description Gets the status of long running operation
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/getOperationStatus
{
userName: string ,
operationStatusPayload:
{
operationUrl: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{
status: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_GetPersonalPreferences (new)
Description Get personal preferences for a user
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/getPersonalPreferences
{
userName: string ,
personalPreferencesOperationsPayload:
{
labAccountResourceId: string ,
addRemove: enum ,
labResourceId: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
favoriteLabResourceIds:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_ListEnvironments (new)
Description List Environments for the user
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/listEnvironments
{
userName: string ,
listEnvironmentsPayload:
{
labId: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{
environments:
[
{
name: string ,
description: string ,
id: string ,
provisioningState: string ,
virtualMachineDetails:
{
provisioningState: string ,
rdpAuthority: string ,
sshAuthority: string ,
privateIpAddress: string ,
userName: string ,
lastKnownPowerState: string ,
}
,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
environmentState: string ,
totalUsage: string ,
passwordLastReset: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_ListLabs (new)
Description List labs for the user.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/listLabs
{
userName: string ,
api-version: string ,
}

⚐ Response (200)

{
labs:
[
{
name: string ,
provisioningState: string ,
id: string ,
usageQuota: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_Register (new)
Description Register a user to a managed lab
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/register
{
userName: string ,
registerPayload:
{
registrationCode: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_ResetPassword (new)
Description Resets the user password on an environment This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/resetPassword
{
userName: string ,
resetPasswordPayload:
{
environmentId: string ,
username: string ,
password: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_StartEnvironment (new)
Description Starts an environment by starting all resources inside the environment. This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/startEnvironment
{
userName: string ,
environmentOperationsPayload:
{
environmentId: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_StopEnvironment (new)
Description Stops an environment by stopping all resources inside the environment This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/stopEnvironment
{
userName: string ,
environmentOperationsPayload:
{
environmentId: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_ListBySubscription (new)
Description List lab accounts in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labaccounts
{
subscriptionId: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Operations_Get (new)
Description Get operation
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.LabServices/locations/{locationName}/operations/{operationName}
{
subscriptionId: string ,
locationName: string ,
operationName: string ,
api-version: string ,
}

⚐ Response (200)

{
status: string ,
error:
{
code: string ,
message: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_ListByResourceGroup (new)
Description List lab accounts in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts
{
subscriptionId: string ,
resourceGroupName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_Get (new)
Description Get lab account
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_CreateOrUpdate (new)
Description Create or replace an existing Lab Account.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labAccount:
{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_Delete (new)
Description Delete lab account. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_Update (new)
Description Modify properties of lab accounts.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labAccount:
{
properties:
{
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_CreateLab (new)
Description Create a lab in a lab account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/createLab
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
createLabProperties:
{
environmentSettingCreationParameters:
{
resourceSettingCreationParameters:
{
location: string ,
name: string ,
galleryImageResourceId: string ,
size: enum ,
referenceVmCreationParameters:
{
userName: string ,
password: string ,
}
,
}
,
}
,
labCreationParameters:
{
maxUsersInLab: integer ,
}
,
name: string ,
location: string ,
tags: object ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_List (new)
Description List gallery images in a given lab account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_Get (new)
Description Get gallery image
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
galleryImageName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_CreateOrUpdate (new)
Description Create or replace an existing Gallery Image.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
galleryImageName: string ,
galleryImage:
{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_Delete (new)
Description Delete gallery image.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
galleryImageName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_Update (new)
Description Modify properties of gallery images.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
galleryImageName: string ,
galleryImage:
{
properties:
{
isEnabled: boolean ,
isOverride: boolean ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_GetRegionalAvailability (new)
Description Get regional availability information for each size category configured under a lab account
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/getRegionalAvailability
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
api-version: string ,
}

⚐ Response (200)

{
regionalAvailability:
[
{
region: string ,
sizeAvailabilities:
[
{
sizeCategory: enum ,
isAvailable: boolean ,
}
,
]
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_List (new)
Description List labs in a given lab account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_Get (new)
Description Get lab
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_CreateOrUpdate (new)
Description Create or replace an existing Lab.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
lab:
{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_Delete (new)
Description Delete lab. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_Update (new)
Description Modify properties of labs.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
lab:
{
properties:
{
maxUsersInLab: integer ,
usageQuota: string ,
userAccessMode: enum ,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_AddUsers (new)
Description Add users to a lab
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/addUsers
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
addUsersPayload:
{
emailAddresses:
[
string ,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_List (new)
Description List environment setting in a given lab.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Get (new)
Description Get environment setting
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_CreateOrUpdate (new)
Description Create or replace an existing Environment Setting. This operation can take a while to complete
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentSetting:
{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Delete (new)
Description Delete environment setting. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Update (new)
Description Modify properties of environment setting.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentSetting:
{
properties:
{
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
galleryImageResourceId: string ,
size: enum ,
referenceVm:
{
userName: string ,
password: string ,
}
,
}
,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_ClaimAny (new)
Description Claims a random environment for a user in an environment settings
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/claimAny
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_List (new)
Description List environments in a given environment setting.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Get (new)
Description Get environment
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_CreateOrUpdate (new)
Description Create or replace an existing Environment.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
environment:
{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Delete (new)
Description Delete environment. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Update (new)
Description Modify properties of environments.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
environment:
{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Claim (new)
Description Claims the environment and assigns it to the user
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/claim
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_ResetPassword (new)
Description Resets the user password on an environment This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/resetPassword
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
resetPasswordPayload:
{
environmentId: string ,
username: string ,
password: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Start (new)
Description Starts an environment by starting all resources inside the environment. This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/start
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Stop (new)
Description Stops an environment by stopping all resources inside the environment This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/stop
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Publish (new)
Description Provisions/deprovisions required resources for an environment setting based on current state of the lab/environment setting.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/publish
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
publishPayload:
{
useExistingImage: boolean ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Start (new)
Description Starts a template by starting all resources inside the template. This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/start
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Stop (new)
Description Starts a template by starting all resources inside the template. This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/stop
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_Register (new)
Description Register to managed lab.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/register
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_List (new)
Description List users in a given lab.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_Get (new)
Description Get user
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
userName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_CreateOrUpdate (new)
Description Create or replace an existing User.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
userName: string ,
user:
{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_Delete (new)
Description Delete user. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
userName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_Update (new)
Description Modify properties of users.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
userName: string ,
user:
{
properties:
{
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ProviderOperations_List (removed)
Description Result of the request to list REST API operations
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.LabServices/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
}
,
]
,
nextLink: string ,
}
GlobalUsers_GetEnvironment (removed)
Description Gets the virtual machine details
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/getEnvironment
{
userName: string ,
environmentOperationsPayload:
{
environmentId: string ,
}
,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
environment:
{
name: string ,
description: string ,
id: string ,
provisioningState: string ,
virtualMachineDetails:
{
provisioningState: string ,
rdpAuthority: string ,
sshAuthority: string ,
privateIpAddress: string ,
userName: string ,
lastKnownPowerState: string ,
}
,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
environmentState: string ,
totalUsage: string ,
passwordLastReset: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_GetOperationBatchStatus (removed)
Description Get batch operation status
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/getOperationBatchStatus
{
userName: string ,
operationBatchStatusPayload:
{
urls:
[
string ,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{
items:
[
{
operationUrl: string ,
status: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_GetOperationStatus (removed)
Description Gets the status of long running operation
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/getOperationStatus
{
userName: string ,
operationStatusPayload:
{
operationUrl: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{
status: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_GetPersonalPreferences (removed)
Description Get personal preferences for a user
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/getPersonalPreferences
{
userName: string ,
personalPreferencesOperationsPayload:
{
labAccountResourceId: string ,
addRemove: enum ,
labResourceId: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
favoriteLabResourceIds:
[
string ,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_ListEnvironments (removed)
Description List Environments for the user
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/listEnvironments
{
userName: string ,
listEnvironmentsPayload:
{
labId: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{
environments:
[
{
name: string ,
description: string ,
id: string ,
provisioningState: string ,
virtualMachineDetails:
{
provisioningState: string ,
rdpAuthority: string ,
sshAuthority: string ,
privateIpAddress: string ,
userName: string ,
lastKnownPowerState: string ,
}
,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
environmentState: string ,
totalUsage: string ,
passwordLastReset: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_ListLabs (removed)
Description List labs for the user.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/listLabs
{
userName: string ,
api-version: string ,
}

⚐ Response (200)

{
labs:
[
{
name: string ,
provisioningState: string ,
id: string ,
usageQuota: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_Register (removed)
Description Register a user to a managed lab
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/register
{
userName: string ,
registerPayload:
{
registrationCode: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_ResetPassword (removed)
Description Resets the user password on an environment This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/resetPassword
{
userName: string ,
resetPasswordPayload:
{
environmentId: string ,
username: string ,
password: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_StartEnvironment (removed)
Description Starts an environment by starting all resources inside the environment. This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/startEnvironment
{
userName: string ,
environmentOperationsPayload:
{
environmentId: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GlobalUsers_StopEnvironment (removed)
Description Stops an environment by stopping all resources inside the environment This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.LabServices/users/{userName}/stopEnvironment
{
userName: string ,
environmentOperationsPayload:
{
environmentId: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_ListBySubscription (removed)
Description List lab accounts in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labaccounts
{
subscriptionId: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Operations_Get (removed)
Description Get operation
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.LabServices/locations/{locationName}/operations/{operationName}
{
subscriptionId: string ,
locationName: string ,
operationName: string ,
api-version: string ,
}

⚐ Response (200)

{
status: string ,
error:
{
code: string ,
message: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_ListByResourceGroup (removed)
Description List lab accounts in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts
{
subscriptionId: string ,
resourceGroupName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_Get (removed)
Description Get lab account
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_CreateOrUpdate (removed)
Description Create or replace an existing Lab Account.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labAccount:
{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_Delete (removed)
Description Delete lab account. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_Update (removed)
Description Modify properties of lab accounts.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labAccount:
{
properties:
{
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
sizeConfiguration:
{
environmentSizes:
[
{
name: enum ,
vmSizes:
[
{
computeSize: string ,
price: number ,
numberOfCores: integer ,
memory: number ,
}
,
]
,
maxPrice: number ,
minNumberOfCores: integer ,
minMemory: number ,
}
,
]
,
}
,
enabledRegionSelection: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_CreateLab (removed)
Description Create a lab in a lab account.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/createLab
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
createLabProperties:
{
environmentSettingCreationParameters:
{
resourceSettingCreationParameters:
{
location: string ,
name: string ,
galleryImageResourceId: string ,
size: enum ,
referenceVmCreationParameters:
{
userName: string ,
password: string ,
}
,
}
,
}
,
labCreationParameters:
{
maxUsersInLab: integer ,
}
,
name: string ,
location: string ,
tags: object ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_List (removed)
Description List gallery images in a given lab account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_Get (removed)
Description Get gallery image
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
galleryImageName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_CreateOrUpdate (removed)
Description Create or replace an existing Gallery Image.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
galleryImageName: string ,
galleryImage:
{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_Delete (removed)
Description Delete gallery image.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
galleryImageName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
GalleryImages_Update (removed)
Description Modify properties of gallery images.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
galleryImageName: string ,
galleryImage:
{
properties:
{
isEnabled: boolean ,
isOverride: boolean ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
author: string ,
createdDate: string ,
description: string ,
imageReference:
{
offer: string ,
publisher: string ,
sku: string ,
osType: string ,
version: string ,
}
,
icon: string ,
isEnabled: boolean ,
isOverride: boolean ,
planId: string ,
isPlanAuthorized: boolean ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
LabAccounts_GetRegionalAvailability (removed)
Description Get regional availability information for each size category configured under a lab account
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/getRegionalAvailability
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
api-version: string ,
}

⚐ Response (200)

{
regionalAvailability:
[
{
region: string ,
sizeAvailabilities:
[
{
sizeCategory: enum ,
isAvailable: boolean ,
}
,
]
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_List (removed)
Description List labs in a given lab account.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_Get (removed)
Description Get lab
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_CreateOrUpdate (removed)
Description Create or replace an existing Lab.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
lab:
{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_Delete (removed)
Description Delete lab. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_Update (removed)
Description Modify properties of labs.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
lab:
{
properties:
{
maxUsersInLab: integer ,
usageQuota: string ,
userAccessMode: enum ,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
maxUsersInLab: integer ,
userQuota: integer ,
invitationCode: string ,
createdByObjectId: string ,
usageQuota: string ,
userAccessMode: enum ,
createdByUserPrincipalName: string ,
createdDate: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_AddUsers (removed)
Description Add users to a lab
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/addUsers
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
addUsersPayload:
{
emailAddresses:
[
string ,
]
,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_List (removed)
Description List environment setting in a given lab.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Get (removed)
Description Get environment setting
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_CreateOrUpdate (removed)
Description Create or replace an existing Environment Setting. This operation can take a while to complete
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentSetting:
{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Delete (removed)
Description Delete environment setting. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Update (removed)
Description Modify properties of environment setting.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentSetting:
{
properties:
{
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
galleryImageResourceId: string ,
size: enum ,
referenceVm:
{
userName: string ,
password: string ,
}
,
}
,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
publishingState: enum ,
configurationState: enum ,
description: string ,
title: string ,
resourceSettings:
{
id: string ,
galleryImageResourceId: string ,
imageName: string ,
size: enum ,
cores: integer ,
referenceVm:
{
userName: string ,
password: string ,
vmStateDetails:
{
rdpAuthority: string ,
sshAuthority: string ,
powerState: string ,
lastKnownPowerState: string ,
}
,
vmResourceId: string ,
}
,
}
,
lastChanged: string ,
lastPublished: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_ClaimAny (removed)
Description Claims a random environment for a user in an environment settings
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/claimAny
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_List (removed)
Description List environments in a given environment setting.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Get (removed)
Description Get environment
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_CreateOrUpdate (removed)
Description Create or replace an existing Environment.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
environment:
{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Delete (removed)
Description Delete environment. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Update (removed)
Description Modify properties of environments.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
environment:
{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
resourceSets:
{
vmResourceId: string ,
resourceSettingId: string ,
}
,
claimedByUserObjectId: string ,
claimedByUserPrincipalId: string ,
claimedByUserName: string ,
isClaimed: boolean ,
lastKnownPowerState: string ,
networkInterface:
{
privateIpAddress: string ,
sshAuthority: string ,
rdpAuthority: string ,
username: string ,
}
,
totalUsage: string ,
passwordLastReset: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Claim (removed)
Description Claims the environment and assigns it to the user
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/claim
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_ResetPassword (removed)
Description Resets the user password on an environment This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/resetPassword
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
resetPasswordPayload:
{
environmentId: string ,
username: string ,
password: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Start (removed)
Description Starts an environment by starting all resources inside the environment. This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/start
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Environments_Stop (removed)
Description Stops an environment by stopping all resources inside the environment This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/stop
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
environmentName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Publish (removed)
Description Provisions/deprovisions required resources for an environment setting based on current state of the lab/environment setting.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/publish
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
publishPayload:
{
useExistingImage: boolean ,
}
,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Start (removed)
Description Starts a template by starting all resources inside the template. This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/start
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
EnvironmentSettings_Stop (removed)
Description Starts a template by starting all resources inside the template. This operation can take a while to complete
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/stop
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
environmentSettingName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Labs_Register (removed)
Description Register to managed lab.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/register
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_List (removed)
Description List users in a given lab.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
$expand: string ,
$filter: string ,
$top: integer ,
$orderby: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_Get (removed)
Description Get user
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
userName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_CreateOrUpdate (removed)
Description Create or replace an existing User.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
userName: string ,
user:
{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_Delete (removed)
Description Delete user. This operation can take a while to complete
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
userName: string ,
api-version: string ,
}

⚐ Response (202)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
Users_Update (removed)
Description Modify properties of users.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/users/{userName}
{
subscriptionId: string ,
resourceGroupName: string ,
labAccountName: string ,
labName: string ,
userName: string ,
user:
{
properties:
{
provisioningState: string ,
uniqueIdentifier: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
email: string ,
familyName: string ,
givenName: string ,
tenantId: string ,
totalUsage: string ,
provisioningState: string ,
uniqueIdentifier: string ,
latestOperationResult:
{
status: string ,
errorCode: string ,
errorMessage: string ,
requestUri: string ,
httpMethod: string ,
operationUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}