Поделиться через


DataReplicationProtectedItemCollection.GetAllAsync Method

Definition

Overloads

GetAllAsync(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
GetAllAsync(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

GetAllAsync(CancellationToken)

Source:
DataReplicationProtectedItemCollection.cs

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.AsyncPageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource> GetAllAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DataReplicationProtectedItemResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of DataReplicationProtectedItemResource that may take multiple service requests to iterate over.

Applies to

GetAllAsync(String, String, Nullable<Int32>, CancellationToken)

Source:
DataReplicationProtectedItemCollection.cs

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.AsyncPageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource> GetAllAsync(string odataOptions = default, string continuationToken = default, int? pageSize = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>
override this.GetAllAsync : string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>
Public Overridable Function GetAllAsync (Optional odataOptions As String = Nothing, Optional continuationToken As String = Nothing, Optional pageSize As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DataReplicationProtectedItemResource)

Parameters

odataOptions
String

OData options.

continuationToken
String

Continuation token.

pageSize
Nullable<Int32>

Page size.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of DataReplicationProtectedItemResource that may take multiple service requests to iterate over.

Applies to