ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.CreateOrUpdateAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Legt die Richtlinie für die langfristige Aufbewahrung einer Datenbank fest.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Fluent.Models.ManagedBackupShortTermRetentionPolicyInner> CreateOrUpdateAsync(this Microsoft.Azure.Management.Sql.Fluent.IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, int? retentionDays = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Sql.Fluent.IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations * string * string * string * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Fluent.Models.ManagedBackupShortTermRetentionPolicyInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations, resourceGroupName As String, managedInstanceName As String, restorableDroppedDatabaseId As String, Optional retentionDays As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ManagedBackupShortTermRetentionPolicyInner)
Parameter
Die Vorgangsgruppe für diese Erweiterungsmethode.
- resourceGroupName
- String
Der Name der Ressourcengruppe, die die Ressource enthält. Dieser Wert kann über die Azure-Ressourcen-Manager-API oder das Portal abgerufen werden.
- managedInstanceName
- String
Der Name der verwalteten Instanz.
- restorableDroppedDatabaseId
- String
Die Beibehaltungsdauer für Sicherungen in Tagen. So viele Tage wird die Point-in-Time-Wiederherstellung unterstützt.
- cancellationToken
- CancellationToken
Das Abbruchtoken.
Gibt zurück
Gilt für:
Azure SDK for .NET