Compartir a través de


NetworkExtensions.CheckDnsNameAvailabilityAsync Método

Definición

Comprueba si hay disponible un nombre de dominio en la zona cloudapp.azure.com para su uso.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability
  • Operation IdCheckDnsNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.Models.DnsNameAvailabilityResult>> CheckDnsNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string domainNameLabel, System.Threading.CancellationToken cancellationToken = default);
static member CheckDnsNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.Models.DnsNameAvailabilityResult>>
<Extension()>
Public Function CheckDnsNameAvailabilityAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, domainNameLabel As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DnsNameAvailabilityResult))

Parámetros

subscriptionResource
SubscriptionResource

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

location
AzureLocation

Ubicación del nombre de dominio.

domainNameLabel
String

Nombre de dominio que se va a comprobar. Debe ajustarse a la siguiente expresión regular: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

domainNameLabel es null.

Se aplica a