ComputeExtensions.GetDedicatedHostGroupsAsync メソッド

定義

サブスクリプション内のすべての専用ホスト グループを一覧表示します。 応答で nextLink プロパティを使用して、専用ホスト グループの次のページを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.Compute/hostGroups
  • 操作IdDedicatedHostGroups_ListBySubscription
public static Azure.AsyncPageable<Azure.ResourceManager.Compute.DedicatedHostGroupResource> GetDedicatedHostGroupsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDedicatedHostGroupsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.DedicatedHostGroupResource>
<Extension()>
Public Function GetDedicatedHostGroupsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DedicatedHostGroupResource)

パラメーター

subscriptionResource
SubscriptionResource

SubscriptionResourceメソッドが実行するインスタンス。

cancellationToken
CancellationToken

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

戻り値

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

適用対象