Share via


SqlDatabaseResource.CreateRestorePoint 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseRestorePointResource> CreateRestorePoint (Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.CreateDatabaseRestorePointDefinition createDatabaseRestorePointDefinition, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRestorePoint : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.CreateDatabaseRestorePointDefinition * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseRestorePointResource>
override this.CreateRestorePoint : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.CreateDatabaseRestorePointDefinition * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerDatabaseRestorePointResource>
Public Overridable Function CreateRestorePoint (waitUntil As WaitUntil, createDatabaseRestorePointDefinition As CreateDatabaseRestorePointDefinition, Optional cancellationToken As CancellationToken = Nothing) As 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