共用方式為


PostgreSqlFlexibleServerBackupCollection.CreateOrUpdateAsync Method

Definition

Create a specific backup for PostgreSQL flexible server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}
  • Operation Id: Backups_Create
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlFlexibleServerBackupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerBackupResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string backupName, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerBackupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerBackupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, backupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of PostgreSqlFlexibleServerBackupResource))

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.

backupName
String

The name of the backup.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

backupName is an empty string, and was expected to be non-empty.

backupName is null.

Applies to