RecoveryServicesExtensions.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 static Azure.Response<Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityResult> CheckRecoveryServicesNameAvailability (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckRecoveryServicesNameAvailability : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServices.Models.RecoveryServicesNameAvailabilityResult>
<Extension()>
Public Function CheckRecoveryServicesNameAvailability (resourceGroupResource As ResourceGroupResource, location As AzureLocation, content As RecoveryServicesNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RecoveryServicesNameAvailabilityResult)
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
- location
- AzureLocation
Location of the resource.
Contains information about Resource type and Resource name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource
or content
is null.
Applies to
Azure SDK for .NET