Partilhar via


DataMigrationExtensions.CheckNameAvailabilityService Método

Definição

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

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

Parâmetros

subscriptionResource
SubscriptionResource

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

location
AzureLocation

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

nameAvailabilityRequest
NameAvailabilityRequest

Nome solicitado para validar.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

nameAvailabilityRequest é nulo.

Aplica-se a