Bagikan melalui


MockableAppPlatformSubscriptionResource.CheckAppPlatformNameAvailabilityAsync Method

Definition

Checks that the resource name is valid and is not already in use.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability
  • Operation Id: Services_CheckNameAvailability
  • Default Api Version: 2022-12-01
  • Resource: AppPlatformServiceResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityResult>> CheckAppPlatformNameAvailabilityAsync (Azure.Core.AzureLocation location, Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckAppPlatformNameAvailabilityAsync : Azure.Core.AzureLocation * Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityResult>>
override this.CheckAppPlatformNameAvailabilityAsync : Azure.Core.AzureLocation * Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityResult>>
Public Overridable Function CheckAppPlatformNameAvailabilityAsync (location As AzureLocation, content As AppPlatformNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AppPlatformNameAvailabilityResult))

Parameters

location
AzureLocation

the region.

content
AppPlatformNameAvailabilityContent

Parameters supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to