Condividi tramite


ManagedInstanceLongTermRetentionPolicyCollection.GetAll Method

Definition

Gets a database's long term retention policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies
  • Operation Id: ManagedInstanceLongTermRetentionPolicies_ListByDatabase
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedInstanceLongTermRetentionPolicyResource
public virtual Azure.Pageable<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ManagedInstanceLongTermRetentionPolicyResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ManagedInstanceLongTermRetentionPolicyResource that may take multiple service requests to iterate over.

Applies to