次の方法で共有


VirtualMachineCollection.GetAllAsync メソッド

定義

指定したリソース グループ内のすべての仮想マシンを一覧表示します。 応答で nextLink プロパティを使用して、仮想マシンの次のページを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines
  • 操作IdVirtualMachines_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineResource> GetAllAsync (string filter = default, Azure.ResourceManager.Compute.Models.GetVirtualMachineExpandType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * Nullable<Azure.ResourceManager.Compute.Models.GetVirtualMachineExpandType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineResource>
override this.GetAllAsync : string * Nullable<Azure.ResourceManager.Compute.Models.GetVirtualMachineExpandType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional expand As Nullable(Of GetVirtualMachineExpandType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualMachineResource)

パラメーター

filter
String

応答で返された VM をフィルター処理するためのシステム クエリ オプション。 使用できる値は'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}' です。

expand
Nullable<GetVirtualMachineExpandType>

操作に適用する展開式。 'instanceView' では、すべてのVirtual Machinesの実行時状態をフェッチできます。有効な$filter オプションが指定されている場合にのみ指定できます。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の VirtualMachineResource サービス要求を受け取る可能性がある の非同期コレクション。

適用対象