Compartir a través de


NetworkExtensions.CheckDnsNameAvailability 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 Azure.Response<Azure.ResourceManager.Network.Models.DnsNameAvailabilityResult> CheckDnsNameAvailability (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string domainNameLabel, System.Threading.CancellationToken cancellationToken = default);
static member CheckDnsNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.Models.DnsNameAvailabilityResult>
<Extension()>
Public Function CheckDnsNameAvailability (subscriptionResource As SubscriptionResource, location As AzureLocation, domainNameLabel As String, Optional cancellationToken As CancellationToken = Nothing) As 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