Interface VirtualMachines
-
public interface VirtualMachines
Resource collection API of VirtualMachines.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachine
get(String resourceGroupName, String labName, String virtualMachineName)
Returns the properties for a lab virtual machine.com.azure.core.http.rest.Response<VirtualMachine>
getWithResponse(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Returns the properties for a lab virtual machine.com.azure.core.http.rest.PagedIterable<VirtualMachine>
listByLab(String resourceGroupName, String labName)
Returns a list of all virtual machines for a lab.com.azure.core.http.rest.PagedIterable<VirtualMachine>
listByLab(String resourceGroupName, String labName, String filter, com.azure.core.util.Context context)
Returns a list of all virtual machines for a lab.void
redeploy(String resourceGroupName, String labName, String virtualMachineName)
Action to redeploy a lab virtual machine to a different compute node.void
redeploy(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Action to redeploy a lab virtual machine to a different compute node.void
reimage(String resourceGroupName, String labName, String virtualMachineName)
Re-image a lab virtual machine.void
reimage(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Re-image a lab virtual machine.void
resetPassword(String resourceGroupName, String labName, String virtualMachineName, ResetPasswordBody body)
Resets a lab virtual machine password.void
resetPassword(String resourceGroupName, String labName, String virtualMachineName, ResetPasswordBody body, com.azure.core.util.Context context)
Resets a lab virtual machine password.void
start(String resourceGroupName, String labName, String virtualMachineName)
Action to start a lab virtual machine.void
start(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Action to start a lab virtual machine.void
stop(String resourceGroupName, String labName, String virtualMachineName)
Action to stop a lab virtual machine.void
stop(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Action to stop a lab virtual machine.
-
-
-
Method Detail
-
listByLab
com.azure.core.http.rest.PagedIterable<VirtualMachine> listByLab(String resourceGroupName, String labName)
Returns a list of all virtual machines for a lab.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.- Returns:
- paged list of lab services virtual machines.
- Throws:
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.
-
listByLab
com.azure.core.http.rest.PagedIterable<VirtualMachine> listByLab(String resourceGroupName, String labName, String filter, com.azure.core.util.Context context)
Returns a list of all virtual machines for a lab.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.filter
- The filter to apply to the operation.context
- The context to associate with this operation.- Returns:
- paged list of lab services virtual machines.
- Throws:
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.
-
get
VirtualMachine get(String resourceGroupName, String labName, String virtualMachineName)
Returns the properties for a lab virtual machine.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.- Returns:
- a lab virtual machine resource.
- Throws:
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.
-
getWithResponse
com.azure.core.http.rest.Response<VirtualMachine> getWithResponse(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Returns the properties for a lab virtual machine.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.context
- The context to associate with this operation.- Returns:
- a lab virtual machine resource along with
Response
. - Throws:
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.
-
start
void start(String resourceGroupName, String labName, String virtualMachineName)
Action to start a lab virtual machine.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.- Throws:
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.
-
start
void start(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Action to start a lab virtual machine.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.context
- The context to associate with this operation.- Throws:
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.
-
stop
void stop(String resourceGroupName, String labName, String virtualMachineName)
Action to stop a lab virtual machine.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.- Throws:
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.
-
stop
void stop(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Action to stop a lab virtual machine.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.context
- The context to associate with this operation.- Throws:
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.
-
reimage
void reimage(String resourceGroupName, String labName, String virtualMachineName)
Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.- Throws:
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.
-
reimage
void reimage(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published snapshot of the reference environment of the lab.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.context
- The context to associate with this operation.- Throws:
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.
-
redeploy
void redeploy(String resourceGroupName, String labName, String virtualMachineName)
Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.- Throws:
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.
-
redeploy
void redeploy(String resourceGroupName, String labName, String virtualMachineName, com.azure.core.util.Context context)
Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.context
- The context to associate with this operation.- Throws:
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.
-
resetPassword
void resetPassword(String resourceGroupName, String labName, String virtualMachineName, ResetPasswordBody body)
Resets a lab virtual machine password.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.body
- The request body.- Throws:
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.
-
resetPassword
void resetPassword(String resourceGroupName, String labName, String virtualMachineName, ResetPasswordBody body, com.azure.core.util.Context context)
Resets a lab virtual machine password.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.virtualMachineName
- The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.body
- The request body.context
- The context to associate with this operation.- Throws:
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.
-
-