Compartir a través de


ApiManagementExtensions.CheckApiManagementServiceNameAvailabilityAsync Método

Definición

Comprueba la disponibilidad y la corrección de un nombre para un servicio de API Management.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability
  • IdApiManagementService_CheckNameAvailability de operación
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))

Parámetros

subscriptionResource
SubscriptionResource

Instancia SubscriptionResource en la que se ejecutará el método.

content
ApiManagementServiceNameAvailabilityContent

Parámetros proporcionados a la operación CheckNameAvailability.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a