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

RecoveryPointsOperationsExtensions.GetAccessTokenAsync 方法

定义

返回用于 BMS 与保护服务之间通信的访问令牌

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.CrrAccessTokenResource> GetAccessTokenAsync(this Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.IRecoveryPointsOperations operations, string vaultName, string resourceGroupName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.AADPropertiesResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member GetAccessTokenAsync : Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.IRecoveryPointsOperations * string * string * string * string * string * string * Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.AADPropertiesResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.CrrAccessTokenResource>
<Extension()>
Public Function GetAccessTokenAsync (operations As IRecoveryPointsOperations, vaultName As String, resourceGroupName As String, fabricName As String, containerName As String, protectedItemName As String, recoveryPointId As String, parameters As AADPropertiesResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CrrAccessTokenResource)

参数

operations
IRecoveryPointsOperations

此扩展方法的操作组。

vaultName
String

恢复服务保管库的名称。

resourceGroupName
String

恢复服务保管库所在的资源组的名称。

fabricName
String

与容器关联的结构名称。

containerName
String

容器名。

protectedItemName
String

受保护项的名称。

recoveryPointId
String

恢复点 ID

parameters
AADPropertiesResource

获取访问令牌请求

cancellationToken
CancellationToken

取消标记。

返回

适用于