ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, Integer retentionDays) Method

Definition

Sets a database's long term retention policy.

public abstract PollerFlux<PollResult<ManagedBackupShortTermRetentionPolicyInner>,ManagedBackupShortTermRetentionPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, Integer retentionDays)

Parameters

resourceGroupName
java.lang.String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

managedInstanceName
java.lang.String

The name of the managed instance.

restorableDroppedDatabaseId
java.lang.String

The restorableDroppedDatabaseId parameter.

policyName
ManagedShortTermRetentionPolicyName

The policy name. Should always be "default".

retentionDays
java.lang.Integer

The backup retention period in days. This is how many days Point-in-Time Restore will be supported.

Returns

Applies to