MockableRecoveryServicesDataReplicationSubscriptionResource.CheckDataReplicationNameAvailabilityAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks the resource name availability.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataReplication/locations/{location}/checkNameAvailability
- Operation Id: CheckNameAvailability
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityResult>> CheckDataReplicationNameAvailabilityAsync (Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckDataReplicationNameAvailabilityAsync : Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityResult>>
override this.CheckDataReplicationNameAvailabilityAsync : Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationNameAvailabilityResult>>
Public Overridable Function CheckDataReplicationNameAvailabilityAsync (location As AzureLocation, Optional content As DataReplicationNameAvailabilityContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataReplicationNameAvailabilityResult))
Parameters
- location
- AzureLocation
The name of the Azure region.
Resource details.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET