VirtualMachineScaleSets.powerOffAsync 方法

定义

重载

powerOffAsync(String groupName, String name)

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

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

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

powerOffAsync(String groupName, String name)

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

public Completable powerOffAsync(String groupName, String name)

参数

groupName
String

the name of the resource group the virtual machine in the scale set is in

name
String

the name of the virtual machine scale set

返回

Completable

a representation of the deferred computation of this call

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

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

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

参数

groupName
String

the name of the resource group the virtual machine in the scale set is in

name
String

the name of the virtual machine scale set

callback
ServiceCallback<Void>

the callback to call on success or failure

返回

ServiceFuture<Void>

a handle to cancel the request

适用于