Share via


ApiManagementServiceOperationsExtensions.RestoreAsync Method

Definition

Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete.

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)

Parameters

operations
IApiManagementServiceOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

parameters
ApiManagementServiceBackupRestoreParameters

Parameters supplied to the Restore API Management service from backup operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to