MockableRecoveryServicesResourceGroupResource.CheckRecoveryServicesNameAvailabilityAsync 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.
API to check for resource name availability. A name is available if no other resource exists that has the same SubscriptionId, Resource Name and Type or if one or more such resources exist, each of these must be GC'd and their time of deletion be more than 24 Hours Ago
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/locations/{location}/checkNameAvailability
- Operation Id: RecoveryServices_CheckNameAvailability
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityResult>> CheckRecoveryServicesNameAvailabilityAsync (Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckRecoveryServicesNameAvailabilityAsync : Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityResult>>
override this.CheckRecoveryServicesNameAvailabilityAsync : Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityResult>>
Public Overridable Function CheckRecoveryServicesNameAvailabilityAsync (location As AzureLocation, content As RecoveryServicesNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RecoveryServicesNameAvailabilityResult))
Parameters
- location
- AzureLocation
Location of the resource.
Contains information about Resource type and Resource name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content
is null.
Applies to
Azure SDK for .NET