BackupPoliciesOperationsExtensions.ListAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists of backup policies associated with Recovery Services Vault. API provides pagination parameters to fetch scoped results.
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource>> ListAsync (this Microsoft.Azure.Management.RecoveryServices.Backup.IBackupPoliciesOperations operations, string vaultName, string resourceGroupName, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyQueryObject> odataQuery = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.RecoveryServices.Backup.IBackupPoliciesOperations * string * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyQueryObject> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource>>
<Extension()>
Public Function ListAsync (operations As IBackupPoliciesOperations, vaultName As String, resourceGroupName As String, Optional odataQuery As ODataQuery(Of ProtectionPolicyQueryObject) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of ProtectionPolicyResource))
Parameters
- operations
- IBackupPoliciesOperations
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.
- odataQuery
- ODataQuery<ProtectionPolicyQueryObject>
OData parameters to apply to the operation.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET