DedicatedHostGroupResource.GetDedicatedHostAsync メソッド

定義

専用ホストに関する情報を取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • 操作IdDedicatedHosts_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.DedicatedHostResource>> GetDedicatedHostAsync (string hostName, Azure.ResourceManager.Compute.Models.InstanceViewType? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDedicatedHostAsync : string * Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.DedicatedHostResource>>
override this.GetDedicatedHostAsync : string * Nullable<Azure.ResourceManager.Compute.Models.InstanceViewType> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.DedicatedHostResource>>
Public Overridable Function GetDedicatedHostAsync (hostName As String, Optional expand As Nullable(Of InstanceViewType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DedicatedHostResource))

パラメーター

hostName
String

専用ホストの名前。

expand
Nullable<InstanceViewType>

操作に適用する展開式。 'InstanceView' は、専用ホストのインスタンス ビューの一覧を取得します。 'UserData' は、専用ホストではサポートされていません。

cancellationToken
CancellationToken

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

戻り値

例外

hostName は空の文字列であり、空でないと想定されていました。

hostName が null です。

適用対象