Interface VirtualMachineScaleSetVMs
- All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing<VirtualMachineScaleSetVM>
public interface VirtualMachineScaleSetVMs
extends com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing<VirtualMachineScaleSetVM>
Entry point to virtual machine scale set instance management API.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeallocateInstances(Collection<String> instanceIds) Shuts down the virtual machine instances and releases the associated compute resources.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.deleteInstancesAsync(String... instanceIds) Deletes the specified virtual machine instances from the scale set.deleteInstancesAsync(Collection<String> instanceIds) Deletes the specified virtual machine instances from the scale set.deleteInstancesAsync(Collection<String> instanceIds, boolean forceDeletion) Deletes the specified virtual machine instances from the scale set.getInstance(String instanceId) Get the specified virtual machine instance from the scale set.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.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.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.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.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.startInstancesAsync(Collection<String> instanceIds) Starts the virtual machine instances.voidupdateInstances(String... instanceIds) Updates the specified virtual machine instances from the scale set.updateInstancesAsync(String... instanceIds) Updates the specified virtual machine instances from the scale set.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 Details
-
deleteInstancesAsync
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
-
deleteInstances
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
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
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
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
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
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
-
updateInstances
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
Shuts down the virtual machine instances and releases the associated compute resources.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances
-
deallocateInstancesAsync
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
Stops the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instancesskipShutdown- power off without graceful shutdown
-
powerOffInstancesAsync
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
Starts the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances
-
startInstancesAsync
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
Restarts the virtual machine instances.- Parameters:
instanceIds- instance IDs of the virtual machine scale set instances
-
restartInstancesAsync
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
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
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
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
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
-