Interface VirtualMachinesClient
-
public interface VirtualMachinesClient
An instance of this class provides access to all the operations defined in VirtualMachinesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginCreateCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body)
Creates a checkpoint in virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginCreateCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body, com.azure.core.util.Context context)
Creates a checkpoint in virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner>
beginCreateOrUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body)
Creates Or Updates virtual machines deployed on scvmm fabric.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner>
beginCreateOrUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, com.azure.core.util.Context context)
Creates Or Updates virtual machines deployed on scvmm fabric.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String virtualMachineName, Boolean retain, Boolean force)
Deletes a VirtualMachine deployed on ScVmm fabric.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String virtualMachineName, Boolean retain, Boolean force, com.azure.core.util.Context context)
Deletes a VirtualMachine deployed on ScVmm fabric.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDeleteCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineDeleteCheckpoint body)
Deletes a checkpoint in virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDeleteCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineDeleteCheckpoint body, com.azure.core.util.Context context)
Deletes a checkpoint in virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginRestart(String resourceGroupName, String virtualMachineName)
Restart virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginRestart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Restart virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginRestoreCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body)
Restores to a checkpoint in virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginRestoreCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body, com.azure.core.util.Context context)
Restores to a checkpoint in virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginStart(String resourceGroupName, String virtualMachineName)
Start virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginStart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Start virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body)
Stop virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, com.azure.core.util.Context context)
Stop virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner>
beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body)
Updates the VirtualMachines resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner>
beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, com.azure.core.util.Context context)
Updates the VirtualMachines resource.void
createCheckpoint(String resourceGroupName, String virtualMachineName)
Creates a checkpoint in virtual machine.void
createCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body)
Creates a checkpoint in virtual machine.void
createCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body, com.azure.core.util.Context context)
Creates a checkpoint in virtual machine.VirtualMachineInner
createOrUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body)
Creates Or Updates virtual machines deployed on scvmm fabric.VirtualMachineInner
createOrUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, com.azure.core.util.Context context)
Creates Or Updates virtual machines deployed on scvmm fabric.void
delete(String resourceGroupName, String virtualMachineName)
Deletes a VirtualMachine deployed on ScVmm fabric.void
delete(String resourceGroupName, String virtualMachineName, Boolean retain, Boolean force)
Deletes a VirtualMachine deployed on ScVmm fabric.void
delete(String resourceGroupName, String virtualMachineName, Boolean retain, Boolean force, com.azure.core.util.Context context)
Deletes a VirtualMachine deployed on ScVmm fabric.void
deleteCheckpoint(String resourceGroupName, String virtualMachineName)
Deletes a checkpoint in virtual machine.void
deleteCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineDeleteCheckpoint body)
Deletes a checkpoint in virtual machine.void
deleteCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineDeleteCheckpoint body, com.azure.core.util.Context context)
Deletes a checkpoint in virtual machine.VirtualMachineInner
getByResourceGroup(String resourceGroupName, String virtualMachineName)
Implements VirtualMachine GET method.com.azure.core.http.rest.Response<VirtualMachineInner>
getByResourceGroupWithResponse(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Implements VirtualMachine GET method.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
list()
List of VirtualMachines in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
list(com.azure.core.util.Context context)
List of VirtualMachines in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
listByResourceGroup(String resourceGroupName)
List of VirtualMachines in a resource group.com.azure.core.http.rest.PagedIterable<VirtualMachineInner>
listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
List of VirtualMachines in a resource group.void
restart(String resourceGroupName, String virtualMachineName)
Restart virtual machine.void
restart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Restart virtual machine.void
restoreCheckpoint(String resourceGroupName, String virtualMachineName)
Restores to a checkpoint in virtual machine.void
restoreCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body)
Restores to a checkpoint in virtual machine.void
restoreCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body, com.azure.core.util.Context context)
Restores to a checkpoint in virtual machine.void
start(String resourceGroupName, String virtualMachineName)
Start virtual machine.void
start(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Start virtual machine.void
stop(String resourceGroupName, String virtualMachineName)
Stop virtual machine.void
stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body)
Stop virtual machine.void
stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, com.azure.core.util.Context context)
Stop virtual machine.VirtualMachineInner
update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body)
Updates the VirtualMachines resource.VirtualMachineInner
update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, com.azure.core.util.Context context)
Updates the VirtualMachines resource.
-
-
-
Method Detail
-
getByResourceGroup
VirtualMachineInner getByResourceGroup(String resourceGroupName, String virtualMachineName)
Implements VirtualMachine GET method.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- Returns:
- the VirtualMachines resource definition.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<VirtualMachineInner> getByResourceGroupWithResponse(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Implements VirtualMachine GET method.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.context
- The context to associate with this operation.- Returns:
- the VirtualMachines resource definition 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body)
Creates Or Updates virtual machines deployed on scvmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Request payload.- Returns:
- the
SyncPoller
for polling of the VirtualMachines resource definition. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, com.azure.core.util.Context context)
Creates Or Updates virtual machines deployed on scvmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the VirtualMachines resource definition. - 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.
-
createOrUpdate
VirtualMachineInner createOrUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body)
Creates Or Updates virtual machines deployed on scvmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Request payload.- Returns:
- the VirtualMachines resource definition.
- 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.
-
createOrUpdate
VirtualMachineInner createOrUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, com.azure.core.util.Context context)
Creates Or Updates virtual machines deployed on scvmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the VirtualMachines resource definition.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineName, Boolean retain, Boolean force)
Deletes a VirtualMachine deployed on ScVmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.retain
- Whether to just disable the VM from azure and retain the VM in the VMM.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineName, Boolean retain, Boolean force, com.azure.core.util.Context context)
Deletes a VirtualMachine deployed on ScVmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.retain
- Whether to just disable the VM from azure and retain the VM in the VMM.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
delete
void delete(String resourceGroupName, String virtualMachineName, Boolean retain, Boolean force)
Deletes a VirtualMachine deployed on ScVmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.retain
- Whether to just disable the VM from azure and retain the VM in the VMM.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.- 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.
-
delete
void delete(String resourceGroupName, String virtualMachineName)
Deletes a VirtualMachine deployed on ScVmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- 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.
-
delete
void delete(String resourceGroupName, String virtualMachineName, Boolean retain, Boolean force, com.azure.core.util.Context context)
Deletes a VirtualMachine deployed on ScVmm fabric.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.retain
- Whether to just disable the VM from azure and retain the VM in the VMM.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body)
Updates the VirtualMachines resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- VirtualMachines patch payload.- Returns:
- the
SyncPoller
for polling of the VirtualMachines resource definition. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, com.azure.core.util.Context context)
Updates the VirtualMachines resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- VirtualMachines patch payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the VirtualMachines resource definition. - 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.
-
update
VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body)
Updates the VirtualMachines resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- VirtualMachines patch payload.- Returns:
- the VirtualMachines resource definition.
- 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.
-
update
VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, com.azure.core.util.Context context)
Updates the VirtualMachines resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- VirtualMachines patch payload.context
- The context to associate with this operation.- Returns:
- the VirtualMachines resource definition.
- 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.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body)
Stop virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine stop action payload.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, com.azure.core.util.Context context)
Stop virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine stop action payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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 virtualMachineName, StopVirtualMachineOptions body)
Stop virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine stop action payload.- 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 virtualMachineName)
Stop virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- 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 virtualMachineName, StopVirtualMachineOptions body, com.azure.core.util.Context context)
Stop virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine stop action payload.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.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String virtualMachineName)
Start virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Start virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
start
void start(String resourceGroupName, String virtualMachineName)
Start virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- 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 virtualMachineName, com.azure.core.util.Context context)
Start virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.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.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String virtualMachineName)
Restart virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Restart virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
restart
void restart(String resourceGroupName, String virtualMachineName)
Restart virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- 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.
-
restart
void restart(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
Restart virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.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.
-
beginCreateCheckpoint
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginCreateCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body)
Creates a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine create checkpoint action payload.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginCreateCheckpoint
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginCreateCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body, com.azure.core.util.Context context)
Creates a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine create checkpoint action payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
createCheckpoint
void createCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body)
Creates a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine create checkpoint action payload.- 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.
-
createCheckpoint
void createCheckpoint(String resourceGroupName, String virtualMachineName)
Creates a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- 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.
-
createCheckpoint
void createCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body, com.azure.core.util.Context context)
Creates a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine create checkpoint action payload.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.
-
beginDeleteCheckpoint
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineDeleteCheckpoint body)
Deletes a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine delete checkpoint action payload.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDeleteCheckpoint
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineDeleteCheckpoint body, com.azure.core.util.Context context)
Deletes a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine delete checkpoint action payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
deleteCheckpoint
void deleteCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineDeleteCheckpoint body)
Deletes a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine delete checkpoint action payload.- 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.
-
deleteCheckpoint
void deleteCheckpoint(String resourceGroupName, String virtualMachineName)
Deletes a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- 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.
-
deleteCheckpoint
void deleteCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineDeleteCheckpoint body, com.azure.core.util.Context context)
Deletes a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine delete checkpoint action payload.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.
-
beginRestoreCheckpoint
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestoreCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body)
Restores to a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine restore checkpoint action payload.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginRestoreCheckpoint
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestoreCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body, com.azure.core.util.Context context)
Restores to a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine restore checkpoint action payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
restoreCheckpoint
void restoreCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body)
Restores to a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine restore checkpoint action payload.- 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.
-
restoreCheckpoint
void restoreCheckpoint(String resourceGroupName, String virtualMachineName)
Restores to a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.- 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.
-
restoreCheckpoint
void restoreCheckpoint(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body, com.azure.core.util.Context context)
Restores to a checkpoint in virtual machine.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineName
- Name of the VirtualMachine.body
- Virtualmachine restore checkpoint action payload.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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName)
List of VirtualMachines in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.- Returns:
- list of VirtualMachines as paginated response with
PagedIterable
. - 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
List of VirtualMachines in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.context
- The context to associate with this operation.- Returns:
- list of VirtualMachines as paginated response with
PagedIterable
. - 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.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list()
List of VirtualMachines in a subscription.- Returns:
- list of VirtualMachines as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineInner> list(com.azure.core.util.Context context)
List of VirtualMachines in a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- list of VirtualMachines as paginated response with
PagedIterable
. - 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.
-
-