public interface VirtualMachines
Modifier and Type | Method and Description |
---|---|
void |
addDataDisk(String resourceGroupName,
String labName,
String name,
DataDiskProperties dataDiskProperties)
Attach a new or existing data disk to virtual machine.
|
void |
addDataDisk(String resourceGroupName,
String labName,
String name,
DataDiskProperties dataDiskProperties,
com.azure.core.util.Context context)
Attach a new or existing data disk to virtual machine.
|
void |
applyArtifacts(String resourceGroupName,
String labName,
String name,
ApplyArtifactsRequest applyArtifactsRequest)
Apply artifacts to virtual machine.
|
void |
applyArtifacts(String resourceGroupName,
String labName,
String name,
ApplyArtifactsRequest applyArtifactsRequest,
com.azure.core.util.Context context)
Apply artifacts to virtual machine.
|
void |
claim(String resourceGroupName,
String labName,
String name)
Take ownership of an existing virtual machine This operation can take a while to complete.
|
void |
claim(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Take ownership of an existing virtual machine This operation can take a while to complete.
|
LabVirtualMachine.DefinitionStages.Blank |
define(String name)
Begins definition for a new LabVirtualMachine resource.
|
void |
delete(String resourceGroupName,
String labName,
String name)
Delete virtual machine.
|
void |
delete(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Delete virtual machine.
|
void |
deleteById(String id)
Delete virtual machine.
|
void |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Delete virtual machine.
|
void |
detachDataDisk(String resourceGroupName,
String labName,
String name,
DetachDataDiskProperties detachDataDiskProperties)
Detach the specified disk from the virtual machine.
|
void |
detachDataDisk(String resourceGroupName,
String labName,
String name,
DetachDataDiskProperties detachDataDiskProperties,
com.azure.core.util.Context context)
Detach the specified disk from the virtual machine.
|
LabVirtualMachine |
get(String resourceGroupName,
String labName,
String name)
Get virtual machine.
|
LabVirtualMachine |
getById(String id)
Get virtual machine.
|
com.azure.core.http.rest.Response<LabVirtualMachine> |
getByIdWithResponse(String id,
String expand,
com.azure.core.util.Context context)
Get virtual machine.
|
RdpConnection |
getRdpFileContents(String resourceGroupName,
String labName,
String name)
Gets a string that represents the contents of the RDP file for the virtual machine.
|
com.azure.core.http.rest.Response<RdpConnection> |
getRdpFileContentsWithResponse(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Gets a string that represents the contents of the RDP file for the virtual machine.
|
com.azure.core.http.rest.Response<LabVirtualMachine> |
getWithResponse(String resourceGroupName,
String labName,
String name,
String expand,
com.azure.core.util.Context context)
Get virtual machine.
|
com.azure.core.http.rest.PagedIterable<LabVirtualMachine> |
list(String resourceGroupName,
String labName)
List virtual machines in a given lab.
|
com.azure.core.http.rest.PagedIterable<LabVirtualMachine> |
list(String resourceGroupName,
String labName,
String expand,
String filter,
Integer top,
String orderby,
com.azure.core.util.Context context)
List virtual machines in a given lab.
|
ApplicableSchedule |
listApplicableSchedules(String resourceGroupName,
String labName,
String name)
Lists the applicable start/stop schedules, if any.
|
com.azure.core.http.rest.Response<ApplicableSchedule> |
listApplicableSchedulesWithResponse(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Lists the applicable start/stop schedules, if any.
|
void |
redeploy(String resourceGroupName,
String labName,
String name)
Redeploy a virtual machine This operation can take a while to complete.
|
void |
redeploy(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Redeploy a virtual machine This operation can take a while to complete.
|
void |
resize(String resourceGroupName,
String labName,
String name,
ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)
Resize Virtual Machine.
|
void |
resize(String resourceGroupName,
String labName,
String name,
ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties,
com.azure.core.util.Context context)
Resize Virtual Machine.
|
void |
restart(String resourceGroupName,
String labName,
String name)
Restart a virtual machine.
|
void |
restart(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Restart a virtual machine.
|
void |
start(String resourceGroupName,
String labName,
String name)
Start a virtual machine.
|
void |
start(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Start a virtual machine.
|
void |
stop(String resourceGroupName,
String labName,
String name)
Stop a virtual machine This operation can take a while to complete.
|
void |
stop(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Stop a virtual machine This operation can take a while to complete.
|
void |
transferDisks(String resourceGroupName,
String labName,
String name)
Transfers all data disks attached to the virtual machine to be owned by the current user.
|
void |
transferDisks(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Transfers all data disks attached to the virtual machine to be owned by the current user.
|
void |
unClaim(String resourceGroupName,
String labName,
String name)
Release ownership of an existing virtual machine This operation can take a while to complete.
|
void |
unClaim(String resourceGroupName,
String labName,
String name,
com.azure.core.util.Context context)
Release ownership of an existing virtual machine This operation can take a while to complete.
|
com.azure.core.http.rest.PagedIterable<LabVirtualMachine> list(String resourceGroupName, String labName)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<LabVirtualMachine> list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.expand
- Specify the $expand query. Example:
'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.LabVirtualMachine get(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<LabVirtualMachine> getWithResponse(String resourceGroupName, String labName, String name, String expand, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.expand
- Specify the $expand query. Example:
'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void delete(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void delete(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.dataDiskProperties
- Request body for adding a new or existing data disk to a virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.dataDiskProperties
- Request body for adding a new or existing data disk to a virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.applyArtifactsRequest
- Request body for applying artifacts to a virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.applyArtifactsRequest
- Request body for applying artifacts to a virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void claim(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void claim(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.detachDataDiskProperties
- Request body for detaching data disk from a virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.detachDataDiskProperties
- Request body for detaching data disk from a virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.RdpConnection getRdpFileContents(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<RdpConnection> getRdpFileContentsWithResponse(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.ApplicableSchedule listApplicableSchedules(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ApplicableSchedule> listApplicableSchedulesWithResponse(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void redeploy(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void redeploy(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.resizeLabVirtualMachineProperties
- Request body for resizing a virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.resizeLabVirtualMachineProperties
- Request body for resizing a virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void restart(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void restart(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void start(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void start(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void stop(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void stop(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void transferDisks(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void transferDisks(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void unClaim(String resourceGroupName, String labName, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void unClaim(String resourceGroupName, String labName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.LabVirtualMachine getById(String id)
id
- the resource ID.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<LabVirtualMachine> getByIdWithResponse(String id, String expand, com.azure.core.util.Context context)
id
- the resource ID.expand
- Specify the $expand query. Example:
'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void deleteById(String id)
id
- the resource ID.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
id
- the resource ID.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.LabVirtualMachine.DefinitionStages.Blank define(String name)
name
- resource name.Copyright © 2021 Microsoft Corporation. All rights reserved.