Language

RecoveryServicesBackupExtensions.GetAsync Method

Definition

Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations that start one, such as RefreshContainers and GetRPExtendedInfo. <item> Mocking. To mock this method, please mock GetAsync(String, String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.Models.BackupOperationStatus>> GetAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName, string fabricName, string operationId, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesBackup.Models.BackupOperationStatus>>
<Extension()>
Public Function GetAsync (resourceGroupResource As ResourceGroupResource, vaultName As String, fabricName As String, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BackupOperationStatus))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

vaultName
String

The name of the recovery services vault.

fabricName
String

Fabric name associated with the operation.

operationId
String

OperationID which represents the operation whose status needs to be fetched.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to