Interface VirtualMachineScaleSetVMs
-
- All Superinterfaces:
SupportsListing<VirtualMachineScaleSetVM>
public interface VirtualMachineScaleSetVMs extends SupportsListing<VirtualMachineScaleSetVM>
Entry point to virtual machine scale set instance management API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeallocateInstances(Collection<String> instanceIds)Shuts down the virtual machine instances and releases the associated compute resources.Mono<Void>deallocateInstancesAsync(Collection<String> instanceIds)Shuts down the virtual machine instances and releases the associated compute resources.voiddeleteInstances(String... instanceIds)Deletes the specified virtual machine instances from the scale set.voiddeleteInstances(Collection<String> instanceIds, boolean forceDeletion)Deletes the specified virtual machine instances from the scale set.Mono<Void>deleteInstancesAsync(String... instanceIds)Deletes the specified virtual machine instances from the scale set.Mono<Void>deleteInstancesAsync(Collection<String> instanceIds)Deletes the specified virtual machine instances from the scale set.Mono<Void>deleteInstancesAsync(Collection<String> instanceIds, boolean forceDeletion)Deletes the specified virtual machine instances from the scale set.VirtualMachineScaleSetVMgetInstance(String instanceId)Get the specified virtual machine instance from the scale set.Mono<VirtualMachineScaleSetVM>getInstanceAsync(String instanceId)Get the specified virtual machine instance from the scale set.com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVM>list(String filter, VirtualMachineScaleSetVMExpandType expand)Lists all the resources of the specified type in the currently selected subscription.com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVM>listAsync(String filter, VirtualMachineScaleSetVMExpandType expand)Lists all the resources of the specified type in the currently selected subscription.voidpowerOffInstances(Collection<String> instanceIds, boolean skipShutdown)Stops the virtual machine instances.Mono<Void>powerOffInstancesAsync(Collection<String> instanceIds, boolean skipShutdown)Stops the virtual machine instances.voidredeployInstances(Collection<String> instanceIds)Shuts down the virtual machine instances, move them to new node, and powers them back on.Mono<Void>redeployInstancesAsync(Collection<String> instanceIds)Shuts down the virtual machine instances, move them to new node, and powers them back on.voidrestartInstances(Collection<String> instanceIds)Restarts the virtual machine instances.Mono<Void>restartInstancesAsync(Collection<String> instanceIds)Restarts the virtual machine instances.voidsimulateEviction(String instanceId)Simulates the eviction of the specified spot virtual machine in the scale set.Mono<Void>simulateEvictionAsync(String instanceId)Simulates the eviction of the specified spot virtual machine in the scale set asynchronously.voidstartInstances(Collection<String> instanceIds)Starts the virtual machine instances.Mono<Void>startInstancesAsync(Collection<String> instanceIds)Starts the virtual machine instances.voidupdateInstances(String... instanceIds)Updates the specified virtual machine instances from the scale set.Mono<Void>updateInstancesAsync(String... instanceIds)Updates the specified virtual machine instances from the scale set.Mono<Void>updateInstancesAsync(Collection<String> instanceIds)Updates the specified virtual machine instances from the scale set.-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing
list, listAsync
-
-
-
-
Method Detail
-
deleteInstancesAsync
Mono<Void> deleteInstancesAsync(Collection<String> instanceIds)
Deletes the specified virtual machine instances from the scale set.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances to be deleted- Returns:
- a representation of the deferred computation of this call.
-
deleteInstancesAsync
Mono<Void> deleteInstancesAsync(String... instanceIds)
Deletes the specified virtual machine instances from the scale set.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances to be deleted- Returns:
- a representation of the deferred computation of this call.
-
deleteInstances
void deleteInstances(String... instanceIds)
Deletes the specified virtual machine instances from the scale set.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances to be deleted
-
deleteInstancesAsync
Mono<Void> deleteInstancesAsync(Collection<String> instanceIds, boolean forceDeletion)
Deletes the specified virtual machine instances from the scale set.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances to be deletedforceDeletion- force delete without graceful shutdown- Returns:
- a representation of the deferred computation of this call.
-
deleteInstances
void deleteInstances(Collection<String> instanceIds, boolean forceDeletion)
Deletes the specified virtual machine instances from the scale set.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances to be deletedforceDeletion- force delete without graceful shutdown
-
getInstance
VirtualMachineScaleSetVM getInstance(String instanceId)
Get the specified virtual machine instance from the scale set.- Parameters:
instanceId- instance ID of the virtual machine scale set instance to be fetched.- Returns:
- the virtual machine scale set instance.
-
getInstanceAsync
Mono<VirtualMachineScaleSetVM> getInstanceAsync(String instanceId)
Get the specified virtual machine instance from the scale set.- Parameters:
instanceId- instance ID of the virtual machine scale set instance to be fetched.- Returns:
- the virtual machine scale set instance.
-
updateInstancesAsync
Mono<Void> updateInstancesAsync(Collection<String> instanceIds)
Updates the specified virtual machine instances from the scale set.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances to be updated- Returns:
- a representation of the deferred computation of this call.
-
updateInstancesAsync
Mono<Void> updateInstancesAsync(String... instanceIds)
Updates the specified virtual machine instances from the scale set.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances to be updated- Returns:
- a representation of the deferred computation of this call.
-
updateInstances
void updateInstances(String... instanceIds)
Updates the specified virtual machine instances from the scale set.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances to be updated
-
deallocateInstances
void deallocateInstances(Collection<String> instanceIds)
Shuts down the virtual machine instances and releases the associated compute resources.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances
-
deallocateInstancesAsync
Mono<Void> deallocateInstancesAsync(Collection<String> instanceIds)
Shuts down the virtual machine instances and releases the associated compute resources.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances- Returns:
- a representation of the deferred computation of this call.
-
powerOffInstances
void powerOffInstances(Collection<String> instanceIds, boolean skipShutdown)
Stops the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instancesskipShutdown- power off without graceful shutdown
-
powerOffInstancesAsync
Mono<Void> powerOffInstancesAsync(Collection<String> instanceIds, boolean skipShutdown)
Stops the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instancesskipShutdown- power off without graceful shutdown- Returns:
- a representation of the deferred computation of this call.
-
startInstances
void startInstances(Collection<String> instanceIds)
Starts the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances
-
startInstancesAsync
Mono<Void> startInstancesAsync(Collection<String> instanceIds)
Starts the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances- Returns:
- a representation of the deferred computation of this call.
-
restartInstances
void restartInstances(Collection<String> instanceIds)
Restarts the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances
-
restartInstancesAsync
Mono<Void> restartInstancesAsync(Collection<String> instanceIds)
Restarts the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances- Returns:
- a representation of the deferred computation of this call.
-
redeployInstances
void redeployInstances(Collection<String> instanceIds)
Shuts down the virtual machine instances, move them to new node, and powers them back on.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances
-
redeployInstancesAsync
Mono<Void> redeployInstancesAsync(Collection<String> instanceIds)
Shuts down the virtual machine instances, move them to new node, and powers them back on.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances- Returns:
- a representation of the deferred computation of this call.
-
simulateEvictionAsync
Mono<Void> simulateEvictionAsync(String instanceId)
Simulates the eviction of the specified spot virtual machine in the scale set asynchronously. The eviction will occur with 30 minutes after calling this API.- Parameters:
instanceId- The instance ID of the virtual machine.- Returns:
- a representation of the deferred computation of this call
-
simulateEviction
void simulateEviction(String instanceId)
Simulates the eviction of the specified spot virtual machine in the scale set. The eviction will occur with 30 minutes after calling this API.- Parameters:
instanceId- The instance ID of the virtual machine.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineScaleSetVM> list(String filter, VirtualMachineScaleSetVMExpandType expand)
Lists all the resources of the specified type in the currently selected subscription.- Parameters:
filter- The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'.expand- The expand expression to apply to the operation. Allowed values are 'instanceView'.- Returns:
- A
PagedIterableof resources
-
listAsync
com.azure.core.http.rest.PagedFlux<VirtualMachineScaleSetVM> listAsync(String filter, VirtualMachineScaleSetVMExpandType expand)
Lists all the resources of the specified type in the currently selected subscription.- Parameters:
filter- The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'.expand- The expand expression to apply to the operation. Allowed values are 'instanceView'.- Returns:
- A
PagedFluxof resources
-
-