MockableRecoveryServicesResourceGroupResource.CheckRecoveryServicesNameAvailability 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
- Default Api Version: 2023-04-01
public virtual Azure.Response<Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityResult> CheckRecoveryServicesNameAvailability (Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckRecoveryServicesNameAvailability : Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityResult>
override this.CheckRecoveryServicesNameAvailability : Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityResult>
Public Overridable Function CheckRecoveryServicesNameAvailability (location As AzureLocation, content As RecoveryServicesNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As 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.