Compartilhar via


HDInsightContainersExtensions.CheckHDInsightNameAvailabilityAsync Método

Definição

Verifique a disponibilidade do nome do recurso.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability
  • Operação 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))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância em que o método será executado.

location
AzureLocation

O nome da região do Azure.

content
HDInsightNameAvailabilityContent

O nome e o tipo do recurso.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a