IDatabaseBackupOperations.BeginCreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync Method

Definition

Begins creating or updating an Azure SQL Server backup LongTermRetention policy. To determine the status of the operation call GetDatabaseBackupLongTermRetentionPolicyOperationStatus.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateResponse> BeginCreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync (string resourceGroupName, string serverName, string databaseName, string backupLongTermRetentionPolicyName, Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member BeginCreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync : string * string * string * string * Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateResponse>
Public Function BeginCreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync (resourceGroupName As String, serverName As String, databaseName As String, backupLongTermRetentionPolicyName As String, parameters As DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters, cancellationToken As CancellationToken) As Task(Of DatabaseBackupLongTermRetentionPolicyCreateOrUpdateResponse)

Parameters

resourceGroupName
String

The name of the Resource Group to which the Azure SQL Server belongs.

serverName
String

The name of the Azure SQL Server on which the database is hosted.

databaseName
String

The name of the Azure SQL Database to be operated on.

backupLongTermRetentionPolicyName
String

The name of the Azure SQL Database backup LongTermRetention policy.

parameters
DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters

The required parameters for creating or updating a database backup LongTermRetention policy.

cancellationToken
CancellationToken

Cancellation token.

Returns

Response for long running Azure operations.

Applies to