UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 106 kB
{"openapi":"3.0.0","info":{"description":"The Managed Labs Client.","title":"ManagedLabsClient","version":"2018-10-15","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/labservices/resource-manager/Microsoft.LabServices/stable/2018-10-15/ML.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"labservices-ML","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/providers/Microsoft.LabServices/operations":{"get":{"description":"Result of the request to list REST API operations","operationId":"ProviderOperations_List","parameters":[{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOperationResult"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["ProviderOperations"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/providers/Microsoft.LabServices/users/{userName}/getEnvironment":{"post":{"description":"Gets the virtual machine details","operationId":"GlobalUsers_GetEnvironment","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($expand=environment)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"$ref":"#/components/requestBodies/EnvironmentOperationsPayload"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEnvironmentResponse"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"]}},"/providers/Microsoft.LabServices/users/{userName}/getOperationBatchStatus":{"post":{"description":"Get batch operation status","operationId":"GlobalUsers_GetOperationBatchStatus","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationBatchStatusPayload"}}},"description":"Payload to get the status of an operation","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationBatchStatusResponse"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"]}},"/providers/Microsoft.LabServices/users/{userName}/getOperationStatus":{"post":{"description":"Gets the status of long running operation","operationId":"GlobalUsers_GetOperationStatus","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationStatusPayload"}}},"description":"Payload to get the status of an operation","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationStatusResponse"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"]}},"/providers/Microsoft.LabServices/users/{userName}/getPersonalPreferences":{"post":{"description":"Get personal preferences for a user","operationId":"GlobalUsers_GetPersonalPreferences","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalPreferencesOperationsPayload"}}},"description":"Represents payload for any Environment operations like get, start, stop, connect","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPersonalPreferencesResponse"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"]}},"/providers/Microsoft.LabServices/users/{userName}/listEnvironments":{"post":{"description":"List Environments for the user","operationId":"GlobalUsers_ListEnvironments","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEnvironmentsPayload"}}},"description":"Represents the payload to list environments owned by a user","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEnvironmentsResponse"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"]}},"/providers/Microsoft.LabServices/users/{userName}/listLabs":{"post":{"description":"List labs for the user.","operationId":"GlobalUsers_ListLabs","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabsResponse"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"]}},"/providers/Microsoft.LabServices/users/{userName}/register":{"post":{"description":"Register a user to a managed lab","operationId":"GlobalUsers_Register","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPayload"}}},"description":"Represents payload for Register action.","required":true},"responses":{"200":{"description":"OK"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"]}},"/providers/Microsoft.LabServices/users/{userName}/resetPassword":{"post":{"description":"Resets the user password on an environment This operation can take a while to complete","operationId":"GlobalUsers_ResetPassword","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"$ref":"#/components/requestBodies/ResetPasswordPayload"},"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"],"x-ms-long-running-operation":true}},"/providers/Microsoft.LabServices/users/{userName}/startEnvironment":{"post":{"description":"Starts an environment by starting all resources inside the environment. This operation can take a while to complete","operationId":"GlobalUsers_StartEnvironment","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"$ref":"#/components/requestBodies/EnvironmentOperationsPayload"},"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"],"x-ms-long-running-operation":true}},"/providers/Microsoft.LabServices/users/{userName}/stopEnvironment":{"post":{"description":"Stops an environment by stopping all resources inside the environment This operation can take a while to complete","operationId":"GlobalUsers_StopEnvironment","parameters":[{"description":"The name of the user.","in":"path","name":"userName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"$ref":"#/components/requestBodies/EnvironmentOperationsPayload"},"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GlobalUsers"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/labaccounts":{"get":{"description":"List lab accounts in a subscription.","operationId":"LabAccounts_ListBySubscription","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"description":"Specify the $expand query. Example: 'properties($expand=sizeConfiguration)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"description":"The filter to apply to the operation.","in":"query","name":"$filter","required":false,"schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation.","in":"query","name":"$top","required":false,"schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation.","in":"query","name":"$orderby","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseWithContinuation_LabAccount_"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["LabAccounts"],"x-ms-odata":"#/components/schemas/LabAccount","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/locations/{locationName}/operations/{operationName}":{"get":{"description":"Get operation","operationId":"Operations_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/locationName"},{"description":"The name of the operation.","in":"path","name":"operationName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResult"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Operations"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts":{"get":{"description":"List lab accounts in a resource group.","operationId":"LabAccounts_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"Specify the $expand query. Example: 'properties($expand=sizeConfiguration)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"description":"The filter to apply to the operation.","in":"query","name":"$filter","required":false,"schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation.","in":"query","name":"$top","required":false,"schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation.","in":"query","name":"$orderby","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseWithContinuation_LabAccount_"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["LabAccounts"],"x-ms-odata":"#/components/schemas/LabAccount","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}":{"delete":{"description":"Delete lab account. This operation can take a while to complete","operationId":"LabAccounts_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"202":{"description":"Accepted"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["LabAccounts"],"x-ms-long-running-operation":true},"get":{"description":"Get lab account","operationId":"LabAccounts_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($expand=sizeConfiguration)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabAccount"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["LabAccounts"]},"patch":{"description":"Modify properties of lab accounts.","operationId":"LabAccounts_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabAccountFragment"}}},"description":"Represents a lab account.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabAccount"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["LabAccounts"]},"put":{"description":"Create or replace an existing Lab Account.","operationId":"LabAccounts_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabAccount"}}},"description":"Represents a lab account.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabAccount"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabAccount"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["LabAccounts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/createLab":{"post":{"description":"Create a lab in a lab account.","operationId":"LabAccounts_CreateLab","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLabProperties"}}},"description":"Properties for creating a managed lab and a default environment setting","required":true},"responses":{"200":{"description":"OK"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["LabAccounts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages":{"get":{"description":"List gallery images in a given lab account.","operationId":"GalleryImages_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=author)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"description":"The filter to apply to the operation.","in":"query","name":"$filter","required":false,"schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation.","in":"query","name":"$top","required":false,"schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation.","in":"query","name":"$orderby","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseWithContinuation_GalleryImage_"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GalleryImages"],"x-ms-odata":"#/components/schemas/GalleryImage","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/galleryimages/{galleryImageName}":{"delete":{"description":"Delete gallery image.","operationId":"GalleryImages_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the gallery Image.","in":"path","name":"galleryImageName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GalleryImages"]},"get":{"description":"Get gallery image","operationId":"GalleryImages_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the gallery Image.","in":"path","name":"galleryImageName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=author)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImage"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GalleryImages"]},"patch":{"description":"Modify properties of gallery images.","operationId":"GalleryImages_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the gallery Image.","in":"path","name":"galleryImageName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImageFragment"}}},"description":"Represents an image from the Azure Marketplace","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImage"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GalleryImages"]},"put":{"description":"Create or replace an existing Gallery Image.","operationId":"GalleryImages_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the gallery Image.","in":"path","name":"galleryImageName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImage"}}},"description":"Represents an image from the Azure Marketplace","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryImage"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["GalleryImages"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/getRegionalAvailability":{"post":{"description":"Get regional availability information for each size category configured under a lab account","operationId":"LabAccounts_GetRegionalAvailability","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRegionalAvailabilityResponse"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["LabAccounts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs":{"get":{"description":"List labs in a given lab account.","operationId":"Labs_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"},"examples":{"Labs_List":{"value":"{devtestlab-name}"}}},{"description":"Specify the $expand query. Example: 'properties($select=maxUsersInLab)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"description":"The filter to apply to the operation.","in":"query","name":"$filter","required":false,"schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation.","in":"query","name":"$top","required":false,"schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation.","in":"query","name":"$orderby","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseWithContinuation_Lab_"},"examples":{"Labs_List":{"$ref":"#/components/examples/Labs_List"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Labs"],"x-ms-odata":"#/components/schemas/Lab","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}":{"delete":{"description":"Delete lab. This operation can take a while to complete","operationId":"Labs_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"202":{"description":"Accepted"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Labs"],"x-ms-long-running-operation":true},"get":{"description":"Get lab","operationId":"Labs_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=maxUsersInLab)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lab"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Labs"]},"patch":{"description":"Modify properties of labs.","operationId":"Labs_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabFragment"}}},"description":"Represents a lab.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lab"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Labs"]},"put":{"description":"Create or replace an existing Lab.","operationId":"Labs_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lab"}}},"description":"Represents a lab.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lab"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lab"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Labs"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/addUsers":{"post":{"description":"Add users to a lab","operationId":"Labs_AddUsers","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUsersPayload"}}},"description":"Payload for Add Users operation on a Lab.","required":true},"responses":{"200":{"description":"OK"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Labs"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings":{"get":{"description":"List environment setting in a given lab.","operationId":"EnvironmentSettings_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=publishingState)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"description":"The filter to apply to the operation.","in":"query","name":"$filter","required":false,"schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation.","in":"query","name":"$top","required":false,"schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation.","in":"query","name":"$orderby","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseWithContinuation_EnvironmentSetting_"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["EnvironmentSettings"],"x-ms-odata":"#/components/schemas/EnvironmentSetting","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}":{"delete":{"description":"Delete environment setting. This operation can take a while to complete","operationId":"EnvironmentSettings_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"202":{"description":"Accepted"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["EnvironmentSettings"],"x-ms-long-running-operation":true},"get":{"description":"Get environment setting","operationId":"EnvironmentSettings_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($select=publishingState)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentSetting"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["EnvironmentSettings"]},"patch":{"description":"Modify properties of environment setting.","operationId":"EnvironmentSettings_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentSettingFragment"}}},"description":"Represents settings of an environment, from which environment instances would be created","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentSetting"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["EnvironmentSettings"]},"put":{"description":"Create or replace an existing Environment Setting. This operation can take a while to complete","operationId":"EnvironmentSettings_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentSetting"}}},"description":"Represents settings of an environment, from which environment instances would be created","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentSetting"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentSetting"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["EnvironmentSettings"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/claimAny":{"post":{"description":"Claims a random environment for a user in an environment settings","operationId":"EnvironmentSettings_ClaimAny","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["EnvironmentSettings"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments":{"get":{"description":"List environments in a given environment setting.","operationId":"Environments_List","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($expand=networkInterface)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"description":"The filter to apply to the operation.","in":"query","name":"$filter","required":false,"schema":{"type":"string"}},{"description":"The maximum number of resources to return from the operation.","in":"query","name":"$top","required":false,"schema":{"type":"integer","format":"int32"}},{"description":"The ordering expression for the results, using OData notation.","in":"query","name":"$orderby","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseWithContinuation_Environment_"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Environments"],"x-ms-odata":"#/components/schemas/Environment","x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}":{"delete":{"description":"Delete environment. This operation can take a while to complete","operationId":"Environments_Delete","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment.","in":"path","name":"environmentName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"202":{"description":"Accepted"},"204":{"description":"No Content"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Environments"],"x-ms-long-running-operation":true},"get":{"description":"Get environment","operationId":"Environments_Get","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment.","in":"path","name":"environmentName","required":true,"schema":{"type":"string"}},{"description":"Specify the $expand query. Example: 'properties($expand=networkInterface)'","in":"query","name":"$expand","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Environment"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Environments"]},"patch":{"description":"Modify properties of environments.","operationId":"Environments_Update","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment.","in":"path","name":"environmentName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentFragment"}}},"description":"Represents an environment instance","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Environment"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Environments"]},"put":{"description":"Create or replace an existing Environment.","operationId":"Environments_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment.","in":"path","name":"environmentName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Environment"}}},"description":"Represents an environment instance","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Environment"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Environment"}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Environments"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/claim":{"post":{"description":"Claims the environment and assigns it to the user","operationId":"Environments_Claim","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment.","in":"path","name":"environmentName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Environments"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/resetPassword":{"post":{"description":"Resets the user password on an environment This operation can take a while to complete","operationId":"Environments_ResetPassword","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment.","in":"path","name":"environmentName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"requestBody":{"$ref":"#/components/requestBodies/ResetPasswordPayload"},"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudError"}}}}},"security":[{"azure_auth":["user_impersonation"]}],"tags":["Environments"],"x-ms-long-running-operation":true}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/start":{"post":{"description":"Starts an environment by starting all resources inside the environment. This operation can take a while to complete","operationId":"Environments_Start","parameters":[{"$ref":"#/components/parameters/subscriptionId"},{"$ref":"#/components/parameters/resourceGroupName"},{"description":"The name of the lab Account.","in":"path","name":"labAccountName","required":true,"schema":{"type":"string"}},{"description":"The name of the lab.","in":"path","name":"labName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment Setting.","in":"path","name":"environmentSettingName","required":true,"schema":{"type":"string"}},{"description":"The name of the environment.","in":"path","name":"environmentName","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/api-version"}],"responses":{"200":{"description":"OK"},"202":{"description":"Accepted"},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"$ref"