Partager via


DataMigrationExtensions.CheckNameAvailabilityService Méthode

Définition

Cette méthode vérifie si un nom de ressource de niveau supérieur proposé est valide et disponible.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability
  • IdServices_CheckNameAvailability d’opération
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)

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource sur laquelle la méthode s’exécute.

location
AzureLocation

Région Azure de l’opération.

nameAvailabilityRequest
NameAvailabilityRequest

Nom demandé à valider.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

nameAvailabilityRequest a la valeur null.

S’applique à