Share via


MockableRecoveryServicesSubscriptionResource.GetRecoveryServicesVaults Method

Definition

Fetches all the resources of the specified type in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/vaults
  • Operation Id: Vaults_ListBySubscriptionId
  • Default Api Version: 2023-04-01
  • Resource: RecoveryServicesVaultResource
public virtual Azure.Pageable<Azure.ResourceManager.RecoveryServices.RecoveryServicesVaultResource> GetRecoveryServicesVaults (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRecoveryServicesVaults : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServices.RecoveryServicesVaultResource>
override this.GetRecoveryServicesVaults : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServices.RecoveryServicesVaultResource>
Public Overridable Function GetRecoveryServicesVaults (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RecoveryServicesVaultResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to