SqlDatabaseResource.ExportAsync Method

Definition

Exports a database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export
  • Operation Id: Databases_Export
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportOperationResult>> ExportAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Sql.Models.DatabaseExportDefinition databaseExportDefinition, System.Threading.CancellationToken cancellationToken = default);
abstract member ExportAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.DatabaseExportDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportOperationResult>>
override this.ExportAsync : Azure.WaitUntil * Azure.ResourceManager.Sql.Models.DatabaseExportDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.Models.ImportExportOperationResult>>
Public Overridable Function ExportAsync (waitUntil As WaitUntil, databaseExportDefinition As DatabaseExportDefinition, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ImportExportOperationResult))

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.

databaseExportDefinition
DatabaseExportDefinition

The database export request parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

databaseExportDefinition is null.

Applies to