IDatabaseBackupOperations.CreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates or updates an Azure SQL Database backup LongTermRetention policy.
public System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateResponse> CreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync (string resourceGroupName, string serverName, string databaseName, string backupLongTermRetentionPolicyName, Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync : 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 CreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync (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 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 (Updated or created).
- backupLongTermRetentionPolicyName
- String
The name of the Azure SQL Database backup LongTermRetention policy.
The required parameters for creating or updating a database backup LongTermRetention policy.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Response for long running Azure operations.