IWebSiteManagementClient.CheckNameAvailabilityWithHttpMessagesAsync Method

Definition

Check if a resource name is available.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.WebSites.Models.ResourceNameAvailability>> CheckNameAvailabilityWithHttpMessagesAsync (string name, string type, bool? isFqdn = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckNameAvailabilityWithHttpMessagesAsync : string * string * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.WebSites.Models.ResourceNameAvailability>>
Public Function CheckNameAvailabilityWithHttpMessagesAsync (name As String, type As String, Optional isFqdn As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ResourceNameAvailability))

Parameters

name
System.String

Resource name to verify.

type
System.String

Resource type used for verification. Possible values include: 'Site', 'Slot', 'HostingEnvironment', 'PublishingUser', 'Microsoft.Web/sites', 'Microsoft.Web/sites/slots', 'Microsoft.Web/hostingEnvironments', 'Microsoft.Web/publishingUsers'

isFqdn
System.Nullable<System.Boolean>

Is fully qualified domain name.

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<AzureOperationResponse<ResourceNameAvailability>>

Remarks

Description for Check if a resource name is available.

Applies to