ProtectionPolicyOperationResultsOperationsExtensions.GetAsync Method

Definition

Provides the result of an operation.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource> GetAsync (this Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionPolicyOperationResultsOperations operations, string vaultName, string resourceGroupName, string policyName, string operationId, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionPolicyOperationResultsOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource>
<Extension()>
Public Function GetAsync (operations As IProtectionPolicyOperationResultsOperations, vaultName As String, resourceGroupName As String, policyName As String, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ProtectionPolicyResource)

Parameters

operations
IProtectionPolicyOperationResultsOperations

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.

policyName
String

Backup policy name whose operation's result needs to be fetched.

operationId
String

Operation ID which represents the operation whose result needs to be fetched.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to