DataReplicationProtectedItemCollection.GetAll 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.
Overloads
GetAll(CancellationToken) |
Gets the list of protected items in the given vault.
|
GetAll(String, String, Nullable<Int32>, CancellationToken) |
Gets the list of protected items in the given vault.
|
GetAll(CancellationToken)
Gets the list of protected items in the given vault.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems
- Operation Id: ProtectedItem_List
- Default Api Version: 2021-02-16-preview
- Resource: DataReplicationProtectedItemResource
public virtual Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource> GetAll(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DataReplicationProtectedItemResource)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of DataReplicationProtectedItemResource that may take multiple service requests to iterate over.
Applies to
GetAll(String, String, Nullable<Int32>, CancellationToken)
Gets the list of protected items in the given vault.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems
- Operation Id: ProtectedItemModel_List
- Default Api Version: 2024-09-01
- Resource: DataReplicationProtectedItemResource
public virtual Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource> GetAll(string odataOptions = default, string continuationToken = default, int? pageSize = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>
override this.GetAll : string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>
Public Overridable Function GetAll (Optional odataOptions As String = Nothing, Optional continuationToken As String = Nothing, Optional pageSize As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DataReplicationProtectedItemResource)
Parameters
- odataOptions
- String
OData options.
- continuationToken
- String
Continuation token.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of DataReplicationProtectedItemResource that may take multiple service requests to iterate over.
Applies to
Azure SDK for .NET