Freigeben über


DataMigrationExtensions.CheckNameAvailabilityServiceAsync Methode

Definition

Mit dieser Methode wird überprüft, ob ein vorgeschlagener Ressourcenname der obersten Ebene gültig und verfügbar ist.

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability
  • Vorgang 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))

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance, für den die Methode ausgeführt wird.

location
AzureLocation

Die Azure-Region des Vorgangs.

nameAvailabilityRequest
NameAvailabilityRequest

Der Zu überprüfende Name wurde angefordert.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

nameAvailabilityRequest ist NULL.

Gilt für: