Partager via


ApiManagementExtensions.CheckApiManagementServiceNameAvailabilityAsync Méthode

Définition

Vérifie la disponibilité et l’exactitude d’un nom pour un service Gestion des API.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability
  • IdApiManagementService_CheckNameAvailability d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.ApiManagementServiceNameAvailabilityResult>> CheckApiManagementServiceNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.ApiManagement.Models.ApiManagementServiceNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckApiManagementServiceNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.ApiManagement.Models.ApiManagementServiceNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.Models.ApiManagementServiceNameAvailabilityResult>>
<Extension()>
Public Function CheckApiManagementServiceNameAvailabilityAsync (subscriptionResource As SubscriptionResource, content As ApiManagementServiceNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApiManagementServiceNameAvailabilityResult))

Paramètres

subscriptionResource
SubscriptionResource

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

content
ApiManagementServiceNameAvailabilityContent

Paramètres fournis à l’opération CheckNameAvailability.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

content a la valeur null.

S’applique à