VirtualMachines Interface
public interface VirtualMachines extends SupportsListing,SupportsListingByResourceGroup,SupportsGettingByResourceGroup,SupportsGettingById,SupportsCreating<VirtualMachine.DefinitionStages.Blank>,SupportsDeletingById,SupportsDeletingByResourceGroup,SupportsBatchCreation,SupportsBatchDeletion,HasManager,HasInner
Entry point to virtual machine management API.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
capture(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd)
Captures the virtual machine by copying virtual hard disks of the VM and returns template as a JSON string that can be used to create similar VMs. |
Observable<String> |
captureAsync(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd)
Captures the virtual machine by copying virtual hard disks of the VM asynchronously. |
ServiceFuture<String> |
captureAsync(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd, ServiceCallback<String> callback)
Captures the virtual machine by copying virtual hard disks of the VM asynchronously. |
void |
deallocate(String groupName, String name)
Shuts down the virtual machine and releases the compute resources. |
Completable |
deallocateAsync(String groupName, String name)
Shuts down the virtual machine and releases the compute resources asynchronously. |
ServiceFuture<Void> |
deallocateAsync(String groupName, String name, ServiceCallback<Void> callback)
Shuts down the virtual machine and releases the compute resources asynchronously. |
void |
generalize(String groupName, String name)
Generalizes the virtual machine. |
Completable |
generalizeAsync(String groupName, String name)
Generalizes the virtual machine asynchronously. |
ServiceFuture<Void> |
generalizeAsync(String groupName, String name, ServiceCallback<Void> callback)
Generalizes the virtual machine asynchronously. |
void |
migrateToManaged(String groupName, String name)
Migrates the virtual machine with unmanaged disks to use managed disks. |
Completable |
migrateToManagedAsync(String groupName, String name)
Converts (migrates) the virtual machine with un-managed disks to use managed disk asynchronously. |
ServiceFuture<Void> |
migrateToManagedAsync(String groupName, String name, ServiceCallback<Void> callback)
Converts (migrates) the virtual machine with un-managed disks to use managed disk asynchronously. |
void |
powerOff(String groupName, String name)
Powers off (stops) a virtual machine. |
Completable |
powerOffAsync(String groupName, String name)
Powers off (stops) the virtual machine asynchronously. |
ServiceFuture<Void> |
powerOffAsync(String groupName, String name, ServiceCallback<Void> callback)
Powers off (stop) the virtual machine asynchronously. |
void |
redeploy(String groupName, String name)
Redeploys a virtual machine. |
Completable |
redeployAsync(String groupName, String name)
Redeploys the virtual machine asynchronously. |
ServiceFuture<Void> |
redeployAsync(String groupName, String name, ServiceCallback<Void> callback)
Redeploys the virtual machine asynchronously. |
void |
restart(String groupName, String name)
Restarts a virtual machine. |
Completable |
restartAsync(String groupName, String name)
Restarts the virtual machine asynchronously. |
ServiceFuture<Void> |
restartAsync(String groupName, String name, ServiceCallback<Void> callback)
Restarts the virtual machine asynchronously. |
Virtual |
sizes() |
void |
start(String groupName, String name)
Starts a virtual machine. |
Completable |
startAsync(String groupName, String name)
Starts the virtual machine asynchronously. |
ServiceFuture<Void> |
startAsync(String groupName, String name, ServiceCallback<Void> callback)
Starts the virtual machine asynchronously. |
Inherited Members
Method Details
capture
public String capture(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd)
Captures the virtual machine by copying virtual hard disks of the VM and returns template as a JSON string that can be used to create similar VMs.
Parameters:
Returns:
captureAsync
public Observable
Captures the virtual machine by copying virtual hard disks of the VM asynchronously.
Parameters:
Returns:
captureAsync
public ServiceFuture
Captures the virtual machine by copying virtual hard disks of the VM asynchronously.
Parameters:
Returns:
deallocate
public void deallocate(String groupName, String name)
Shuts down the virtual machine and releases the compute resources.
Parameters:
deallocateAsync
public Completable deallocateAsync(String groupName, String name)
Shuts down the virtual machine and releases the compute resources asynchronously.
Parameters:
Returns:
deallocateAsync
public ServiceFuture
Shuts down the virtual machine and releases the compute resources asynchronously.
Parameters:
Returns:
generalize
public void generalize(String groupName, String name)
Generalizes the virtual machine.
Parameters:
generalizeAsync
public Completable generalizeAsync(String groupName, String name)
Generalizes the virtual machine asynchronously.
Parameters:
Returns:
generalizeAsync
public ServiceFuture
Generalizes the virtual machine asynchronously.
Parameters:
Returns:
migrateToManaged
public void migrateToManaged(String groupName, String name)
Migrates the virtual machine with unmanaged disks to use managed disks.
Parameters:
migrateToManagedAsync
public Completable migrateToManagedAsync(String groupName, String name)
Converts (migrates) the virtual machine with un-managed disks to use managed disk asynchronously.
Parameters:
Returns:
migrateToManagedAsync
public ServiceFuture
Converts (migrates) the virtual machine with un-managed disks to use managed disk asynchronously.
Parameters:
Returns:
powerOff
public void powerOff(String groupName, String name)
Powers off (stops) a virtual machine.
Parameters:
powerOffAsync
public Completable powerOffAsync(String groupName, String name)
Powers off (stops) the virtual machine asynchronously.
Parameters:
Returns:
powerOffAsync
public ServiceFuture
Powers off (stop) the virtual machine asynchronously.
Parameters:
Returns:
redeploy
public void redeploy(String groupName, String name)
Redeploys a virtual machine.
Parameters:
redeployAsync
public Completable redeployAsync(String groupName, String name)
Redeploys the virtual machine asynchronously.
Parameters:
Returns:
redeployAsync
public ServiceFuture
Redeploys the virtual machine asynchronously.
Parameters:
Returns:
restart
public void restart(String groupName, String name)
Restarts a virtual machine.
Parameters:
restartAsync
public Completable restartAsync(String groupName, String name)
Restarts the virtual machine asynchronously.
Parameters:
Returns:
restartAsync
public ServiceFuture
Restarts the virtual machine asynchronously.
Parameters:
Returns:
sizes
public VirtualMachineSizes sizes()
Returns:
start
public void start(String groupName, String name)
Starts a virtual machine.
Parameters:
startAsync
public Completable startAsync(String groupName, String name)
Starts the virtual machine asynchronously.
Parameters:
Returns:
startAsync
public ServiceFuture
Starts the virtual machine asynchronously.
Parameters:
Returns:
Applies to
Azure SDK for Java