public interface VirtualMachineScaleSets extends SupportsListing,SupportsListingByResourceGroup,SupportsGettingByResourceGroup,SupportsGettingById,SupportsCreating<VirtualMachineScaleSet.DefinitionStages.Blank>,SupportsDeletingById,SupportsDeletingByResourceGroup,SupportsBatchCreation,SupportsBatchDeletion,HasManager,HasInner
Entry point to virtual machine scale set management API.
public void deallocate(String groupName, String name)
Shuts down the virtual machines in the scale set and releases the compute resources.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
Throws:
CloudException
- thrown for an invalid response from the service.
IOException
- exception thrown from serialization/deserialization
InterruptedException
- exception thrown when the operation is interrupted
deallocateAsync
public Completable deallocateAsync(String groupName, String name)
Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
Returns:
a representation of the deferred computation of this call
deallocateAsync
public ServiceFuture deallocateAsync(String groupName, String name, ServiceCallback callback)
Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
powerOff
public void powerOff(String groupName, String name)
Powers off (stops) the virtual machines in the scale set.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
Throws:
CloudException
- thrown for an invalid response from the service.
IOException
- exception thrown from serialization/deserialization
InterruptedException
- exception thrown when the operation is interrupted
powerOffAsync
public Completable powerOffAsync(String groupName, String name)
Powers off (stops) the virtual machines in the scale set asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine in the scale set is in
name
- the name of the virtual machine scale set
Returns:
a representation of the deferred computation of this call
powerOffAsync
public ServiceFuture powerOffAsync(String groupName, String name, ServiceCallback callback)
Powers off (stop) the virtual machines in the scale set asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine in the scale set is in
name
- the name of the virtual machine scale set
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
reimage
public void reimage(String groupName, String name)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
Throws:
CloudException
- thrown for an invalid response from the service.
IOException
- exception thrown from serialization/deserialization
InterruptedException
- exception thrown when the operation is interrupted
reimageAsync
public Completable reimageAsync(String groupName, String name)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
Returns:
a representation of the deferred computation of this call
reimageAsync
public ServiceFuture reimageAsync(String groupName, String name, ServiceCallback callback)
Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
restart
public void restart(String groupName, String name)
Restarts the virtual machines in the scale set.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
Throws:
CloudException
- thrown for an invalid response from the service.
IOException
- exception thrown from serialization/deserialization
InterruptedException
- exception thrown when the operation is interrupted
restartAsync
public Completable restartAsync(String groupName, String name)
Restarts the virtual machines in the scale set asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the virtual machine scale set name
Returns:
a representation of the deferred computation of this call
restartAsync
public ServiceFuture restartAsync(String groupName, String name, ServiceCallback callback)
Restarts the virtual machines in the scale set asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the virtual machine scale set name
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
start
public void start(String groupName, String name)
Starts the virtual machines in the scale set.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
Throws:
CloudException
- thrown for an invalid response from the service.
IOException
- exception thrown from serialization/deserialization
InterruptedException
- exception thrown when the operation is interrupted
startAsync
public Completable startAsync(String groupName, String name)
Starts the virtual machines in the scale set asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
Returns:
a representation of the deferred computation of this call
startAsync
public ServiceFuture startAsync(String groupName, String name, ServiceCallback callback)
Starts the virtual machines in the scale set asynchronously.
Parameters:
groupName
- the name of the resource group the virtual machine scale set is in
name
- the name of the virtual machine scale set
callback
- the callback to call on success or failure
Returns:
a handle to cancel the request
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.