Share via


RecoveryServicesDataReplicationExtensions.CheckDataReplicationNameAvailability Method

Definition

Checks the resource name availability.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataReplication/locations/{location}/checkNameAvailability
  • Operation Id: CheckNameAvailability
public static Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityResult> CheckDataReplicationNameAvailability (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityContent content = default, System.Threading.CancellationToken cancellationToken = default);
static member CheckDataReplicationNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityResult>
<Extension()>
Public Function CheckDataReplicationNameAvailability (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional content As DataReplicationNameAvailabilityContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DataReplicationNameAvailabilityResult)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

location
AzureLocation

The name of the Azure region.

content
DataReplicationNameAvailabilityContent

Resource details.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to