Freigeben über


HDInsightContainersExtensions.CheckHDInsightNameAvailabilityAsync Methode

Definition

Überprüfen Sie die Verfügbarkeit des Ressourcennamens.

  • Anforderungspfad/Abonnements/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability
  • Vorgangs-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))

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance die -Methode ausgeführt wird.

location
AzureLocation

Der Name der Azure-Region.

content
HDInsightNameAvailabilityContent

Name und Typ der Ressource.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: