Share via


ManagedDatabaseResource.CompleteRestoreAsync Method

Definition

Completes the restore operation on a managed database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeRestore
  • Operation Id: ManagedDatabases_CompleteRestore
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> CompleteRestoreAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.CompleteDatabaseRestoreDefinition completeDatabaseRestoreDefinition, System.Threading.CancellationToken cancellationToken = default);
abstract member CompleteRestoreAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.CompleteDatabaseRestoreDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.CompleteRestoreAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.CompleteDatabaseRestoreDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function CompleteRestoreAsync (waitUntil As WaitUntil, completeDatabaseRestoreDefinition As CompleteDatabaseRestoreDefinition, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

completeDatabaseRestoreDefinition
CompleteDatabaseRestoreDefinition

The definition for completing the restore of this managed database.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

completeDatabaseRestoreDefinition is null.

Applies to