你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DataProtectionBackupExtensions.CheckDataProtectionBackupVaultNameAvailabilityAsync 方法

定义

用于检查资源名称可用性的 API

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/checkNameAvailability
  • 操作IdBackupVaults_CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupNameAvailabilityResult>> CheckDataProtectionBackupVaultNameAvailabilityAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckDataProtectionBackupVaultNameAvailabilityAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupNameAvailabilityResult>>
<Extension()>
Public Function CheckDataProtectionBackupVaultNameAvailabilityAsync (resourceGroupResource As ResourceGroupResource, location As AzureLocation, content As DataProtectionBackupNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataProtectionBackupNameAvailabilityResult))

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

location
AzureLocation

验证唯一性的位置。

content
DataProtectionBackupNameAvailabilityContent

检查名称可用性请求。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于