Share via


AppPlatformExtensions.CheckAppPlatformNameAvailability 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
<item>MockingTo mock this method, please mock CheckAppPlatformNameAvailability(AzureLocation, AppPlatformNameAvailabilityContent, CancellationToken) instead.</item>
public static Azure.Response<Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityResult> CheckAppPlatformNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckAppPlatformNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppPlatform.Models.AppPlatformNameAvailabilityResult>
<Extension()>
Public Function CheckAppPlatformNameAvailability (subscriptionResource As SubscriptionResource, location As AzureLocation, content As AppPlatformNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AppPlatformNameAvailabilityResult)

Parameters

subscriptionResource
Azure.ResourceManager.Resources.SubscriptionResource

The Azure.ResourceManager.Resources.SubscriptionResource instance the method will execute against.

location
Azure.Core.AzureLocation

the region.

content
AppPlatformNameAvailabilityContent

Parameters supplied to the operation.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Exceptions

System.ArgumentNullException

subscriptionResource or content is null.

Applies to