Compartir a través de


MySqlFlexibleServerResource.CreateBackupAndExport Method

Definition

Exports the backup of the given server by creating a backup if not existing.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backupAndExport
  • Operation Id: BackupAndExport_Create
  • Default Api Version: 2023-12-30
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportResult> CreateBackupAndExport (Azure.WaitUntil waitUntil, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateBackupAndExport : Azure.WaitUntil * Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportResult>
override this.CreateBackupAndExport : Azure.WaitUntil * Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportResult>
Public Overridable Function CreateBackupAndExport (waitUntil As WaitUntil, content As MySqlFlexibleServerBackupAndExportContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of MySqlFlexibleServerBackupAndExportResult)

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.

content
MySqlFlexibleServerBackupAndExportContent

The required parameters for creating and exporting backup of the given server.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to