Share via


DataReplicationPolicyCollection.GetAll(CancellationToken) Method

Definition

Gets the list of policies in the given vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies
  • Operation Id: Policy_List
public virtual Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DataReplicationPolicyResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to