INetworkManagementClient.CheckDnsNameAvailabilityWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Checks whether a domain name in the cloudapp.azure.com zone is available for use.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Models.DnsNameAvailabilityResult>> CheckDnsNameAvailabilityWithHttpMessagesAsync (string location, string domainNameLabel, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member CheckDnsNameAvailabilityWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Models.DnsNameAvailabilityResult>>

Parameters

location
System.String

The location of the domain name.

domainNameLabel
System.String

The domain name to be verified. It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.

customHeaders
System.Collections.Generic.Dictionary<System.String,System.Collections.Generic.List<System.String>>

The headers that will be added to request.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<DnsNameAvailabilityResult>>

Applies to