DataMigrationExtensions.CheckNameAvailabilityServiceAsync Método

Definição

Esse método verifica se um nome de recurso de nível superior proposto é válido e está disponível.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability
  • Operação IdServices_CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>> CheckNameAvailabilityServiceAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest nameAvailabilityRequest, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityServiceAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.DataMigration.Models.NameAvailabilityRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse>>
<Extension()>
Public Function CheckNameAvailabilityServiceAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, nameAvailabilityRequest As NameAvailabilityRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NameAvailabilityResponse))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

location
AzureLocation

A região do Azure da operação.

nameAvailabilityRequest
NameAvailabilityRequest

Nome solicitado a validar.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

nameAvailabilityRequest é nulo.

Aplica-se a