Sdílet prostřednictvím


RestoresOperationsExtensions.TriggerAsync Method

Definition

Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use GetProtectedItemOperationResult API.

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

Parameters

operations
IRestoresOperations

The operations group for this extension method.

vaultName
String

The name of the recovery services vault.

resourceGroupName
String

The name of the resource group where the recovery services vault is present.

fabricName
String

Fabric name associated with the backed up items.

containerName
String

Container name associated with the backed up items.

protectedItemName
String

Backed up item to be restored.

recoveryPointId
String

Recovery point ID which represents the backed up data to be restored.

parameters
RestoreRequestResource

resource restore request

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to