Share via


AzureSqlDatabaseBackupCommunicator.SetDatabaseLongTermRetentionPolicy Method

Definition

Overloads

SetDatabaseLongTermRetentionPolicy(String, String, String, BackupLongTermRetentionPolicy)
SetDatabaseLongTermRetentionPolicy(String, String, String, LongTermRetentionPolicy)

Sets a database's Long Term Retention policy.

SetDatabaseLongTermRetentionPolicy(String, String, String, BackupLongTermRetentionPolicy)

public Microsoft.Azure.Management.Sql.Models.BackupLongTermRetentionPolicy SetDatabaseLongTermRetentionPolicy (string resourceGroup, string serverName, string databaseName, Microsoft.Azure.Management.Sql.Models.BackupLongTermRetentionPolicy policy);
member this.SetDatabaseLongTermRetentionPolicy : string * string * string * Microsoft.Azure.Management.Sql.Models.BackupLongTermRetentionPolicy -> Microsoft.Azure.Management.Sql.Models.BackupLongTermRetentionPolicy
Public Function SetDatabaseLongTermRetentionPolicy (resourceGroup As String, serverName As String, databaseName As String, policy As BackupLongTermRetentionPolicy) As BackupLongTermRetentionPolicy

Parameters

resourceGroup
String
serverName
String
databaseName
String
policy
Microsoft.Azure.Management.Sql.Models.BackupLongTermRetentionPolicy

Returns

Microsoft.Azure.Management.Sql.Models.BackupLongTermRetentionPolicy

Applies to

SetDatabaseLongTermRetentionPolicy(String, String, String, LongTermRetentionPolicy)

Sets a database's Long Term Retention policy.

public Microsoft.Azure.Management.Sql.Models.LongTermRetentionPolicy SetDatabaseLongTermRetentionPolicy (string resourceGroup, string serverName, string databaseName, Microsoft.Azure.Management.Sql.Models.LongTermRetentionPolicy policy);
member this.SetDatabaseLongTermRetentionPolicy : string * string * string * Microsoft.Azure.Management.Sql.Models.LongTermRetentionPolicy -> Microsoft.Azure.Management.Sql.Models.LongTermRetentionPolicy
Public Function SetDatabaseLongTermRetentionPolicy (resourceGroup As String, serverName As String, databaseName As String, policy As LongTermRetentionPolicy) As LongTermRetentionPolicy

Parameters

resourceGroup
String

The resource group name.

serverName
String

The server name.

databaseName
String

The database name.

policy
LongTermRetentionPolicy

The Long Term Retention policy to apply.

Returns

Applies to