Freigeben über


ManagedDatabaseResource.GetManagedInstanceLongTermRetentionPolicy Methode

Definition

Ruft die Langfristige Aufbewahrungsrichtlinie einer verwalteten Datenbank ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}
  • Vorgang IdManagedInstanceLongTermRetentionPolicies_Get
public virtual Azure.Response<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource> GetManagedInstanceLongTermRetentionPolicy (Azure.ResourceManager.Sql.Models.ManagedInstanceLongTermRetentionPolicyName policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetManagedInstanceLongTermRetentionPolicy : Azure.ResourceManager.Sql.Models.ManagedInstanceLongTermRetentionPolicyName * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource>
override this.GetManagedInstanceLongTermRetentionPolicy : Azure.ResourceManager.Sql.Models.ManagedInstanceLongTermRetentionPolicyName * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource>
Public Overridable Function GetManagedInstanceLongTermRetentionPolicy (policyName As ManagedInstanceLongTermRetentionPolicyName, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ManagedInstanceLongTermRetentionPolicyResource)

Parameter

policyName
ManagedInstanceLongTermRetentionPolicyName

Der Richtlinienname. Sollte immer Standard sein.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Gilt für: