DataProtectionBackupExtensions.GetDataProtectionBackupVaults 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
GetDataProtectionBackupVaults(ResourceGroupResource) |
Gets a collection of DataProtectionBackupVaultResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDataProtectionBackupVaults() instead. |
GetDataProtectionBackupVaults(SubscriptionResource, CancellationToken) |
Returns resource collection belonging to a subscription.
|
GetDataProtectionBackupVaults(ResourceGroupResource)
Gets a collection of DataProtectionBackupVaultResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDataProtectionBackupVaults() instead.
public static Azure.ResourceManager.DataProtectionBackup.DataProtectionBackupVaultCollection GetDataProtectionBackupVaults (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDataProtectionBackupVaults : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DataProtectionBackup.DataProtectionBackupVaultCollection
<Extension()>
Public Function GetDataProtectionBackupVaults (resourceGroupResource As ResourceGroupResource) As DataProtectionBackupVaultCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of DataProtectionBackupVaultResources and their operations over a DataProtectionBackupVaultResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetDataProtectionBackupVaults(SubscriptionResource, CancellationToken)
Returns resource collection belonging to a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults
- Operation Id: BackupVaults_GetInSubscription
- Default Api Version: 2024-04-01
- Resource: DataProtectionBackupVaultResource
public static Azure.Pageable<Azure.ResourceManager.DataProtectionBackup.DataProtectionBackupVaultResource> GetDataProtectionBackupVaults (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDataProtectionBackupVaults : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DataProtectionBackup.DataProtectionBackupVaultResource>
<Extension()>
Public Function GetDataProtectionBackupVaults (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DataProtectionBackupVaultResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of DataProtectionBackupVaultResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET