Share via


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