ManagedInstanceLongTermRetentionPoliciesClient.createOrUpdate Method

Definition

Overloads

createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyInner parameters)

Sets a managed database's long term retention policy.

createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyInner parameters, Context context)

Sets a managed database's long term retention policy.

createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyInner parameters)

Sets a managed database's long term retention policy.

public abstract ManagedInstanceLongTermRetentionPolicyInner createOrUpdate(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

a long term retention policy.

createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyInner parameters, Context context)

Sets a managed database's long term retention policy.

public abstract ManagedInstanceLongTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, ManagedInstanceLongTermRetentionPolicyName policyName, ManagedInstanceLongTermRetentionPolicyInner parameters, Context context)

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.

context
Context

The context to associate with this operation.

Returns

a long term retention policy.

Applies to