DedicatedHostCollection.ExistsAsync メソッド

定義

リソースが Azure に存在するかどうかを確認します。

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

パラメーター

hostName
String

専用ホストの名前。

expand
Nullable<InstanceViewType>

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

cancellationToken
CancellationToken

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

戻り値

例外

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

hostName が null です。

適用対象