你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachineScaleSetVmCollection.GetAll 方法

定义

获取 VM 规模集中所有虚拟机的列表。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines
  • 操作IdVirtualMachineScaleSetVMs_List
public virtual Azure.Pageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetVmResource> GetAll (string filter = default, string select = default, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetVmResource>
override this.GetAll : string * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetVmResource>
Public Overridable Function GetAll (Optional filter As String = Nothing, Optional select As String = Nothing, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualMachineScaleSetVmResource)

参数

filter
String

要应用于操作的筛选器。 允许的值为“startswith (instanceView/statuses/code、'PowerState') eq true”、“properties/latestModelApplied eq true”、“properties/latestModelApplied eq false”。

select
String

列表参数。 允许的值为“instanceView”、“instanceView/statuses”。

expand
String

要应用于操作的 expand 表达式。 允许的值为“instanceView”。

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 VirtualMachineScaleSetVmResource 集合。

适用于