Share via


MockableMediaSubscriptionResource.CheckMediaServicesNameAvailability Method

Definition

Checks whether the Media Service resource name is available.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability
  • Operation Id: Locations_CheckNameAvailability
public virtual Azure.Response<Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult> CheckMediaServicesNameAvailability (Azure.Core.AzureLocation locationName, Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckMediaServicesNameAvailability : Azure.Core.AzureLocation * Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult>
override this.CheckMediaServicesNameAvailability : Azure.Core.AzureLocation * Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult>
Public Overridable Function CheckMediaServicesNameAvailability (locationName As AzureLocation, content As MediaServicesNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MediaServicesNameAvailabilityResult)

Parameters

locationName
AzureLocation

Location name.

content
MediaServicesNameAvailabilityContent

The request parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to