WebSiteManagementClientExtensions.CheckNameAvailabilityAsync(IWebSiteManagementClient, String, String, Nullable<Boolean>, CancellationToken) 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, string type, Nullable<bool> isFqdn = null, System.Threading.CancellationToken cancellationToken = null);
static member CheckNameAvailabilityAsync : Microsoft.Azure.Management.AppService.Fluent.IWebSiteManagementClient * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.ResourceNameAvailabilityInner>

Parameters

operations
IWebSiteManagementClient

The operations group for this extension method.

name
String

Resource name to verify.

type
String

Resource type used for verification. Possible values include: 'Site', 'Slot', 'HostingEnvironment'

isFqdn
Nullable<Boolean>

Is fully qualified domain name.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<ResourceNameAvailabilityInner>

Remarks

Check if a resource name is available.

Applies to