VirtualMachineInstances Interface

public interface VirtualMachineInstances

Resource collection API of VirtualMachineInstances.

Method Summary

Modifier and Type Method and Description
abstract void createCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body)

Implements the operation to creates a checkpoint in a virtual machine instance.

abstract void createCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body, Context context)

Implements the operation to creates a checkpoint in a virtual machine instance.

abstract VirtualMachineInstance createOrUpdate(String resourceUri, VirtualMachineInstanceInner resource)

Implements virtual machine PUT method.

abstract VirtualMachineInstance createOrUpdate(String resourceUri, VirtualMachineInstanceInner resource, Context context)

Implements virtual machine PUT method.

abstract void delete(String resourceUri)

Deletes an virtual machine.

abstract void delete(String resourceUri, ForceDelete force, DeleteFromHost deleteFromHost, Context context)

Deletes an virtual machine.

abstract void deleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body)

Implements the operation to delete a checkpoint in a virtual machine instance.

abstract void deleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body, Context context)

Implements the operation to delete a checkpoint in a virtual machine instance.

abstract VirtualMachineInstance get(String resourceUri)

Gets a virtual machine.

abstract Response<VirtualMachineInstance> getWithResponse(String resourceUri, Context context)

Gets a virtual machine.

abstract PagedIterable<VirtualMachineInstance> list(String resourceUri)

Implements List virtual machine instances.

abstract PagedIterable<VirtualMachineInstance> list(String resourceUri, Context context)

Implements List virtual machine instances.

abstract void restart(String resourceUri)

Implements the operation to restart a virtual machine.

abstract void restart(String resourceUri, Context context)

Implements the operation to restart a virtual machine.

abstract void restoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body)

Implements the operation to restores to a checkpoint in a virtual machine instance.

abstract void restoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body, Context context)

Implements the operation to restores to a checkpoint in a virtual machine instance.

abstract void start(String resourceUri)

Implements the operation to start a virtual machine.

abstract void start(String resourceUri, Context context)

Implements the operation to start a virtual machine.

abstract void stop(String resourceUri, StopVirtualMachineOptions body)

Implements the operation to stop a virtual machine.

abstract void stop(String resourceUri, StopVirtualMachineOptions body, Context context)

Implements the operation to stop a virtual machine.

abstract VirtualMachineInstance update(String resourceUri, VirtualMachineInstanceUpdate properties)

Updates a virtual machine.

abstract VirtualMachineInstance update(String resourceUri, VirtualMachineInstanceUpdate properties, Context context)

Updates a virtual machine.

Method Details

createCheckpoint

public abstract void createCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body)

Implements the operation to creates a checkpoint in a virtual machine instance. Creates a checkpoint in virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
body - The content of the action request.

createCheckpoint

public abstract void createCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body, Context context)

Implements the operation to creates a checkpoint in a virtual machine instance. Creates a checkpoint in virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
body - The content of the action request.
context - The context to associate with this operation.

createOrUpdate

public abstract VirtualMachineInstance createOrUpdate(String resourceUri, VirtualMachineInstanceInner resource)

Implements virtual machine PUT method. The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
resource - Resource create parameters.

Returns:

define the virtualMachineInstance.

createOrUpdate

public abstract VirtualMachineInstance createOrUpdate(String resourceUri, VirtualMachineInstanceInner resource, Context context)

Implements virtual machine PUT method. The operation to create or update a virtual machine instance. Please note some properties can be set only during virtual machine instance creation.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
resource - Resource create parameters.
context - The context to associate with this operation.

Returns:

define the virtualMachineInstance.

delete

public abstract void delete(String resourceUri)

Deletes an virtual machine. The operation to delete a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.

delete

public abstract void delete(String resourceUri, ForceDelete force, DeleteFromHost deleteFromHost, Context context)

Deletes an virtual machine. The operation to delete a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
force - Forces the resource to be deleted.
deleteFromHost - Whether to disable the VM from azure and also delete it from Vmm.
context - The context to associate with this operation.

deleteCheckpoint

public abstract void deleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body)

Implements the operation to delete a checkpoint in a virtual machine instance. Deletes a checkpoint in virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
body - The content of the action request.

deleteCheckpoint

public abstract void deleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body, Context context)

Implements the operation to delete a checkpoint in a virtual machine instance. Deletes a checkpoint in virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
body - The content of the action request.
context - The context to associate with this operation.

get

public abstract VirtualMachineInstance get(String resourceUri)

Gets a virtual machine. Retrieves information about a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.

Returns:

define the virtualMachineInstance.

getWithResponse

public abstract Response<VirtualMachineInstance> getWithResponse(String resourceUri, Context context)

Gets a virtual machine. Retrieves information about a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

define the virtualMachineInstance along with Response<T>.

list

public abstract PagedIterable<VirtualMachineInstance> list(String resourceUri)

Implements List virtual machine instances. Lists all of the virtual machine instances within the specified parent resource.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.

Returns:

the response of a VirtualMachineInstance list operation as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<VirtualMachineInstance> list(String resourceUri, Context context)

Implements List virtual machine instances. Lists all of the virtual machine instances within the specified parent resource.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

the response of a VirtualMachineInstance list operation as paginated response with PagedIterable<T>.

restart

public abstract void restart(String resourceUri)

Implements the operation to restart a virtual machine. The operation to restart a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.

restart

public abstract void restart(String resourceUri, Context context)

Implements the operation to restart a virtual machine. The operation to restart a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

restoreCheckpoint

public abstract void restoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body)

Implements the operation to restores to a checkpoint in a virtual machine instance. Restores to a checkpoint in virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
body - The content of the action request.

restoreCheckpoint

public abstract void restoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body, Context context)

Implements the operation to restores to a checkpoint in a virtual machine instance. Restores to a checkpoint in virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
body - The content of the action request.
context - The context to associate with this operation.

start

public abstract void start(String resourceUri)

Implements the operation to start a virtual machine. The operation to start a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.

start

public abstract void start(String resourceUri, Context context)

Implements the operation to start a virtual machine. The operation to start a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

stop

public abstract void stop(String resourceUri, StopVirtualMachineOptions body)

Implements the operation to stop a virtual machine. The operation to power off (stop) a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
body - The content of the action request.

stop

public abstract void stop(String resourceUri, StopVirtualMachineOptions body, Context context)

Implements the operation to stop a virtual machine. The operation to power off (stop) a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
body - The content of the action request.
context - The context to associate with this operation.

update

public abstract VirtualMachineInstance update(String resourceUri, VirtualMachineInstanceUpdate properties)

Updates a virtual machine. The operation to update a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
properties - The resource properties to be updated.

Returns:

define the virtualMachineInstance.

update

public abstract VirtualMachineInstance update(String resourceUri, VirtualMachineInstanceUpdate properties, Context context)

Updates a virtual machine. The operation to update a virtual machine instance.

Parameters:

resourceUri - The fully qualified Azure Resource manager identifier of the resource.
properties - The resource properties to be updated.
context - The context to associate with this operation.

Returns:

define the virtualMachineInstance.

Applies to