Share via


SiteRecoveryPolicyCollection.GetAll(CancellationToken) Method

Definition

Lists the replication policies for a vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationPolicies
  • Operation Id: ReplicationPolicies_List
  • Default Api Version: 2023-08-01
  • Resource: SiteRecoveryPolicyResource
public virtual Azure.Pageable<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryPolicyResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryPolicyResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryPolicyResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SiteRecoveryPolicyResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SiteRecoveryPolicyResource that may take multiple service requests to iterate over.

Applies to