ManagedInstanceLongTermRetentionPoliciesClient.createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyInner parameters) Method

Definition

Sets a managed database's long term retention policy.

public abstract Mono<ManagedInstanceLongTermRetentionPolicyInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyInner parameters)

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.

databaseName
java.lang.String

The name of the database.

policyName
ManagedInstanceLongTermRetentionPolicyName

The policy name. Should always be Default.

parameters
ManagedInstanceLongTermRetentionPolicyInner

A long term retention policy.

Returns

reactor.core.publisher.Mono<ManagedInstanceLongTermRetentionPolicyInner>

a long term retention policy.

Applies to