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

ApiManagementServiceOperationsExtensions.RestoreAsync 方法

定义

还原对当前服务使用ApiManagementService_Backup操作创建的API 管理服务的备份。 这是一个长时间运行的操作,可能需要几分钟才能完成。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.ApiManagementServiceResource> RestoreAsync(this Microsoft.Azure.Management.ApiManagement.IApiManagementServiceOperations operations, string resourceGroupName, string serviceName, Microsoft.Azure.Management.ApiManagement.Models.ApiManagementServiceBackupRestoreParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member RestoreAsync : Microsoft.Azure.Management.ApiManagement.IApiManagementServiceOperations * string * string * Microsoft.Azure.Management.ApiManagement.Models.ApiManagementServiceBackupRestoreParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.ApiManagementServiceResource>
<Extension()>
Public Function RestoreAsync (operations As IApiManagementServiceOperations, resourceGroupName As String, serviceName As String, parameters As ApiManagementServiceBackupRestoreParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ApiManagementServiceResource)

参数

operations
IApiManagementServiceOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

serviceName
String

API 管理服务的名称。

parameters
ApiManagementServiceBackupRestoreParameters

通过备份操作提供给还原API 管理服务的参数。

cancellationToken
CancellationToken

取消标记。

返回

适用于