WebSiteManagementClientExtensions.CheckNameAvailabilityAsync Method

Definition

Check if a resource name is available.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner> CheckNameAvailabilityAsync (this Microsoft.Azure.Management.AppService.Fluent.IWebSiteManagementClient operations, string name, Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes type, bool? isFqdn = default, System.Threading.CancellationToken cancellationToken = default);
static member CheckNameAvailabilityAsync : Microsoft.Azure.Management.AppService.Fluent.IWebSiteManagementClient * string * Microsoft.Azure.Management.AppService.Fluent.Models.CheckNameResourceTypes * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>
<Extension()>
Public Function CheckNameAvailabilityAsync (operations As IWebSiteManagementClient, name As String, type As CheckNameResourceTypes, Optional isFqdn As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceNameAvailabilityInner)

Parameters

operations
IWebSiteManagementClient

The operations group for this extension method.

name
String

Resource name to verify.

type
CheckNameResourceTypes

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
Nullable<Boolean>

Is fully qualified domain name.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Description for Check if a resource name is available.

Applies to