次の方法で共有


HDInsightContainersExtensions.CheckHDInsightNameAvailabilityAsync メソッド

定義

リソース名の可用性を確認します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability
  • 操作IdLocations_CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HDInsight.Containers.Models.HDInsightNameAvailabilityResult>> CheckHDInsightNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.HDInsight.Containers.Models.HDInsightNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckHDInsightNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.HDInsight.Containers.Models.HDInsightNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HDInsight.Containers.Models.HDInsightNameAvailabilityResult>>
<Extension()>
Public Function CheckHDInsightNameAvailabilityAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As HDInsightNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HDInsightNameAvailabilityResult))

パラメーター

subscriptionResource
SubscriptionResource

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

location
AzureLocation

Azure リージョンの名前。

content
HDInsightNameAvailabilityContent

リソースの名前と種類。

cancellationToken
CancellationToken

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

戻り値

例外

content が null です。

適用対象