AzureSqlDatabaseBackupCommunicator.SetDatabaseBackupShortTermRetentionPolicy 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.
Sets a database's backup Short Term Retention policy.
public Microsoft.Azure.Management.Sql.Models.BackupShortTermRetentionPolicy SetDatabaseBackupShortTermRetentionPolicy (string resourceGroup, string serverName, string databaseName, Microsoft.Azure.Management.Sql.Models.BackupShortTermRetentionPolicy policy);
member this.SetDatabaseBackupShortTermRetentionPolicy : string * string * string * Microsoft.Azure.Management.Sql.Models.BackupShortTermRetentionPolicy -> Microsoft.Azure.Management.Sql.Models.BackupShortTermRetentionPolicy
Public Function SetDatabaseBackupShortTermRetentionPolicy (resourceGroup As String, serverName As String, databaseName As String, policy As BackupShortTermRetentionPolicy) As BackupShortTermRetentionPolicy
Parameters
- resourceGroup
- String
The resource group name.
- serverName
- String
The server name.
- databaseName
- String
The database name.
The Short Term Retention policy to apply.
Returns
A backup ShortTermRetention policy