다음을 통해 공유


MockableRecoveryServicesBackupResourceGroupResource.GetBackupProtectionContainers Method

Definition

Overloads

GetBackupProtectionContainers()

Gets a collection of BackupProtectionContainerResources in the ResourceGroupResource.

GetBackupProtectionContainers(String, String, CancellationToken)

Lists the containers registered to Recovery Services Vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers
  • Operation Id: BackupProtectionContainers_List

GetBackupProtectionContainers()

Source:
MockableRecoveryServicesBackupResourceGroupResource.cs

Gets a collection of BackupProtectionContainerResources in the ResourceGroupResource.

public virtual Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerCollection GetBackupProtectionContainers ();
abstract member GetBackupProtectionContainers : unit -> Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerCollection
override this.GetBackupProtectionContainers : unit -> Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerCollection
Public Overridable Function GetBackupProtectionContainers () As BackupProtectionContainerCollection

Returns

An object representing collection of BackupProtectionContainerResources and their operations over a BackupProtectionContainerResource.

Applies to

GetBackupProtectionContainers(String, String, CancellationToken)

Source:
MockableRecoveryServicesBackupResourceGroupResource.cs

Lists the containers registered to Recovery Services Vault.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers
  • Operation Id: BackupProtectionContainers_List
public virtual Azure.Pageable<Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerResource> GetBackupProtectionContainers (string vaultName, string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBackupProtectionContainers : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerResource>
override this.GetBackupProtectionContainers : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionContainerResource>
Public Overridable Function GetBackupProtectionContainers (vaultName As String, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of BackupProtectionContainerResource)

Parameters

vaultName
String

The name of the recovery services vault.

filter
String

OData filter options.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

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

vaultName is null.

Applies to