Delen via


ProtectionContainersOperationsExtensions.RefreshAsync Method

Definition

Discovers all the containers in the subscription that can be backed up to Recovery Services Vault. This is an asynchronous operation. To know the status of the operation, call GetRefreshOperationResult API.

public static System.Threading.Tasks.Task RefreshAsync (this Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionContainersOperations operations, string vaultName, string resourceGroupName, string fabricName, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.RecoveryServices.Backup.Models.BMSRefreshContainersQueryObject> odataQuery = default, System.Threading.CancellationToken cancellationToken = default);
static member RefreshAsync : Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionContainersOperations * string * string * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.RecoveryServices.Backup.Models.BMSRefreshContainersQueryObject> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function RefreshAsync (operations As IProtectionContainersOperations, vaultName As String, resourceGroupName As String, fabricName As String, Optional odataQuery As ODataQuery(Of BMSRefreshContainersQueryObject) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IProtectionContainersOperations

The operations group for this extension method.

vaultName
String

The name of the recovery services vault.

resourceGroupName
String

The name of the resource group where the recovery services vault is present.

fabricName
String

Fabric name associated the container.

odataQuery
ODataQuery<BMSRefreshContainersQueryObject>

OData parameters to apply to the operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to