次の方法で共有


VirtualMachineScaleSets Interface

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.

Method Summary

Modifier and Type Method and Description
void deallocate(String groupName, String name)

Shuts down the virtual machines in the scale set and releases the compute resources.

Completable deallocateAsync(String groupName, String name)

Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.

ServiceFuture<Void> deallocateAsync(String groupName, String name, ServiceCallback<Void> callback)

Shuts down the virtual machines in the scale set and releases the compute resources asynchronously.

void powerOff(String groupName, String name)

Powers off (stops) the virtual machines in the scale set.

Completable powerOffAsync(String groupName, String name)

Powers off (stops) the virtual machines in the scale set asynchronously.

ServiceFuture<Void> powerOffAsync(String groupName, String name, ServiceCallback<Void> callback)

Powers off (stop) the virtual machines in the scale set asynchronously.

void reimage(String groupName, String name)

Re-images (updates the version of the installed operating system) the virtual machines in the scale set.

Completable reimageAsync(String groupName, String name)

Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.

ServiceFuture<Void> reimageAsync(String groupName, String name, ServiceCallback<Void> callback)

Re-images (updates the version of the installed operating system) the virtual machines in the scale set asynchronously.

void restart(String groupName, String name)

Restarts the virtual machines in the scale set.

Completable restartAsync(String groupName, String name)

Restarts the virtual machines in the scale set asynchronously.

ServiceFuture<Void> restartAsync(String groupName, String name, ServiceCallback<Void> callback)

Restarts the virtual machines in the scale set asynchronously.

void start(String groupName, String name)

Starts the virtual machines in the scale set.

Completable startAsync(String groupName, String name)

Starts the virtual machines in the scale set asynchronously.

ServiceFuture<Void> startAsync(String groupName, String name, ServiceCallback<Void> callback)

Starts the virtual machines in the scale set asynchronously.

Inherited Members

SupportsBatchCreation<ResourceT>.create(Creatable<ResourceT>... creatables) SupportsBatchCreation<ResourceT>.create(List<Creatable<ResourceT>> creatables) SupportsBatchCreation<ResourceT>.createAsync(Creatable<ResourceT>... creatables) SupportsBatchCreation<ResourceT>.createAsync(List<Creatable<ResourceT>> creatables) SupportsBatchCreation<ResourceT>.createAsync(ServiceCallback<CreatedResources<ResourceT>> callback, Creatable<ResourceT>... creatables) SupportsBatchCreation<ResourceT>.createAsync(final ServiceCallback<CreatedResources<ResourceT>> callback, List<Creatable<ResourceT>> creatables) SupportsCreating<T>.define(String name) SupportsDeletingById.deleteById(String id) SupportsDeletingById.deleteByIdAsync(String id, ServiceCallback<Void> callback) SupportsDeletingById.deleteByIdAsync(String id) SupportsBatchDeletion.deleteByIds(Collection<String> ids) SupportsBatchDeletion.deleteByIds(String...ids) SupportsBatchDeletion.deleteByIdsAsync(Collection<String> ids) SupportsBatchDeletion.deleteByIdsAsync(String...ids) SupportsDeletingByResourceGroup.deleteByResourceGroup(String resourceGroupName, String name) SupportsDeletingByResourceGroup.deleteByResourceGroupAsync(String resourceGroupName, String name, ServiceCallback<Void> callback) SupportsDeletingByResourceGroup.deleteByResourceGroupAsync(String resourceGroupName, String name) SupportsGettingById<T>.getById(String id) SupportsGettingById<T>.getByIdAsync(String id) SupportsGettingById<T>.getByIdAsync(String id, ServiceCallback<T> callback) SupportsGettingByResourceGroup<T>.getByResourceGroup(String resourceGroupName, String name) SupportsGettingByResourceGroup<T>.getByResourceGroupAsync(String resourceGroupName, String name) SupportsGettingByResourceGroup<T>.getByResourceGroupAsync(String resourceGroupName, String name, ServiceCallback<T> callback) HasInner<T>.inner() SupportsListing<T>.list() SupportsListing<T>.listAsync() SupportsListingByResourceGroup<T>.listByResourceGroup(String resourceGroupName) SupportsListingByResourceGroup<T>.listByResourceGroupAsync(String resourceGroupName) HasManager<ManagerT>.manager()

Method Details

deallocate

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