共用方式為


RecoveryServicesSiteRecoveryExtensions.GetReplicationAppliancesAsync Method

Definition

Gets the list of Azure Site Recovery appliances for the vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationAppliances
  • Operation Id: ReplicationAppliances_List
  • Default Api Version: 2023-08-01
public static Azure.AsyncPageable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryReplicationAppliance> GetReplicationAppliancesAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetReplicationAppliancesAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryReplicationAppliance>
<Extension()>
Public Function GetReplicationAppliancesAsync (resourceGroupResource As ResourceGroupResource, resourceName As String, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SiteRecoveryReplicationAppliance)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

resourceName
String

The name of the recovery services vault.

filter
String

OData filter options.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

resourceName is an empty string, and was expected to be non-empty.

resourceGroupResource or resourceName is null.

Applies to