VirtualMachineCollection.GetAllAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したリソース グループ内のすべての仮想マシンを一覧表示します。 応答で 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 サービス要求を受け取る可能性がある の非同期コレクション。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET