다음을 통해 공유


SqlDatabaseResource.CreateRestorePointAsync Method

Definition

Creates a restore point for a data warehouse.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints
  • Operation Id: RestorePoints_Create
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerDatabaseRestorePointResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseRestorePointResource>> CreateRestorePointAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.CreateDatabaseRestorePointDefinition createDatabaseRestorePointDefinition, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRestorePointAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.CreateDatabaseRestorePointDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseRestorePointResource>>
override this.CreateRestorePointAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.CreateDatabaseRestorePointDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseRestorePointResource>>
Public Overridable Function CreateRestorePointAsync (waitUntil As WaitUntil, createDatabaseRestorePointDefinition As CreateDatabaseRestorePointDefinition, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SqlServerDatabaseRestorePointResource))

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.

createDatabaseRestorePointDefinition
CreateDatabaseRestorePointDefinition

The definition for creating the restore point of this database.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

createDatabaseRestorePointDefinition is null.

Applies to