ProtectionPoliciesOperationsExtensions.GetAsync(IProtectionPoliciesOperations, String, String, String, CancellationToken) Method

Definition

Provides the details of the backup policies associated to Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource> GetAsync (this Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionPoliciesOperations operations, string vaultName, string resourceGroupName, string policyName, System.Threading.CancellationToken cancellationToken = null);
static member GetAsync : Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionPoliciesOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource>

Parameters

operations
IProtectionPoliciesOperations

The operations group for this extension method.

vaultName
System.String

The name of the recovery services vault.

resourceGroupName
System.String

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

policyName
System.String

Backup policy information to be fetched.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ProtectionPolicyResource>

Applies to